2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
6 export libdir=$(prefix)/lib
8 # Uncomment this to turn on verbose mode.
11 # This is the debhelper compatibility version to use.
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)
20 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
27 # shared library versions, option 1
31 config.status: configure
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 --avformat-cvs --avformat-suffix=.mlt
37 build-stamp: config.status
40 # Add here commands to compile the package.
49 # Add here commands to clean up after the build process.
60 # Add here commands to install the package into debian/tmp
61 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
64 # Build architecture-independent files here.
65 binary-indep: build install
66 # We have nothing to do by default.
68 # Build architecture-dependent files here.
69 binary-arch: build install
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)
77 # dh_installdocs -A README
96 dh_shlibdeps -l${PWD}/debian/mlt/$(libdir)
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install