2010-06-15 13:07:29 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
# export DH_VERBOSE=1
|
|
|
|
|
|
|
|
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CMAKE_BUILD_TYPE=Debug
|
|
|
|
else
|
|
|
|
CMAKE_BUILD_TYPE=Release
|
|
|
|
endif
|
|
|
|
|
2011-07-14 09:21:57 +00:00
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- \
|
2010-07-08 19:03:55 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) \
|
|
|
|
-DCMAKE_BUILD_STRIP=FALSE \
|
|
|
|
-DFORCE_INTERNAL_SOUNDTOUCH=FALSE \
|
2011-08-12 19:22:06 +00:00
|
|
|
-DFORCE_INTERNAL_SDL=TRUE \
|
2011-02-12 10:40:26 +00:00
|
|
|
-DPACKAGE_MODE=TRUE
|
2010-06-15 13:07:29 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
2011-07-14 09:21:57 +00:00
|
|
|
dh_auto_clean
|
2011-08-14 14:38:26 +00:00
|
|
|
rm -fr obj-* # cmake stuff is not always removed (fixed in debhelper 8.9.4)
|
2010-06-15 13:07:29 +00:00
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
2010-08-30 20:32:59 +00:00
|
|
|
override_dh_strip:
|
2010-07-02 14:55:41 +00:00
|
|
|
dh_strip --package=pcsx2-unstable --dbg-package=pcsx2-unstable-dbg
|
|
|
|
dh_strip --package=pcsx2-plugins-unstable --dbg-package=pcsx2-plugins-unstable-dbg
|
2010-08-30 20:32:59 +00:00
|
|
|
|
|
|
|
%:
|
2011-07-14 09:21:57 +00:00
|
|
|
dh $@ --parallel
|
2010-08-30 20:32:59 +00:00
|
|
|
|
2011-07-17 11:29:29 +00:00
|
|
|
.PHONY: clean
|