~ubuntu-branches/ubuntu/lucid/dvd95/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-02-14 20:45:14 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100214204514-k1l8jra595vc57xd
Tags: 1.6p0-0ubuntu1
* New upstream release.
* Switch to debhelper 7.
* Use quilt as patch system:
  - Drop dpatch support.
  - Convert all patches to quilt format.
  - Update debian/README.source.
* Refresh patches.
* Drop 04_dvdinfo.c.patch, applied by upstream.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/dpatch/dpatch.make
4
 
 
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')
11
7
 
12
 
CFLAGS = -Wall -g
13
 
 
14
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
 
        CFLAGS += -O0
16
 
else
17
 
        CFLAGS += -O2
18
 
endif
19
 
 
20
 
config.status: configure
21
 
        dh_testdir
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"
23
 
 
24
 
build: build-stamp
25
 
 
26
 
build-stamp: patch-stamp config.status
27
 
        dh_testdir
28
 
        $(MAKE)
29
 
        touch $@
30
 
 
31
 
clean: unpatch
32
 
        dh_testdir
33
 
        dh_testroot
34
 
        rm -f build-stamp 
35
 
        [ ! -f Makefile ] || $(MAKE) clean
36
 
        dh_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
38
 
 
39
 
install: build
40
 
        dh_testdir
41
 
        dh_testroot
42
 
        dh_clean -k 
43
 
        dh_installdirs
44
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/dvd95
45
 
 
46
 
binary-indep: build install
47
 
binary-arch: build install
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_install debian/dvd95.xpm usr/share/pixmaps
51
 
        dh_installchangelogs ChangeLog
52
 
        dh_installmenu
53
 
        dh_installdocs
54
 
        dh_installexamples
55
 
        dh_installman debian/dvd95.1
56
 
        dh_link
57
 
        dh_strip
58
 
        dh_compress
59
 
        dh_fixperms
60
 
        dh_installdeb
61
 
        dh_shlibdeps
62
 
        dh_gencontrol
63
 
        dh_md5sums
64
 
        dh_builddeb
65
 
 
66
 
binary: binary-indep binary-arch
 
8
%:
 
9
        dh --with quilt $@
 
10
 
 
11
override_dh_auto_clean:
 
12
        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
 
16
 
 
17
 
 
18
override_dh_auto_test:
67
19
 
68
20
get-orig-source:
69
21
        cd $(DEBIAN_DIR)/.. && uscan --force-download
74
26
        gzip -9fn ../dvd95_$(UPSTREAM_VERSION).orig.tar
75
27
        rm -fr dvd95-$(UPSTREAM_VERSION)
76
28
 
77
 
.PHONY: build clean binary-indep binary-arch binary install