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 30 31 32 33
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Ithird_party/md5 -Iinclude -fPIC
DEB_CXXFLAGS_MAINT_APPEND = -Ithird_party/md5 -I/usr/include/nlohmann -Iinclude -fPIC -DC4CORE_NO_FAST_FLOAT -DNDEBUG
DEB_CXXFLAGS_MAINT_APPEND += $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_CXXFLAGS_MAINT_APPEND
%:
dh $@ -Scmake --with python3
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DUSE_SYSTEM_GTEST=ON \
-DUSE_SYSTEM_JSON=ON \
-DBUILD_JSONNET=ON \
-DBUILD_TESTS=ON
override_dh_auto_build:
dh_auto_build
for PY in $(shell py3versions -rs); do \
$$PY setup.py build; done
override_dh_auto_install:
dh_auto_install
for PY in $(shell py3versions -rs); do \
$$PY setup.py install --install-layout=deb \
--root=$(shell pwd)/debian/tmp; done
rm -f $(CURDIR)/debian/tmp/usr/share/doc/jsonnet/html/_layout/base.html
override_dh_auto_clean:
dh_auto_clean -O-Scmake
dh_auto_clean -O-Smakefile
|