]> git.sesse.net Git - mlt/blob - debian/rules
+ Functional debian build rules
[mlt] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 export prefix=usr
6 export libdir=$(prefix)/lib
7
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
10
11 # This is the debhelper compatibility version to use.
12 export DH_COMPAT=3
13
14 # These are used for cross-compiling and for saving the configure script
15 # from having to guess our platform (since we know it already)
16 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
19
20 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
21         CFLAGS += -g
22 endif
23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
24         INSTALL_PROGRAM += -s
25 endif
26
27 # shared library versions, option 1
28 version=20051130
29 #major=2
30
31 config.status: configure
32         dh_testdir
33         # Add here commands to configure the package.
34         ./configure --prefix=/$(prefix) --libdir=/$(libdir) --disable-debug --enable-gpl --disable-sox --luma-compress --enable-motion-est --disable-jackrack
35
36 build: build-stamp
37 build-stamp:  config.status
38         dh_testdir
39
40         # Add here commands to compile the package.
41         $(MAKE)
42         touch build-stamp
43
44 clean:
45         dh_testdir
46         dh_testroot
47         rm -f build-stamp 
48
49         # Add here commands to clean up after the build process.
50         -$(MAKE) distclean
51
52         dh_clean
53
54 install: build
55         dh_testdir
56         dh_testroot
57         dh_clean -k
58         dh_installdirs
59
60         # Add here commands to install the package into debian/tmp
61         $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
62
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_movefiles -pmlt-dev $(prefix)/bin/mlt-config
73         dh_movefiles -pmlt-dev $(prefix)/include
74         dh_movefiles -pmlt-dev $(libdir)/pkgconfig
75         dh_movefiles -pmlt $(prefix)
76 #       dh_installdebconf       
77 #       dh_installdocs -A README 
78         dh_installexamples
79         dh_installmenu
80 #       dh_installlogrotate
81 #       dh_installemacsen
82 #       dh_installpam
83 #       dh_installmime
84 #       dh_installinit
85         dh_installcron
86         dh_installman
87         dh_installinfo
88 #       dh_undocumented
89         dh_link
90         dh_strip
91         dh_compress
92         dh_fixperms
93         dh_makeshlibs
94         dh_installdeb
95 #       dh_perl
96         dh_shlibdeps -l${PWD}/debian/mlt/$(libdir)
97         dh_gencontrol
98         dh_md5sums
99         dh_builddeb
100
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install