~ubuntu-branches/ubuntu/trusty/forked-daapd/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2010-07-03 11:26:12 UTC
  • Revision ID: james.westby@ubuntu.com-20100703112612-xopisp2hpbonx0h7
Tags: 0.12~git0.11-80-g65d3651-1
* Git snapshot 0.11-80-g65d3651.

* Initial upload (closes: #587958).
  + Upload to experimental until antlr3 can move to testing.

* Moved to source version 3.0 (quilt).

* debian/control:
  + Add Build-dep on libunistring-dev.
  + Bump antlr3 build-dep to (>= 3.2-3).
  + Bump libantlr3c-dev build-dep to (>= 3.2).
  + Bump Standards-Version to 3.9.0 (no changes).
  + Rework descriptions.
* debian/copyright:
  + Updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# These are used for cross-compiling and for saving the configure script
 
4
# from having to guess our platform (since we know it already)
 
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
 
 
8
CFLAGS = -Wall -g
 
9
 
 
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
        CFLAGS += -O0
 
12
else
 
13
        CFLAGS += -O2
 
14
endif
 
15
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
16
        INSTALL_PROGRAM += -s
 
17
endif
 
18
 
 
19
autotools: autotools-stamp
 
20
autotools-stamp:
 
21
        -rm -f config.sub config.guess
 
22
        ln -s /usr/share/misc/config.sub config.sub
 
23
        ln -s /usr/share/misc/config.guess config.guess
 
24
        touch autotools-stamp
 
25
 
 
26
config.status: autotools-stamp configure
 
27
        dh_testdir
 
28
 
 
29
        ./configure \
 
30
                --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 
31
                --prefix=/usr --sysconfdir=/etc \
 
32
                --localstatedir=/var --mandir=\$${prefix}/share/man \
 
33
                --enable-flac \
 
34
                --enable-musepack \
 
35
                --enable-itunes
 
36
 
 
37
build: build-stamp
 
38
build-stamp: config.status
 
39
        dh_testdir
 
40
 
 
41
        $(MAKE)
 
42
 
 
43
        touch $@
 
44
 
 
45
clean:
 
46
        dh_testdir
 
47
        dh_testroot
 
48
        rm -f autotools-stamp build-stamp 
 
49
 
 
50
        # Add here commands to clean up after the build process.
 
51
        [ ! -f Makefile ] || $(MAKE) distclean
 
52
 
 
53
        rm -f config.sub config.guess
 
54
 
 
55
        dh_clean 
 
56
 
 
57
install: build
 
58
        dh_testdir
 
59
        dh_testroot
 
60
        dh_clean -k 
 
61
        dh_installdirs
 
62
 
 
63
        $(MAKE) install DESTDIR=$(CURDIR)/debian/forked-daapd
 
64
 
 
65
binary-indep:
 
66
# Nothing here, move along.
 
67
 
 
68
# Build architecture-dependent files here.
 
69
binary-arch: build install
 
70
        dh_testdir
 
71
        dh_testroot
 
72
        dh_installchangelogs ChangeLog
 
73
        dh_lintian
 
74
        dh_installdocs
 
75
        dh_installinit -- defaults 25
 
76
        dh_installman
 
77
        dh_installlogrotate
 
78
        dh_compress
 
79
        dh_link
 
80
        dh_strip
 
81
        dh_fixperms
 
82
        dh_installdeb
 
83
        dh_shlibdeps
 
84
        dh_gencontrol
 
85
        dh_md5sums
 
86
        dh_builddeb
 
87
 
 
88
binary: binary-indep binary-arch
 
89
.PHONY: build clean binary-indep binary-arch binary install autotools