games-strategy/zod-engine: improve wx-config invocation
This commit is contained in:
parent
cb61fcafd2
commit
424680bd9a
@ -1,7 +1,7 @@
|
|||||||
From: Julian Ospald <hasufell@gentoo.org>
|
From: Julian Ospald <hasufell@gentoo.org>
|
||||||
Date: Sun Aug 12 09:26:49 UTC 2012
|
Date: Sun Aug 12 09:26:49 UTC 2012
|
||||||
Subject: build system
|
Subject: build system
|
||||||
Upstream: yes
|
Upstream: yes/partly (upstream is dead anyway)
|
||||||
|
|
||||||
respect CXX and CXXFLAGS
|
respect CXX and CXXFLAGS
|
||||||
|
|
||||||
@ -579,10 +579,11 @@ respect CXX and CXXFLAGS
|
|||||||
zip zod_src_${DATE}.zip *.cpp *.h makefile
|
zip zod_src_${DATE}.zip *.cpp *.h makefile
|
||||||
--- zod_engine/zod_launcher_src/makefile
|
--- zod_engine/zod_launcher_src/makefile
|
||||||
+++ zod_engine/zod_launcher_src/makefile
|
+++ zod_engine/zod_launcher_src/makefile
|
||||||
@@ -1,2 +1,11 @@
|
@@ -1,2 +1,13 @@
|
||||||
|
+WX_CONFIG ?= wx-config
|
||||||
+CXX ?= g++
|
+CXX ?= g++
|
||||||
+CXXFLAGS += `wx-config --cppflags`
|
+CXXFLAGS += `$(WX_CONFIG) --cppflags`
|
||||||
+LIBS += `wx-config --libs`
|
+LIBS += `$(WX_CONFIG) --libs`
|
||||||
+EXENAME = zod_launcher
|
+EXENAME = zod_launcher
|
||||||
+
|
+
|
||||||
+ifdef DATA_PATH
|
+ifdef DATA_PATH
|
||||||
@ -592,3 +593,4 @@ respect CXX and CXXFLAGS
|
|||||||
default:
|
default:
|
||||||
- g++ -g -o zod_launcher *.cpp `wx-config --cppflags` `wx-config --libs`
|
- g++ -g -o zod_launcher *.cpp `wx-config --cppflags` `wx-config --libs`
|
||||||
+ $(CXX) $(CXXFLAGS) -o $(EXENAME) *.cpp $(LDFLAGS) $(LIBS)
|
+ $(CXX) $(CXXFLAGS) -o $(EXENAME) *.cpp $(LDFLAGS) $(LIBS)
|
||||||
|
+
|
||||||
|
@ -37,14 +37,13 @@ src_prepare() {
|
|||||||
edo find "${WORK}" -type f \( -name Thumbs.db -o -name "*.xcf" -o -name "*.ico" \) -delete
|
edo find "${WORK}" -type f \( -name Thumbs.db -o -name "*.xcf" -o -name "*.ico" \) -delete
|
||||||
edo rm assets/{splash.png,WebCamScene.icescene}
|
edo rm assets/{splash.png,WebCamScene.icescene}
|
||||||
|
|
||||||
# fix some tool invocations
|
|
||||||
eval $(eclectic wxwidgets script 2.8-gtk2) # FIXME: this probably breaks multiarch?
|
|
||||||
edo sed -i -e "s#-lmysqlclient#\$\(shell /usr/$(exhost --target)/bin/mysql_config \-\-libs\)#" \
|
edo sed -i -e "s#-lmysqlclient#\$\(shell /usr/$(exhost --target)/bin/mysql_config \-\-libs\)#" \
|
||||||
zod_src/makefile
|
zod_src/makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake -C zod_src DATA_PATH="\"/usr/share/${PN}\"" main map_editor
|
emake -C zod_src DATA_PATH="\"/usr/share/${PN}\"" main map_editor
|
||||||
|
WX_CONFIG="/usr/$(exhost --target)/bin/wx-config-2.8" \
|
||||||
emake -C zod_launcher_src DATA_PATH="\"/usr/share/${PN}\""
|
emake -C zod_launcher_src DATA_PATH="\"/usr/share/${PN}\""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user