2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatibility version to use.
11
# include dpatch stuff
12
include /usr/share/dpatch/dpatch.make
14
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
17
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
22
PACKAGE=$(VDR)-plugin-prefermenu
23
VDRDIR=/usr/include/$(VDR)
26
configure: configure-stamp
33
build: patch-stamp build-stamp
35
build-stamp: configure-stamp
38
$(MAKE) all DVBDIR=/usr/include VDRDIR=/usr/include/vdr LIBDIR=.
42
clean: clean-patched unpatch
47
rm -f build-stamp configure-stamp
61
# Build architecture-independent files here.
62
binary-indep: build install
63
# We have nothing to do by default.
65
# Build architecture-dependent files here.
66
binary-arch: build install
83
# VDR can be customized with quite a lot of different patches, which can make
84
# the plugins binary incompatible.
85
# Although Debian will not provide different binary packages for VDR, we
86
# will include a patchlevel info, which is created at compile time and can
87
# be checked before a plugin is loaded.
89
[ -r $(VDRDIR)/patchlevel ] || echo 'patchlevel=' >> debian/$(PACKAGE).substvars
90
[ ! -r $(VDRDIR)/patchlevel ] || cat $(VDRDIR)/patchlevel >> debian/$(PACKAGE).substvars
96
binary: binary-indep binary-arch
97
.PHONY: build clean binary-indep binary-arch binary install patch unpatch configure