]> git.sesse.net Git - mlt/blob - mlt++/debian/rules
swig/configure, swig/php/*: add php bindings
[mlt] / 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
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)/include
73         dh_movefiles -pmlt++ $(prefix)
74 #       dh_installdebconf       
75 #       dh_installdocs -A README 
76         dh_installexamples
77         dh_installmenu
78 #       dh_installlogrotate
79 #       dh_installemacsen
80 #       dh_installpam
81 #       dh_installmime
82 #       dh_installinit
83         dh_installcron
84         dh_installman
85         dh_installinfo
86 #       dh_undocumented
87         dh_link
88         dh_strip
89         dh_compress
90         dh_fixperms
91         dh_makeshlibs
92         dh_installdeb
93 #       dh_perl
94         dh_shlibdeps -l${PWD}/debian/mlt++/$(libdir)
95         dh_gencontrol
96         dh_md5sums
97         dh_builddeb
98
99 binary: binary-indep binary-arch
100 .PHONY: build clean binary-indep binary-arch binary install