~ubuntu-branches/ubuntu/hardy/speex/hardy-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2005-02-26 22:33:22 UTC
  • Revision ID: james.westby@ubuntu.com-20050226223322-ygzxtmepylgi4bmc
Tags: 1.1.6-2
* out of experimental for iaxclient (Closes: #292548)
* installs speex.pc in /usr/lib/pkgconfig (Closes: #267281)
* implements documented SPEEX_GET_QUALITY (Closes: #271052)
* update copyright file (Closes: #290207)
* default encoding quality is 8 (Closes: #295552)

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 by Joey Hess.
 
4
#
 
5
# This version is for a hypothetical package that builds an
 
6
# architecture-dependant package, as well as an architecture-independent
 
7
# package.
 
8
 
 
9
# Uncomment this to turn on verbose mode. 
 
10
#export DH_VERBOSE=1
 
11
 
 
12
# This is the debhelper compatibility version to use.
 
13
export DH_COMPAT=3
 
14
 
 
15
# These are used for cross-compiling and for saving the configure script
 
16
# from having to guess our platform (since we know it already)
 
17
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
18
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
19
 
 
20
 
 
21
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
22
        CFLAGS += -g
 
23
endif
 
24
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
25
        INSTALL_PROGRAM += -s
 
26
endif
 
27
 
 
28
maintainer-automake:
 
29
        # Add here commands to configure the package.
 
30
        libtoolize --force --copy
 
31
        aclocal
 
32
        automake
 
33
        autoconf
 
34
 
 
35
config.status: configure
 
36
        dh_testdir
 
37
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-shared --disable-rpath --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
38
        chmod +x debian/doxydot.sh
 
39
        debian/doxydot.sh
 
40
 
 
41
build-arch: config.status build-arch-stamp
 
42
build-arch-stamp:
 
43
        dh_testdir
 
44
 
 
45
        # Add here command to compile/build the package.
 
46
        $(MAKE)
 
47
 
 
48
        touch build-arch-stamp
 
49
 
 
50
build-indep: config.status  build-indep-stamp
 
51
build-indep-stamp:
 
52
        dh_testdir
 
53
 
 
54
        # Add here command to compile/build the arch indep package.
 
55
        # It's ok not to do anything here, if you don't need to build
 
56
        #  anything for this package.
 
57
        #/usr/bin/docbook-to-man debian/speex.sgml > speex.1
 
58
 
 
59
        touch build-indep-stamp
 
60
 
 
61
build: build-arch build-indep
 
62
 
 
63
clean:
 
64
        dh_testdir
 
65
        dh_testroot
 
66
 
 
67
        # Add here commands to clean up after the build process.
 
68
        -rm -f debian/doxyfile
 
69
        -cd src && make clean
 
70
        -$(MAKE) distclean
 
71
        -rm -f config.log
 
72
 
 
73
        dh_clean
 
74
 
 
75
automakeclean:
 
76
        rm -f libspeex/Makefile.in  src/Makefile.in
 
77
        rm -f Makefile.in config.guess config.sub
 
78
        rm -rf $(CURDIR)/debian/tmp
 
79
        rm -f config.status build-arch-stamp build-indep-stamp 
 
80
 
 
81
install: DH_OPTIONS=
 
82
install: build
 
83
        dh_testdir
 
84
        dh_testroot
 
85
        dh_clean -k
 
86
        dh_installdirs
 
87
 
 
88
        # Add here commands to install the package into debian/speex.
 
89
        mkdir $(CURDIR)/debian/tmp
 
90
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 
91
        cp -p speex.pc debian/tmp/usr/lib/pkgconfig/
 
92
 
 
93
        dh_movefiles
 
94
 
 
95
# Build architecture-independent files here.
 
96
# Pass -i to all debhelper commands in this target to reduce clutter.
 
97
binary-indep: build install
 
98
        cp -p doc/manual.pdf debian/speex-doc/usr/share/doc/speex-doc/
 
99
        doxygen debian/doxyfile
 
100
        dh_testdir -i
 
101
        dh_testroot -i
 
102
#       dh_installdebconf -i
 
103
        dh_installdocs -i
 
104
        dh_installexamples -i
 
105
        dh_installmenu -i
 
106
#       dh_installlogrotate -i
 
107
#       dh_installemacsen -i
 
108
#       dh_installpam -i
 
109
#       dh_installmime -i
 
110
#       dh_installinit -i
 
111
        dh_installcron -i
 
112
        dh_installman -i
 
113
        dh_installinfo -i
 
114
#       dh_undocumented -i
 
115
        dh_installchangelogs ChangeLog -i
 
116
        dh_link -i
 
117
        dh_compress --exclude=.pdf -i
 
118
        dh_fixperms -i
 
119
        dh_installdeb -i
 
120
#       dh_perl -i
 
121
        dh_gencontrol -i
 
122
        dh_md5sums -i
 
123
        dh_builddeb -i
 
124
 
 
125
# Build architecture-dependent files here.
 
126
binary-arch: build install
 
127
        dh_testdir -a
 
128
        dh_testroot -a
 
129
#       dh_installdebconf -a
 
130
        dh_installdocs -a
 
131
        dh_installexamples -a
 
132
        dh_installmenu -a
 
133
#       dh_installlogrotate -a
 
134
#       dh_installemacsen -a
 
135
#       dh_installpam -a
 
136
#       dh_installmime -a
 
137
#       dh_installinit -a
 
138
        dh_installcron -a
 
139
        dh_installman debian/speexenc.1 debian/speexdec.1 -a
 
140
        dh_installinfo -a
 
141
#       dh_undocumented -a
 
142
        dh_installchangelogs ChangeLog -a
 
143
        dh_strip -a
 
144
        dh_link -a
 
145
        dh_compress -a
 
146
        gzip -v9 debian/speex/usr/share/doc/speex/ChangeLog
 
147
        dh_fixperms -a
 
148
        dh_makeshlibs -a
 
149
        dh_installdeb -a
 
150
#       dh_perl -a
 
151
        dh_shlibdeps -ldebian/libspeex1/usr/lib -a
 
152
        dh_gencontrol -a
 
153
        dh_md5sums -a
 
154
        dh_builddeb -a
 
155
 
 
156
binary: binary-indep binary-arch
 
157
.PHONY: build clean binary-indep binary-arch binary install