~ubuntu-branches/ubuntu/precise/libsamplerate/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2004-03-16 23:29:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040316232917-l2lhnlma064u2d4w
Tags: 0.1.0-1
New upstream release

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
 
 
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -g
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
        INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
# shared library versions, option 1
 
25
#version=2.0.5
 
26
#major=2
 
27
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
 
28
version=`ls src/.libs/lib*.so.* | \
 
29
 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 
30
major=`ls src/.libs/lib*.so.* | \
 
31
 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
32
 
 
33
config.status: configure
 
34
        dh_testdir
 
35
        # Add here commands to configure the package.
 
36
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
37
 
 
38
 
 
39
build: build-stamp
 
40
build-stamp:  config.status
 
41
        dh_testdir
 
42
 
 
43
        # Add here commands to compile the package.
 
44
        $(MAKE)
 
45
 
 
46
        $(MAKE) check
 
47
 
 
48
        touch build-stamp
 
49
 
 
50
clean:
 
51
        dh_testdir
 
52
        dh_testroot
 
53
        rm -f build-stamp 
 
54
 
 
55
        # Add here commands to clean up after the build process.
 
56
        -$(MAKE) distclean
 
57
 
 
58
        dh_clean
 
59
 
 
60
install: build
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_clean -k
 
64
        dh_installdirs
 
65
 
 
66
        # Add here commands to install the package into debian/tmp
 
67
        $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
 
68
 
 
69
 
 
70
# Build architecture-independent files here.
 
71
binary-indep: build install
 
72
# We have nothing to do by default.
 
73
 
 
74
# Build architecture-dependent files here.
 
75
binary-arch: build install
 
76
        dh_testdir
 
77
        dh_testroot
 
78
        dh_movefiles
 
79
 
 
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