~ubuntu-branches/ubuntu/precise/dvdbackup/precise-backports

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Benjamin Drung, Stephen Gran
  • Date: 2009-03-27 10:41:51 UTC
  • mfrom: (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090327104151-av0in8krjqt6yii7
[ Benjamin Drung ]
* New upstream version
* debian/control:
  - Update Debian Standards-Version to 3.8.1
  - Add Homepage and Vcs-{Browser,Svn} fields
  - Add myself to Uploaders
  - Add cdbs to Build-Depends
  - Add ${misc:Depends} to Depends
  - Build-Depends on newer libdvdread-dev (Closes: #516825)
  - dvdbackup-dev needs to depend on same version of dvdbackup
  - Adjust section to the new sections in Debian
* Add newline to the end of debian/watch
* debian/rules: Switch to cdbs (Closes: #506600)
* debian/dvdbackup.{dirs,docs,manpages}: Removed
* debian/dvdbackup.install: Updated for cdbs
* debian/copyright: Updated year and corrected link to GPL

[ Stephen Gran ]
* Prep for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
CFLAGS := -Wall -g
9
 
 
10
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11
 
        CFLAGS += -O0
12
 
else
13
 
        CFLAGS += -O2
14
 
endif
15
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
16
 
        INSTALL_PROGRAM += -s
17
 
endif
18
 
 
19
 
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
20
 
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
21
 
 
22
 
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
23
 
        confflags += --build $(DEB_HOST_GNU_TYPE)
24
 
else
25
 
        confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
26
 
endif
27
 
 
28
 
config.status: configure
29
 
        ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
30
 
 
31
 
build: build-stamp
32
 
build-stamp: config.status
33
 
        dh_testdir
34
 
        CFLAGS="$(CFLAGS)" $(MAKE)
35
 
        touch build-stamp
36
 
 
37
 
clean:
38
 
        dh_testdir
39
 
        dh_testroot
40
 
ifeq (Makefile,$(wildcard Makefile))
41
 
        $(MAKE) distclean
42
 
endif
43
 
        rm -f build-stamp
44
 
        rm -f po/stamp-po
45
 
        dh_clean
46
 
 
47
 
install: build
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_installdirs
51
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
52
 
 
53
 
binary-indep:
54
 
 
55
 
binary-arch: install
56
 
        dh_testdir
57
 
        dh_testroot
58
 
        dh_installchangelogs
59
 
        dh_installdocs 
60
 
        dh_installman
61
 
        dh_install --autodest --sourcedir=debian/tmp
62
 
        dh_strip --dbg-package=dvdbackup-dbg
63
 
        dh_link
64
 
        dh_compress
65
 
        dh_fixperms
66
 
        dh_installdeb
67
 
        dh_shlibdeps 
68
 
        dh_gencontrol
69
 
        dh_md5sums
70
 
        dh_builddeb
71
 
 
72
 
binary: binary-indep binary-arch
73
 
.PHONY: build clean binary-arch binary install
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5