From: lilo_booter Date: Mon, 5 Dec 2005 12:06:24 +0000 (+0000) Subject: + Functional debian build rules X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=623bde99251a95b67f47287d93dc66f621180a18;p=melted + Functional debian build rules git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@877 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/mlt++/debian/changelog b/mlt++/debian/changelog new file mode 100644 index 0000000..23dd3f5 --- /dev/null +++ b/mlt++/debian/changelog @@ -0,0 +1,6 @@ +mlt++ (0.2.1-1) unstable; urgency=low + + * Initial release + + -- charlie Fri, 2 Dec 2005 06:25:07 +0100 + diff --git a/mlt++/debian/control b/mlt++/debian/control new file mode 100644 index 0000000..cd01fcd --- /dev/null +++ b/mlt++/debian/control @@ -0,0 +1,21 @@ +Source: mlt++ +Section: devel +Priority: optional +Maintainer: Charles Yates +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.6.1 + +Package: mlt++-dev +Section: devel +Architecture: any +Depends: mlt++ (= ${Source-Version}) +Description: Development library and headers for mlt++ + mlt++ is a c++ wrapper for the mlt toolkit. + +Package: mlt++ +Section: multimedia +Architecture: any +Depends: ${shlibs:Depends} +Description: mlt++ runtime + mlt++ is a c++ wrapper for the mlt toolkit. + diff --git a/mlt++/debian/copyright b/mlt++/debian/copyright new file mode 100644 index 0000000..ba21db6 --- /dev/null +++ b/mlt++/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Charles Yates on +Thu, 2 Dec 2005 + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + diff --git a/mlt++/debian/rules b/mlt++/debian/rules new file mode 100755 index 0000000..1cd2596 --- /dev/null +++ b/mlt++/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +export prefix=usr +export libdir=$(prefix)/lib + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=20051130 +#major=2 + +config.status: configure + dh_testdir + # Add here commands to configure the package. + ./configure --prefix=/$(prefix) --libdir=/$(libdir) --disable-debug + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_movefiles -pmlt++-dev $(prefix)/include + dh_movefiles -pmlt++ $(prefix) +# dh_installdebconf +# dh_installdocs -A README + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps -l${PWD}/debian/mlt++/$(libdir) + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install