3
# Uncomment this to turn on verbose mode.
6
include /usr/share/dpatch/dpatch.make
8
# These are used for cross-compiling and for saving the configure script
9
# from having to guess our platform (since we know it already)
10
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21
config.status: configure patch-stamp
24
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
25
cp -f /usr/share/misc/config.sub autotools/config.sub
27
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
28
cp -f /usr/share/misc/config.guess autotools/config.guess
32
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --enable-shared
35
build-stamp: config.status
49
[ ! -f Makefile ] || $(MAKE) distclean
50
rm -f autotools/config.sub autotools/config.guess
61
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
62
cp -a liba52/a52_internal.h debian/tmp/usr/include/a52dec
64
binary-indep: build install
66
binary-arch: build install
69
dh_installchangelogs ChangeLog
71
dh_install --sourcedir=debian/tmp
83
binary: binary-indep binary-arch
84
.PHONY: build clean binary-indep binary-arch binary install
6
override_dh_auto_configure:
7
ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess autotools/
8
dh_auto_configure -- --enable-shared