1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#! /usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Uncomment to view all compilation commands and fix W-compiler-flags-hidden
export VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#CMake silently ignores CPPFLAGS. Below will properly set CFLAGS/CXXFLAGS
#https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
%:
dh $@ --builddirectory=build
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DWANT_STATIC=YES -DWANT_PLAYERSTATIC=NO -DCMAKE_BUILD_TYPE="Release"
override_dh_installchangelogs:
dh_installchangelogs README.md
override_dh_clean:
dh_clean
-rm -f include/config.h
|