From f509434f4d87337243865d928e4fb2c6124c9cd3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Nov 2007 04:10:33 +0000 Subject: Add Debian packaging stuff. Rename pkg-config file libslv2 -> slv2 (conventional). git-svn-id: http://svn.drobilla.net/lad/slv2@916 a436a847-0d15-0410-975c-d299462d15a1 --- Makefile.am | 2 +- README | 4 ++ configure.ac | 2 +- debian/README | 1 + debian/changelog | 5 +++ debian/compat | 1 + debian/control | 21 ++++++++++ debian/copyright | 34 ++++++++++++++++ debian/dirs | 2 + debian/docs | 1 + debian/rules | 106 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/shlibs.local | 1 + debian/slv2-dev.dirs | 2 + debian/slv2-dev.install | 6 +++ debian/slv21.dirs | 1 + debian/slv21.install | 1 + libslv2.pc.in | 10 ----- slv2.pc.in | 10 +++++ src/Makefile.am | 2 +- utils/Makefile.am | 3 +- 20 files changed, 201 insertions(+), 14 deletions(-) create mode 120000 debian/README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/shlibs.local create mode 100644 debian/slv2-dev.dirs create mode 100644 debian/slv2-dev.install create mode 100644 debian/slv21.dirs create mode 100644 debian/slv21.install delete mode 100644 libslv2.pc.in create mode 100644 slv2.pc.in diff --git a/Makefile.am b/Makefile.am index 75b5a85..19bf728 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,7 @@ SUBDIRS = src slv2 utils hosts data $(DOC_DIR) swig DIST_SUBDIRS = src slv2 utils hosts data doc swig pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libslv2.pc +pkgconfig_DATA = slv2.pc dist-hook: dist-check-doxygen diff --git a/README b/README index ba95341..db9c01d 100644 --- a/README +++ b/README @@ -1,5 +1,9 @@ +SLV2 +---- + SLV2 is a library for LV2 hosts intended to make using LV2 Plugins as simple as possible (without sacrificing capabilities). More information about LV2 plugins can be found at . + -- Dave Robillard diff --git a/configure.ac b/configure.ac index 37a968c..27a6317 100644 --- a/configure.ac +++ b/configure.ac @@ -131,7 +131,7 @@ AC_CONFIG_FILES([hosts/Makefile]) AC_CONFIG_FILES([swig/Makefile]) AC_CONFIG_FILES([data/Makefile]) AC_CONFIG_FILES([data/lv2core.lv2/Makefile]) -AC_CONFIG_FILES([libslv2.pc]) +AC_CONFIG_FILES([slv2.pc]) AC_CONFIG_FILES([doc/Makefile]) AC_CONFIG_FILES([doc/reference.doxygen]) diff --git a/debian/README b/debian/README new file mode 120000 index 0000000..59a23c4 --- /dev/null +++ b/debian/README @@ -0,0 +1 @@ +../README \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1686531 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +slv2 (0.3.0) unstable; urgency=low + + * Initial Debian Release. + + -- Dave Robillard Wed, 14 Nov 2007 22:29:49 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bcdec15 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: slv2 +Priority: extra +Maintainer: Dave Robillard +Build-Depends: debhelper (>= 5), autotools-dev +Standards-Version: 3.7.2 +Section: libs + +Package: slv2-dev +Section: libdevel +Architecture: any +Depends: slv2 (= ${binary:Version}) +Description: Development files (headers) for SLV2 + Files required for compiling programs which use SLV2. + +Package: slv2 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A library for simple use of LV2 plugins + SLV2 is a library geared towards music and audio applications which makes + the use of LV2 plugins as simple as possible. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..97ef279 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Dave Robillard on +Wed, 14 Nov 2007 22:29:49 -0500. + +It was downloaded from + +Upstream Author: + + Dave Robillard + +Copyright: + + Copyright (C) 2007 Dave Robillard + +License: + + 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; either version 2 of the License, or + (at your option) any later version. + + 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Dave Robillard and +is licensed under the GPL, see above. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f491e73 --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# 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) + + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# 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_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/shlibs.local b/debian/shlibs.local new file mode 100644 index 0000000..900307e --- /dev/null +++ b/debian/shlibs.local @@ -0,0 +1 @@ +libslv2 0.3.0 slv2 (>> 0.3.0-0), slv2 (<< 0.3.0-99) diff --git a/debian/slv2-dev.dirs b/debian/slv2-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/slv2-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/slv2-dev.install b/debian/slv2-dev.install new file mode 100644 index 0000000..3c996c8 --- /dev/null +++ b/debian/slv2-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la +usr/share/pkgconfig/* diff --git a/debian/slv21.dirs b/debian/slv21.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/slv21.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/slv21.install b/debian/slv21.install new file mode 100644 index 0000000..d0dbfd1 --- /dev/null +++ b/debian/slv21.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/libslv2.pc.in b/libslv2.pc.in deleted file mode 100644 index 5d30a70..0000000 --- a/libslv2.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: libslv2 -Version: @SLV2_VERSION@ -Description: Convenience library for hosts to simplify LV2 plugin support -Libs: @REDLAND_LIBS@ -L${libdir} -lslv2 -Cflags: @REDLAND_CFLAGS@ -I${includedir} diff --git a/slv2.pc.in b/slv2.pc.in new file mode 100644 index 0000000..5d30a70 --- /dev/null +++ b/slv2.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libslv2 +Version: @SLV2_VERSION@ +Description: Convenience library for hosts to simplify LV2 plugin support +Libs: @REDLAND_LIBS@ -L${libdir} -lslv2 +Cflags: @REDLAND_CFLAGS@ -I${includedir} diff --git a/src/Makefile.am b/src/Makefile.am index 12418e2..12fd132 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ AM_CFLAGS = -std=c99 @SLV2_CFLAGS@ @REDLAND_CFLAGS@ -DLIBSLV2_SOURCE lib_LTLIBRARIES = libslv2.la -libslv2_la_LIBADD = @REDLAND_LIBS@ +libslv2_la_LIBADD = @REDLAND_LIBS@ -ldl libslv2_la_LDFLAGS = -version-info @SLV2_SO_VERSION@ libslv2_la_SOURCES = \ diff --git a/utils/Makefile.am b/utils/Makefile.am index 878927d..d263e25 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -2,7 +2,8 @@ EXTRA_DIST = ladspa.h AM_CFLAGS = -std=c99 -I$(top_srcdir) @REDLAND_CFLAGS@ @SLV2_CFLAGS@ -bin_PROGRAMS = lv2_list lv2_inspect ladspa2lv2 +bin_PROGRAMS = lv2_list lv2_inspect +noinst_PROGRAMS = ladspa2lv2 lv2_list_SOURCES = lv2_list.c lv2_list_LDADD = ../src/libslv2.la -- cgit v1.2.1