| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DEB_DESTDIR := $(CURDIR)/debian/minizip-ng |
| 4 | |
| 5 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 | |
| 7 | # See debhelper(7) (uncomment to enable). |
| 8 | # Output every command that modifies files on the build system. |
| 9 | #export DH_VERBOSE = 1 |
| 10 | |
| 11 | |
| 12 | # See FEATURE AREAS in dpkg-buildflags(1). |
| 13 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 14 | |
| 15 | # See ENVIRONMENT in dpkg-buildflags(1). |
| 16 | # Package maintainers to append CFLAGS. |
| 17 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 18 | # Package maintainers to append LDFLAGS. |
| 19 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 20 | |
| 21 | |
| 22 | %: |
| 23 | dh $@ --buildsystem cmake+ninja |
| 24 | |
| 25 | confflags += \ |
| 26 | -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \ |
| 27 | -D BUILD_SHARED_LIBS=ON \ |
| 28 | -D MZ_COMPAT=OFF |
| 29 | |
| 30 | override_dh_auto_configure: |
| 31 | dh_auto_configure -- $(confflags) |
| 32 | |
| 33 | override_dh_auto_test: |