| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 8 |
$(info DEB_BUILD_MAINT_OPTIONS:$(origin DEB_BUILD_MAINT_OPTIONS)=$(DEB_BUILD_MAINT_OPTIONS)) |
| 9 |
|
| 10 |
## Building with "-DNDEBUG" should not be necessary after 0.9.6. |
| 11 |
# Disable wx3.0 WXDEBUG checks, as happened by default in wx2.8. |
| 12 |
#export DEB_CPPFLAGS_MAINT_APPEND=-DNDEBUG |
| 13 |
|
| 14 |
## See |
| 15 |
## * https://github.com/scp-fs2open/wxLauncher/issues/99 |
| 16 |
## * https://github.com/scp-fs2open/wxLauncher/issues/139 |
| 17 |
## for PYTHON_EXECUTABLE issue. |
| 18 |
|
| 19 |
%: |
| 20 |
dh $@ |
| 21 |
|
| 22 |
override_dh_auto_configure: |
| 23 |
dh_auto_configure -- \ |
| 24 |
-DCMAKE_BUILD_TYPE:STRING=RELEASE \ |
| 25 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
| 26 |
-DCMAKE_INSTALL_BINDIR=games \ |
| 27 |
-DCMAKE_CXX_FLAGS_RELEASE="$(CXXFLAGS) $(CPPFLAGS)" \ |
| 28 |
-DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \ |
| 29 |
-DPYTHON_EXECUTABLE=/usr/bin/python3 |
| 30 |
|
| 31 |
override_dh_auto_install: |
| 32 |
dh_auto_install --destdir=$(CURDIR)/debian/tmp |