~ubuntu-branches/ubuntu/jaunty/imms/jaunty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Veber
  • Date: 2004-04-30 16:45:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040430164557-nu8cjmpvgybwb1p2
Tags: 1.1-1
* New upstream release
  Closes: #244950
* Replaced libid3-dev, and libvorbis-dev build-deps with libtag1-dev
* Include immstool in the package
  Closes: #242349

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
 
 
7
 
 
8
 
 
9
CFLAGS = -Wall -g
 
10
 
 
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
12
        CFLAGS += -O0
 
13
else
 
14
        CFLAGS += -O2
 
15
endif
 
16
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
17
        INSTALL_PROGRAM += -s
 
18
endif
 
19
 
 
20
configure: configure-stamp
 
21
configure-stamp:
 
22
        dh_testdir
 
23
        if [ ! -x ./configure ]; then chmod +x ./configure ; fi
 
24
        ./configure
 
25
 
 
26
        touch configure-stamp
 
27
 
 
28
 
 
29
build: build-stamp
 
30
 
 
31
build-stamp: configure-stamp 
 
32
        dh_testdir
 
33
 
 
34
        $(MAKE) all immstool
 
35
 
 
36
        touch build-stamp
 
37
 
 
38
clean:
 
39
        dh_testdir
 
40
        dh_testroot
 
41
        rm -f build-stamp configure-stamp
 
42
 
 
43
        -$(MAKE) clean
 
44
 
 
45
        rm -f config.log config.status
 
46
        dh_clean 
 
47
 
 
48
install: build
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        dh_clean -k 
 
52
        dh_installdirs
 
53
 
 
54
        # Add here commands to install the package into debian/imms.
 
55
        $(MAKE) install DESTDIR=$(CURDIR)/debian/imms
 
56
        chmod 0644 $(CURDIR)/debian/imms/usr/lib/xmms/Visualization/libimms.so
 
57
        install -D -s immstool  $(CURDIR)/debian/imms/usr/bin/immstool
 
58
 
 
59
# Build architecture-independent files here.
 
60
binary-indep: build install
 
61
# We have nothing to do by default.
 
62
 
 
63
# Build architecture-dependent files here.
 
64
binary-arch: build install
 
65
        dh_testdir
 
66
        dh_testroot
 
67
        dh_installchangelogs 
 
68
        dh_installdocs
 
69
        dh_installexamples
 
70
#       dh_install
 
71
#       dh_installmenu
 
72
#       dh_installdebconf       
 
73
#       dh_installlogrotate
 
74
#       dh_installemacsen
 
75
#       dh_installpam
 
76
#       dh_installmime
 
77
#       dh_installinit
 
78
#       dh_installcron
 
79
#       dh_installinfo
 
80
        dh_installman
 
81
        dh_link
 
82
        dh_strip
 
83
        dh_compress
 
84
        dh_fixperms
 
85
#       dh_perl
 
86
#       dh_python
 
87
#       dh_makeshlibs
 
88
        dh_installdeb
 
89
        dh_shlibdeps
 
90
        dh_gencontrol
 
91
        dh_md5sums
 
92
        dh_builddeb
 
93
 
 
94
binary: binary-indep binary-arch
 
95
.PHONY: build clean binary-indep binary-arch binary install configure