summaryrefslogtreecommitdiffstats
path: root/src/opencsg.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-10-23 18:40:03 (GMT)
committerMark Brand <mabrand@mabrand.nl>2011-10-23 18:40:03 (GMT)
commit2783c527a6aa557167b69c959e6dd294df2547ac (patch)
tree8c5ea945d0de51d03a9e4ba9cedb4abe18f85109 /src/opencsg.mk
parent84525cc23f65bdf85ce31ed53bd7322205cc8562 (diff)
downloadmxe-2783c527a6aa557167b69c959e6dd294df2547ac.zip
mxe-2783c527a6aa557167b69c959e6dd294df2547ac.tar.gz
mxe-2783c527a6aa557167b69c959e6dd294df2547ac.tar.bz2
package opencsg: install test program without sed
Diffstat (limited to 'src/opencsg.mk')
-rw-r--r--src/opencsg.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/opencsg.mk b/src/opencsg.mk
index b982c0d..4e6154f 100644
--- a/src/opencsg.mk
+++ b/src/opencsg.mk
@@ -22,9 +22,10 @@ endef
define $(PKG)_BUILD
cd '$(1)/src' && '$(TARGET)-qmake' src.pro
$(MAKE) -C '$(1)/src' -j '$(JOBS)'
- $(SED) -i 's,opencsgexample,test-opencsg\nRelease:DESTDIR = $(PREFIX)/$(TARGET)/bin/,' '$(1)/example/example.pro'
+ $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(PREFIX)/$(TARGET)/include/'
+ $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/'
+
cd '$(1)/example' && '$(TARGET)-qmake' example.pro
$(MAKE) -C '$(1)/example' -j '$(JOBS)'
- $(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/'
- $(INSTALL) -m644 '$(1)/include/opencsg.h' '$(PREFIX)/$(TARGET)/include/'
+ $(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(PREFIX)/$(TARGET)/bin/test-opencsg.exe'
endef