~ubuntu-branches/ubuntu/edgy/vdr-plugin-prefermenu/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Debian VDR Team
  • Date: 2004-09-25 11:59:12 UTC
  • Revision ID: james.westby@ubuntu.com-20040925115912-epy35qrt7mkg598a
Tags: 0.6.2-1
* Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
         - First upload to the official archive (closes: #273311)
  - New upstream release
  - Added watch-file
  - Added patchlevel-mechanism, to be compatible with c't-vdr               
  - Use dpatch, so build-dep on dpatch
  - Add 01_Makefile-fPIC-fix.dpatch
  - Use dh_install
  - Changed maintainer to Debian VDR and DVB Packaging Team 
    <pkg-vdr-dvb-devel@lists.alioth.debian.org>
  - Changed architecture to any
* Tobias Grimm <tg@e-tobi.net>
  - Added 02_Makefile-GNU_SOURCE-fix.dpatch to enable GNU extensions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=4
 
10
 
 
11
# include dpatch stuff
 
12
include /usr/share/dpatch/dpatch.make
 
13
 
 
14
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
15
        CFLAGS += -g
 
16
endif
 
17
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
18
        INSTALL_PROGRAM += -s
 
19
endif
 
20
 
 
21
VDR=vdr
 
22
PACKAGE=$(VDR)-plugin-prefermenu
 
23
VDRDIR=/usr/include/$(VDR)
 
24
DVBDIR=/usr/include
 
25
 
 
26
configure: configure-stamp
 
27
configure-stamp:
 
28
        dh_testdir
 
29
 
 
30
        touch configure-stamp
 
31
 
 
32
 
 
33
build: patch-stamp build-stamp
 
34
 
 
35
build-stamp: configure-stamp 
 
36
        dh_testdir
 
37
 
 
38
        $(MAKE) all DVBDIR=/usr/include VDRDIR=/usr/include/vdr LIBDIR=.
 
39
 
 
40
        touch build-stamp
 
41
 
 
42
clean: clean-patched unpatch
 
43
 
 
44
clean-patched:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        rm -f build-stamp configure-stamp
 
48
        rm -f libvdr-*.so*
 
49
        make clean
 
50
 
 
51
        dh_clean
 
52
 
 
53
install: build
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        dh_clean -k
 
57
        dh_installdirs
 
58
 
 
59
        dh_install
 
60
 
 
61
# Build architecture-independent files here.
 
62
binary-indep: build install
 
63
# We have nothing to do by default.
 
64
 
 
65
# Build architecture-dependent files here.
 
66
binary-arch: build install
 
67
        dh_testdir
 
68
        dh_testroot
 
69
        dh_installdocs
 
70
        dh_installexamples
 
71
        dh_installmenu
 
72
        dh_installcron
 
73
        dh_installman
 
74
        dh_installinfo
 
75
        dh_installchangelogs 
 
76
        dh_link
 
77
        dh_strip
 
78
        dh_compress
 
79
        dh_fixperms
 
80
        dh_installdeb
 
81
        dh_shlibdeps
 
82
        
 
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.
 
88
   
 
89
        [ -r $(VDRDIR)/patchlevel ] || echo 'patchlevel=' >> debian/$(PACKAGE).substvars
 
90
        [ ! -r $(VDRDIR)/patchlevel ] || cat $(VDRDIR)/patchlevel >> debian/$(PACKAGE).substvars
 
91
 
 
92
        dh_gencontrol
 
93
        dh_md5sums
 
94
        dh_builddeb
 
95
 
 
96
binary: binary-indep binary-arch
 
97
.PHONY: build clean binary-indep binary-arch binary install patch unpatch configure