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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
#! /usr/bin/make -f
# We use the Common Debian Build System (version 1, for now); specifically,
# we use the DBS-style tarball subsystem, the debhelper subsystem, the
# simple patch subsystem, and the autotools subsystem.
# TinyFugue tries to be (overly?) smart about making it 'easy' to do a
# debugging build, and it clashes with the Debian Way(tm). Therefore, this
# needs to be here so that it overrides the normal strip program search in
# autoconf.
STRIP=:
# Normally, DEB_* bits follow the rule they affect, rather than preceed it.
# However, tarball.mk appears to be an exception to this rule.
DEB_TAR_SRCDIR := tf-50b7
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
# No configs
include /usr/share/cdbs/1/rules/simple-patchsys.mk
# No configs
include /usr/share/cdbs/1/class/autotools.mk
# TinyFugue now supports the datadir configure argument. So we'll use it.
DEB_CONFIGURE_NORMAL_ARGS += --datadir=$(DEB_CONFIGURE_DATADIR)
DEB_CONFIGURE_DATADIR ="\$${prefix}/share/$(DEB_SOURCE_PACKAGE)"
# Enable 256‐color mode. Not many things in Debian support it yet, but they
# really *should* anyway, and we certainly don’t need to wait until they do
# to offer support for it (users could be running on any number of terminal
# emulators — or even real terminals — that could handle it, even if Debian
# has limited support for it as of yet.
DEB_CONFIGURE_EXTRA_FLAGS += --enable-256colors
# Enable checking for mail in /var/mail/<user>. This is just a system default;
# tf will read the environment variable MAILDIR by preference. Unfortunately,
# it still doesn’t support Maildir checking. But we do what we can.
DEB_CONFIGURE_EXTRA_FLAGS += --enable-mailcheck=/var/mail
# TF ignores any argument to --enable-version, and forces something like
# '50b7' instead. However, since we're the ones doing the packaging, we can
# beat it until it cries out for mercy... or at least does what we tell it
# to.
DEB_CONFIGURE_EXTRA_FLAGS += --disable-version --program-suffix=5
DEB_CONFIGURE_EXTRA_FLAGS += --disable-version-symlink
# Just in case we build on a system with OpenSSL installed, because I haven’t
# been able to convince Ken to allow a license exception yet, nor have I had
# the time to fix this by patching it to use GNU TLS.
DEB_CONFIGURE_EXTRA_FLAGS += --disable-ssl
# Rather than discarding the debugging symbols stripped from the binary,
# put them aside so that they are available when needed.
DEB_DH_STRIP_ARGS += --keep-debug
DEB_CONFIGURE_SCRIPT_ENV += STRIP="$(STRIP)"
STRIP=:
# For now, lintian and linda don't really grok the debugging symbols generated
# above, so we need to give them overrides.
install/tf5::
-install --mode=644 --owner=root --group=root \
debian/tf5.lintian-overrides \
$(DEB_DESTDIR)/usr/share/lintian/overrides/tf5
-install --mode=644 --owner=root --group=root \
debian/tf5.linda-overrides \
$(DEB_DESTDIR)/usr/share/linda/overrides/tf5
|