summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2011-10-23 04:23:02 (GMT)
committerBrad Pitcher <bradpitcher@gmail.com>2011-10-23 04:23:02 (GMT)
commitba7b415accb38967670853f062e20cc6cbae8878 (patch)
tree4c5613af94898d1cfcbf5ba60fd23bf8da84c28c /src
parent2a998860e16240e2f4ec4b879894b4a867c90435 (diff)
downloadmxe-ba7b415accb38967670853f062e20cc6cbae8878.zip
mxe-ba7b415accb38967670853f062e20cc6cbae8878.tar.gz
mxe-ba7b415accb38967670853f062e20cc6cbae8878.tar.bz2
remove hard coded path in opencsg patch
Diffstat (limited to 'src')
-rw-r--r--src/opencsg-1-fixes.patch8
-rw-r--r--src/opencsg.mk1
2 files changed, 4 insertions, 5 deletions
diff --git a/src/opencsg-1-fixes.patch b/src/opencsg-1-fixes.patch
index 1f87dda..0a639af 100644
--- a/src/opencsg-1-fixes.patch
+++ b/src/opencsg-1-fixes.patch
@@ -13,11 +13,9 @@ diff --git a/example/example.pro b/example/example.pro
index 8891a28..6c88ee6 100644
--- a/example/example.pro
+++ b/example/example.pro
-@@ -1,10 +1,12 @@
- TEMPLATE = app
--TARGET = opencsgexample
-+TARGET = test-opencsg
-+Release:DESTDIR = /home/brand/projects/mingw-cross-env.dev/local/usr/i686-pc-mingw32/bin/
+@@ -1,10 +1,11 @@
+ TEMPLATE = app
+ TARGET = opencsgexample
CONFIG += opengl warn_on release
INCLUDEPATH += ../glew/include ../include
diff --git a/src/opencsg.mk b/src/opencsg.mk
index b459287..b982c0d 100644
--- a/src/opencsg.mk
+++ b/src/opencsg.mk
@@ -22,6 +22,7 @@ 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'
cd '$(1)/example' && '$(TARGET)-qmake' example.pro
$(MAKE) -C '$(1)/example' -j '$(JOBS)'
$(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/'