~ubuntu-branches/ubuntu/quantal/mlt++/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-11-14 17:35:13 UTC
  • mfrom: (0.1.3 squeeze) (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081114173513-mjqzrkgssrm0t2f8
Tags: 0.3.2-1
* New upstream release.
* Refresh patches:
  - 01_remove_ldconfig
  - 02_custom_ldflags
* Remove 03_disable_test patch. deprecated.
* Add 04_add_valerie_ldflags patch to add mlt-valerie to LDFLAGS.
* Update debian/control:
  - Add versionned build dependency to libmlt-dev.
  - Add pkg-config build dependency.
  - Bump Standards-Version to 3.8.0. No changes needed.
  - Bump libmlt++ soname. libmlt++1 conflicts/replaces libmlt++0.2.
* Update debian/copyright: add Dan Dennedy copyrights.
* Update debian/rules: remove lintian override installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# Uncomment this to turn on verbose mode.
4
 
#export DH_VERBOSE=1
5
 
 
6
 
version := $(shell sed -n 's/Package: \(.*\)/\1/p' debian/control | head -n 1)
7
 
 
8
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
 
 
11
 
CFLAGS = -Wall -g
12
 
 
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
 
        CFLAGS += -O0
15
 
else
16
 
        CFLAGS += -O2
17
 
endif
18
 
 
19
 
configure: configure-stamp                        
20
 
configure-stamp:
21
 
        dh_testdir
22
 
 
23
 
        CFLAGS="$(CFLAGS)" ./configure --prefix=/usr
24
 
 
25
 
        touch $@
26
 
 
27
 
build: build-stamp
28
 
build-stamp: configure-stamp
29
 
        dh_testdir
30
 
 
31
 
        $(MAKE)
32
 
 
33
 
        touch $@
34
 
 
35
 
clean:
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        rm -f build-stamp configure-stamp
39
 
 
40
 
        [ ! -f Makefile ] || $(MAKE) clean
41
 
 
42
 
        dh_clean 
43
 
 
44
 
install: build
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_clean -k 
48
 
        dh_installdirs -A usr/include/mlt++ usr/lib
49
 
 
50
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/${version}
51
 
 
52
 
# Doesn't work...
53
 
#       dh_movefiles --sourcedir=debian/${version}
54
 
 
55
 
        mv debian/${version}/usr/include/mlt++/* \
56
 
        debian/libmlt++-dev/usr/include/mlt++
57
 
 
58
 
        mv debian/${version}/usr/lib/libmlt++.so \
59
 
        debian/libmlt++-dev/usr/lib
60
 
 
61
 
# Prune empty directories
62
 
        find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
63
 
 
64
 
# Build architecture-independent files here.
65
 
binary-indep: build install
66
 
# We have nothing to do by default.
67
 
 
68
 
# Build architecture-dependent files here.
69
 
binary-arch: build install
70
 
        dh_testdir
71
 
        dh_testroot
72
 
        dh_installchangelogs 
73
 
        dh_installdocs
74
 
        dh_installman
75
 
        dh_link
76
 
        dh_strip
77
 
        dh_compress
78
 
        dh_fixperms
79
 
        dh_makeshlibs -V 'libmlt++0.2.5 (>= 0.2.5~svn20071228)'
80
 
        dh_installdeb
81
 
        dh_shlibdeps
82
 
        dh_gencontrol
83
 
        dh_md5sums
84
 
        dh_builddeb
85
 
 
86
 
binary: binary-indep binary-arch
87
 
.PHONY: build clean binary-indep binary-arch binary install 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
6
include /usr/share/cdbs/1/rules/utils.mk
 
7
 
 
8
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
 
9