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
|
#!/usr/bin/make -f
# Variables used by cdbs
VERSION := $(shell dpkg-parsechangelog | \
awk '/Version:/ {print $$2}' | cut -d- -f 1)
DEB_TAR_SRCDIR = tiff-$(VERSION)
DEB_COMPRESS_EXCLUDE = html
export CPPFLAGS = -D_REENTRANT
# Include cdbs rules files.
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
DEB_CONFIGURE_USER_FLAGS = --with-docdir="\$${prefix}/share/doc/libtiff4"
# As 0.4.21, cdbs creates but doesn't remove debian/compat. It
# creates it conditionally, so this doesn't have a trivial fix.
clean::
$(RM) debian/compat *.cdbs-config_list
$(RM) debian/*.preinst
# tiffgt is in libtiff-opengl so libtiff-tools doesn't have to have
# all the X and opengl dependencies.
binary-post-install/libtiff-tools::
$(RM) debian/libtiff-tools/usr/bin/tiffgt
$(RM) debian/libtiff-tools/usr/share/man/man1/tiffgt.1*
# Install lintian override files and create preinst
binary-post-install/%::
if [ -f debian/$*.lintian ]; then \
mkdir -p debian/$*/usr/share/lintian/overrides && \
cp -p debian/$*.lintian debian/$*/usr/share/lintian/overrides/$*; \
fi
if [ "$*" != "libtiff4" ]; then \
sed -e s/PKG/$*/g < debian/all-preinst > debian/$*.preinst; \
fi
# Point everyone's /usr/share/doc entry to libtiff4's
binary-predeb/%::
if [ "$*" != "libtiff4" ]; then \
$(RM) -r debian/$*/usr/share/doc/$*; \
ln -s libtiff4 debian/$*/usr/share/doc/$*; \
fi
|