| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/nanopb |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
export DEB_CFLAGS_MAINT_APPEND = -finline-limit=1000 -Wno-stringop-truncation |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ |
| 15 |
|
| 16 |
src/proto/msg.pb.c src/proto/msg.pb.h &: src/proto/msg.proto |
| 17 |
cd src/proto && protoc --nanopb_out=. msg.proto |
| 18 |
|
| 19 |
override_dh_auto_configure: src/proto/msg.pb.c src/proto/msg.pb.h |
| 20 |
dh_auto_configure -- \ |
| 21 |
-DCDOGS_BIN_DIR=/usr/games \ |
| 22 |
-DCDOGS_DATA_DIR=/usr/share/games/cdogs-sdl/ \ |
| 23 |
-DUSE_SHARED_ENET=ON \ |
| 24 |
-DDEBUG=ON \ |
| 25 |
-DBUILD_EDITOR=OFF |
| 26 |
|
| 27 |
execute_before_dh_installdocs: |
| 28 |
rm -r $(CURDIR)/debian/tmp/usr/doc |
| 29 |
|
| 30 |
execute_before_dh_install: |
| 31 |
find $(CURDIR)/debian/tmp -type f '(' -iname "LICENSE.md" -o -iname "README.md" -o -name "*.sh" ')' -delete |
| 32 |
|
| 33 |
find $(CURDIR)/debian/tmp -type f '(' -name "*.txt" -a '!' \ |
| 34 |
'(' -name 'gamecontroller*db.txt' -o -name 'prefixes.txt' -o -name 'suffix*.txt' ')' ')' -delete |
| 35 |
|
| 36 |
override_dh_gencontrol: |
| 37 |
dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libnanopb-dev")" |
| 38 |
|
| 39 |
override_dh_auto_test: |
| 40 |
dh_auto_test --no-parallel |