~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2004-06-30 13:58:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040630135816-wwx75gdlodkqbabb
Tags: upstream-0.12.2
ImportĀ upstreamĀ versionĀ 0.12.2

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=3
 
10
 
 
11
# These are used for cross-compiling and for saving the configure script
 
12
# from having to guess our platform (since we know it already)
 
13
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
14
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
15
 
 
16
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -g
 
18
endif
 
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
20
        INSTALL_PROGRAM += -s
 
21
endif
 
22
 
 
23
configure: configure-stamp
 
24
configure-stamp:
 
25
        dh_testdir
 
26
        # Add here commands to configure the package.
 
27
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-static --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
 
28
 
 
29
        touch configure-stamp
 
30
 
 
31
build: build-stamp
 
32
 
 
33
build-stamp: configure-stamp 
 
34
        dh_testdir
 
35
 
 
36
        # Add here commands to compile the package.
 
37
        $(MAKE)
 
38
        #/usr/bin/docbook-to-man debian/linphone.sgml > linphone.1
 
39
 
 
40
        touch build-stamp
 
41
 
 
42
clean:
 
43
        dh_testdir
 
44
        dh_testroot
 
45
        rm -f build-stamp configure-stamp
 
46
 
 
47
        # Add here commands to clean up after the build process.
 
48
        -make clean
 
49
        -make distclean
 
50
        -test -r /usr/share/misc/config.sub && \
 
51
          -cp -f /usr/share/misc/config.sub config.sub
 
52
        -test -r /usr/share/misc/config.guess && \
 
53
          -cp -f /usr/share/misc/config.guess config.guess
 
54
 
 
55
 
 
56
        dh_clean
 
57
 
 
58
install: build
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_clean -k
 
62
        dh_installdirs
 
63
 
 
64
        # Add here commands to install the package into debian/linphone.
 
65
        $(MAKE) install PIXDESTDIR=$(CURDIR)/debian/linphone prefix=$(CURDIR)/debian/linphone/usr sysconfdir=$(CURDIR)/debian/linphone/etc
 
66
        # remove speex libs, in order to not to conflict with speex debian package.
 
67
        rm -f   $(CURDIR)/debian/linphone/usr/lib/libspeex* \
 
68
                        $(CURDIR)/debian/linphone/usr/bin/speex* \
 
69
                        $(CURDIR)/debian/linphone/usr/include/speex* \
 
70
                        $(CURDIR)/debian/linphone/usr/share/man/man1/speex*
 
71
 
 
72
# Build architecture-independent files here.
 
73
binary-indep: build install
 
74
# We have nothing to do by default.
 
75
 
 
76
# Build architecture-dependent files here.
 
77
binary-arch: build install
 
78
        dh_testdir
 
79
        dh_testroot
 
80
#       dh_installdebconf       
 
81
        dh_installdocs
 
82
        dh_installexamples
 
83
        dh_installmenu
 
84
#       dh_installlogrotate
 
85
#       dh_installemacsen
 
86
#       dh_installpam
 
87
#       dh_installmime
 
88
#       dh_installinit
 
89
        dh_installcron
 
90
        dh_installman
 
91
        dh_installinfo
 
92
#       dh_undocumented
 
93
        dh_installchangelogs ChangeLog
 
94
        dh_link
 
95
        dh_strip
 
96
        dh_compress
 
97
        dh_fixperms
 
98
#       dh_makeshlibs
 
99
        dh_installdeb
 
100
#       dh_perl
 
101
        dh_shlibdeps
 
102
        dh_gencontrol
 
103
        dh_md5sums
 
104
        dh_builddeb
 
105
 
 
106
binary: binary-indep binary-arch
 
107
.PHONY: build clean binary-indep binary-arch binary install configure