DEBIAN: GTK and WX can now build together properly. No need to build twice anymore.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1051 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
bgk 2011-12-14 14:30:28 +00:00
parent 03f20b8cbf
commit c6979e7e47
2 changed files with 4 additions and 12 deletions

2
debian/control vendored
View File

@ -33,7 +33,7 @@ Description: Nintendo Game Boy Advance emulator (GTK+ frontend)
Package: vbam-wx
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Nintendo Game Boy Advance emulator (GTK+ frontend)
Description: Nintendo Game Boy Advance emulator (wxWidgets frontend)
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high
compatibility with commercial games. It emulates the Nintendo Game
Boy Advance handheld console, in addition to the original Game Boy

14
debian/rules vendored
View File

@ -23,23 +23,16 @@ endif
builddir/Makefile:
dh_testdir
mkdir -p builddir builddir-wx
mkdir -p builddir
cd builddir && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" \
-DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
-DENABLE_LIRC=ON -DENABLE_WX=OFF \
-DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
cd builddir-wx && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" \
-DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
-DENABLE_LINK=ON -DENABLE_WX=ON -DENABLE_SDL=OFF -DENABLE_GTK=OFF\
-DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
-DENABLE_LIRC=ON -DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
build: build-stamp
build-stamp: builddir/Makefile
dh_testdir
$(MAKE) -C builddir-wx
$(MAKE) -C builddir
touch $@
@ -47,7 +40,7 @@ clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf builddir builddir-wx
rm -rf builddir
dh_clean
install: build
@ -56,7 +49,6 @@ install: build
dh_prep
dh_installdirs
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
$(MAKE) -C builddir-wx DESTDIR=$(CURDIR)/debian/tmp install
binary-indep: install