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 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,+bindnow
include /usr/share/dpkg/pkg-info.mk
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)
UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
include /usr/share/dpkg/architecture.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_BINARY_DIR=debian/tmp \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DDEACTIVATE_AVX2=ON \
-DDEACTIVATE_AVX512=ON \
-DPREFER_EXTERNAL_LZ4=ON \
-DPREFER_EXTERNAL_OPENZL=ON \
-DPREFER_EXTERNAL_ZSTD=ON \
-DPREFER_EXTERNAL_ZLIB=ON
execute_after_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
cp -r images doc/images
env http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
sphinx-build -N -E -T -b html doc doc/_build/html/
$(RM) -r doc/_build/html/.doctrees
$(RM) -r doc/_build/html/_static/vendor
endif
override_dh_makeshlibs:
dh_makeshlibs -- -v$(UPSTREAM_VERSION) -c0
override_dh_auto_test:
ifeq (,$(filter $(DEB_BUILD_ARCH),mips64el))
dh_auto_test -- ARGS=--verbose --jobs=1
endif
override_dh_installchangelogs:
dh_installchangelogs RELEASE_NOTES.md
|