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
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
MAKEFILE = $(firstword $(MAKEFILE_LIST))
DEBIAN_DIR = $(dir $(MAKEFILE))
SOURCE_DIR = $(DEBIAN_DIR)/..
DEB_VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Version | cut -d" " -f2)
DEB_SOURCE_NAME = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Source | cut -d" " -f2)
VERSION = $(shell echo $(DEB_VERSION) | cut -d"-" -f1 | sed 's/+dfsg.*//')
PACKAGES = $(shell sed -n 's/^Package: //p' $(DEBIAN_DIR)/control)
DEB_ABI_VERSION = 2.1
override_dh_auto_configure:
dh_auto_configure -- --prefix=/usr MCS=/usr/bin/mono-csc AL=/usr/bin/al2
override_dh_auto_install:
dh_auto_install
mkdir -p debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION) debian/tmp/usr/share/pkgconfig
cp src/taglib-sharp.dll debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
cp src/taglib-sharp.dll.mdb debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
# The -V is there for a reason. Check the changelog for more info. If you dare
# touch this, prepare for the consequences. Breaking the world is one. Me (or
# other taglib-sharp rdeps' maintainers) finding creative ways to cook you alive
# if the breakages come back to me is another. You've been warned.
override_dh_makeclilibs:
dh_makeclilibs -V
override_dh_autoreconf:
[ -d tests ] || mkdir tests
[ -f tests/Makefile.am ] || touch tests/Makefile.am
dh_autoreconf
override_dh_autoreconf_clean:
dh_autoreconf_clean
rm -rf tests/
%:
dh $@ --with cli,autoreconf
.PHONY: get-orig-source
|