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 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
# We don't use tarball.mk but there's a .tgz in the way
DEB_TARBALL=
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/class/autotools.mk
# For the repack: package name, mangled upstream version, non-free files
PACKAGE=libpano13
VERSION=$(shell dpkg-parsechangelog | perl -ne 'print "$$1\n" if (/^Version: (.*?)(?:\.dfsg)?\-.*?$$/)')
# --{list,fail}-missing don't make sense when dh_install is called for each
# package rather than once for all. See the hook below, only used to check
# the list of installed files. This is cdbs's #461368.
DEB_DH_INSTALL_ARGS=--autodest --sourcedir=debian/tmp
# What to pass to ./configure
DEB_CONFIGURE_EXTRA_FLAGS= \
--prefix=/usr \
--enable-shared \
--enable-static \
--with-jpeg \
--with-png \
--with-tiff \
--with-zlib \
--without-java
# Could be merged into the former, but cleaner this way
DEB_CONFIGURE_SCRIPT_ENV += \
LDFLAGS="-Wl,-z,defs -Wl,--as-needed" \
LIBS="-lm"
# Between "make install" and "dh_*" calls
common-install-arch::
# Clear the rpath set on some architectures (e.g. amd64)
chrpath -d $(CURDIR)/debian/tmp/usr/bin/*
chrpath -d $(CURDIR)/debian/tmp/usr/lib/*.so
rm -f $(CURDIR)/debian/tmp/usr/lib/*.la
# Check the list of installed files, see the comment above the
# DEB_DH_INSTALL_ARGS declaration
dh_install --fail-missing $(DEB_DH_INSTALL_ARGS)
# Build the DFSG-free source tarball
get-orig-source:
# Download
uscan --force-download --rename
|