3
include /usr/share/dpatch/dpatch.make
5
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
3
# Path to the debian directory
8
4
DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} |awk '{print $$1}' |xargs dirname)
9
5
UPSTREAM_VERSION ?=$(shell uscan --dehs | \
10
6
sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20
config.status: configure
22
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
26
build-stamp: patch-stamp config.status
35
[ ! -f Makefile ] || $(MAKE) clean
37
rm -f po/POTFILES po/Makefile src/Makefile src/.deps/*.Po dvdauthor/Makefile dvdauthor/.deps/*.Plo libtool config.log config.status Makefile config.h stamp-h1
44
$(MAKE) install DESTDIR=$(CURDIR)/debian/dvd95
46
binary-indep: build install
47
binary-arch: build install
50
dh_install debian/dvd95.xpm usr/share/pixmaps
51
dh_installchangelogs ChangeLog
55
dh_installman debian/dvd95.1
66
binary: binary-indep binary-arch
11
override_dh_auto_clean:
13
rm -f po/POTFILES po/Makefile src/Makefile src/.deps/*.Po \
14
dvdauthor/Makefile dvdauthor/.deps/*.Plo libtool \
15
config.log config.status Makefile config.h stamp-h1
18
override_dh_auto_test:
69
21
cd $(DEBIAN_DIR)/.. && uscan --force-download