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
|
#!/usr/bin/make -f
## cf #1108104 and cross-build ability
DPKG_EXPORT_BUILDTOOLS := 1
include /usr/share/dpkg/buildtools.mk
## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date)
DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d "$(DEB_DATE_RFC_2822)")
override_dh_auto_configure:
dh_auto_configure -- --without-included-ltdl
override_dh_auto_build:
make
## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
## and override current time with time in changelog for indentical pdf docs
## also see #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778462 for the chmod
#(cd doc/manual && faketime -f "$(DEB_DATE_RFC_3339)" make docs && ls)
(cd doc/manual && make docs)
override_dh_auto_install:
dh_auto_install
#
# edd 08 May 2011
# empty dependency_lib in .la files (cf #621213)
find debian/$(package) -name \*.la | \
xargs perl -p -i -e "s/dependency_libs='.*'/dependency_libs=''/"
%:
dh $@ --with autoreconf
|