| 1 |
#!/usr/bin/make -f |
| 2 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 3 |
export DEB_CFLAGS_MAINT_APPEND = -Ithird_party/md5 -Iinclude -fPIC |
| 4 |
DEB_CXXFLAGS_MAINT_APPEND = -Ithird_party/md5 -I/usr/include/nlohmann -Iinclude -fPIC -DNDEBUG -DC4CORE_NO_FAST_FLOAT=1 |
| 5 |
DEB_CXXFLAGS_MAINT_APPEND += $(shell dpkg-buildflags --get CPPFLAGS) |
| 6 |
export DEB_CXXFLAGS_MAINT_APPEND |
| 7 |
|
| 8 |
include /usr/share/dpkg/pkg-info.mk |
| 9 |
DEB_UPSTREAM_VERSION=$(shell sh -c 'printf "$${1%%+ds*}"' -- "$(DEB_VERSION_UPSTREAM)") |
| 10 |
|
| 11 |
export PYBUILD_NAME = $(DEB_SOURCE) |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ -Scmake --with python3 |
| 15 |
|
| 16 |
override_dh_auto_configure: |
| 17 |
dh_auto_configure -- \ |
| 18 |
-DBUILD_MAN_PAGES=ON \ |
| 19 |
-DUSE_SYSTEM_GTEST=ON \ |
| 20 |
-DUSE_SYSTEM_JSON=ON \ |
| 21 |
-DUSE_SYSTEM_RAPIDYAML=ON \ |
| 22 |
-DBUILD_JSONNET=ON \ |
| 23 |
-DBUILD_TESTS=ON |
| 24 |
|
| 25 |
override_dh_auto_build: |
| 26 |
dh_auto_build |
| 27 |
rm -f python/__init__.py |
| 28 |
dh_auto_build --buildsystem=pybuild |
| 29 |
|
| 30 |
override_dh_auto_install: |
| 31 |
dh_auto_install |
| 32 |
dh_auto_install --buildsystem=pybuild |
| 33 |
rm -f $(CURDIR)/debian/tmp/usr/share/doc/jsonnet/html/_layout/base.html |
| 34 |
|
| 35 |
override_dh_auto_clean: |
| 36 |
dh_auto_clean -O-Scmake |
| 37 |
dh_auto_clean -O-Smakefile |
| 38 |
dh_auto_clean --buildsystem=pybuild |
| 39 |
|
| 40 |
override_dh_makeshlibs: |
| 41 |
dh_makeshlibs -- -c0 -v$(DEB_UPSTREAM_VERSION) |
| 42 |
|
| 43 |
execute_after_dh_installexamples: |
| 44 |
rm -f $(CURDIR)/debian/jsonnet/usr/share/doc/jsonnet/examples/bazel/.gitignore |