~xnox/ubuntu/maverick/a52dec/merge-14

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Andrew Starr-Bochicchio
  • Date: 2009-12-25 00:02:56 UTC
  • mfrom: (8.1.1 lucid)
  • Revision ID: a.starr.b@gmail.com-20091225000256-c76dy954z7vqglkw
Tags: 0.7.4-13ubuntu1
MergeĀ lp:~dmitrij.ledkov/ubuntu/lucid/a52dec/merge-0.7.4-13

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# Uncomment this to turn on verbose mode.
4
 
#export DH_VERBOSE=1
5
 
 
6
 
include /usr/share/dpatch/dpatch.make
7
 
 
8
 
# These are used for cross-compiling and for saving the configure script
9
 
# from having to guess our platform (since we know it already)
10
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12
 
 
13
 
CFLAGS = -Wall -g
14
 
 
15
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16
 
        CFLAGS += -O0
17
 
else
18
 
        CFLAGS += -O2
19
 
endif
20
 
 
21
 
config.status: configure patch-stamp
22
 
        dh_testdir
23
 
 
24
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
25
 
        cp -f /usr/share/misc/config.sub autotools/config.sub
26
 
endif
27
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
28
 
        cp -f /usr/share/misc/config.guess autotools/config.guess
29
 
endif
30
 
 
31
 
        # Configuring package
32
 
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --enable-shared
33
 
 
34
 
build: build-stamp
35
 
build-stamp: config.status
36
 
        dh_testdir
37
 
 
38
 
        # Building package
39
 
        $(MAKE)
40
 
 
41
 
        touch build-stamp
42
 
 
43
 
clean: unpatch
44
 
        dh_testdir
45
 
        dh_testroot
46
 
        rm -f build-stamp
47
 
 
48
 
        # Cleaning package
49
 
        [ ! -f Makefile ] || $(MAKE) distclean
50
 
        rm -f autotools/config.sub autotools/config.guess
51
 
 
52
 
        dh_clean
53
 
 
54
 
install: build
55
 
        dh_testdir
56
 
        dh_testroot
57
 
        dh_clean -k
58
 
        dh_installdirs
59
 
 
60
 
        # Installing package
61
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
62
 
        cp -a liba52/a52_internal.h debian/tmp/usr/include/a52dec
63
 
 
64
 
binary-indep: build install
65
 
 
66
 
binary-arch: build install
67
 
        dh_testdir
68
 
        dh_testroot
69
 
        dh_installchangelogs ChangeLog
70
 
        dh_installdocs
71
 
        dh_install --sourcedir=debian/tmp
72
 
        dh_link
73
 
        dh_strip
74
 
        dh_compress
75
 
        dh_fixperms
76
 
        dh_makeshlibs
77
 
        dh_installdeb
78
 
        dh_shlibdeps
79
 
        dh_gencontrol
80
 
        dh_md5sums
81
 
        dh_builddeb
82
 
 
83
 
binary: binary-indep binary-arch
84
 
.PHONY: build clean binary-indep binary-arch binary install
 
3
%:
 
4
        dh --with quilt $@ 
 
5
 
 
6
override_dh_auto_configure:
 
7
        ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess autotools/
 
8
        dh_auto_configure -- --enable-shared