Mercurial > hg > mxe
changeset 2036:62b023062c78
remove hard coded path in opencsg patch
author | Brad Pitcher <bradpitcher@gmail.com> |
---|---|
date | Sun, 23 Oct 2011 15:23:02 +1100 |
parents | 0213fe9deb5c |
children | 9d9999b394d4 |
files | src/opencsg-1-fixes.patch src/opencsg.mk |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/opencsg-1-fixes.patch +++ b/src/opencsg-1-fixes.patch @@ -13,11 +13,9 @@ 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
--- a/src/opencsg.mk +++ b/src/opencsg.mk @@ -22,6 +22,7 @@ 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/'