[Pkg-voip-commits] [portaudio19] 53/114: * Switch to debhelper 7 and use dh. * Build agains libjack on all architectures.

Benjamin Drung bdrung at moszumanska.debian.org
Sun Dec 25 20:05:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository portaudio19.

commit a4334dd0f4bc990a07c8e12c47aeb20df63650f5
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sun Feb 21 21:20:39 2010 +0000

    * Switch to debhelper 7 and use dh.
    * Build agains libjack on all architectures.
---
 debian/changelog               |   4 +-
 debian/compat                  |   2 +-
 debian/control                 |  12 ++--
 debian/libportaudio2.dirs      |   1 -
 debian/portaudio19-dev.dirs    |   2 -
 debian/portaudio19-dev.install |   2 +-
 debian/portaudio19-doc.install |   2 +-
 debian/rules                   | 127 ++++-------------------------------------
 8 files changed, 24 insertions(+), 128 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ae1f6e1..dac4ead 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,10 @@ portaudio19 (19+svn20100220-1) UNRELEASED; urgency=low
   * Add myself to Uploaders.
   * Refresh get-orig-source rule.
   * Drop unrequired 01_config.dpatch and dpatch.
+  * Switch to debhelper 7 and use dh.
+  * Build agains libjack on all architectures.
 
- -- Benjamin Drung <bdrung at ubuntu.com>  Sun, 21 Feb 2010 18:30:04 +0100
+ -- Benjamin Drung <bdrung at ubuntu.com>  Sun, 21 Feb 2010 22:12:18 +0100
 
 portaudio19 (19+svn20071022-3) unstable; urgency=low
 
diff --git a/debian/compat b/debian/compat
index b8626c4..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+7
diff --git a/debian/control b/debian/control
index 4e904a4..acd91cb 100644
--- a/debian/control
+++ b/debian/control
@@ -7,9 +7,11 @@ Uploaders: Kilian Krause <kilian at debian.org>,
            Mark Purcell <msp at debian.org>,
            Mikael Magnusson <mikma at users.sourceforge.net>,
            Benjamin Drung <bdrung at ubuntu.com>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev,
- libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], 
- libjack-dev, doxygen, dpkg-dev (>= 1.13.19)
+Build-Depends: debhelper (>= 7.0.50~),
+               doxygen,
+               dpkg-dev (>= 1.13.19),
+               libasound2-dev [linux-any],
+               libjack-dev
 Standards-Version: 3.7.2
 Homepage: http://www.portaudio.com/
 Vcs-Svn: svn://svn.debian.org/pkg-voip/portaudio19/trunk/
@@ -31,7 +33,9 @@ Description: Portable audio I/O - shared library
 Package: portaudio19-dev
 Section: devel
 Architecture: any
-Depends: libportaudio2 (= ${binary:Version}), ${alsa-dev}, ${jack-dev}
+Depends: libasound2-dev [linux-any],
+         libjack-dev,
+         libportaudio2 (= ${binary:Version})
 Conflicts: libportaudio-dev, libportaudio19-dev, libportaudio-19-dev
 Replaces: libportaudio19-dev, libportaudio-19-dev
 Description: Portable audio I/O - development files
diff --git a/debian/libportaudio2.dirs b/debian/libportaudio2.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian/libportaudio2.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/portaudio19-dev.dirs b/debian/portaudio19-dev.dirs
deleted file mode 100644
index 4418816..0000000
--- a/debian/portaudio19-dev.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/lib
-usr/include
diff --git a/debian/portaudio19-dev.install b/debian/portaudio19-dev.install
index bba219c..68a175d 100644
--- a/debian/portaudio19-dev.install
+++ b/debian/portaudio19-dev.install
@@ -2,4 +2,4 @@ usr/include/*
 usr/lib/lib*.a
 usr/lib/lib*.so
 usr/lib/pkgconfig/*
-/usr/lib/*.la
+usr/lib/*.la
diff --git a/debian/portaudio19-doc.install b/debian/portaudio19-doc.install
index c6c5785..22929f4 100644
--- a/debian/portaudio19-doc.install
+++ b/debian/portaudio19-doc.install
@@ -1 +1 @@
-../../doc/html/ /usr/share/doc/portaudio19-doc/doc
+doc/html/ usr/share/doc/portaudio19-doc/doc
diff --git a/debian/rules b/debian/rules
index 92da177..7cd9a01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,9 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
-# 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)
-DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 CFLAGS = -Wall -g -D_REENTRANT
 
@@ -21,35 +12,17 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 else
 	CFLAGS += -O2
 endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
 
-ifeq (linux,$(DEB_HOST_ARCH_OS))
-	CONFIGURE_SOUND_ARGS = --with-oss=yes --with-alsa=yes
-	DH_GENCONTROL_ARGS = -Valsa-dev="libasound2-dev"
-else
-	CONFIGURE_SOUND_ARGS = --with-oss=yes --with-alsa=no
-endif
+%:
+	dh $@
 
-#
-# pa_ringbuffer required for jack support is only guaranteed
-# SMP safe on i386 and powerpc
-#
-ENABLE_JACK = no
-ifeq (i386,$(DEB_HOST_ARCH))
-	ENABLE_JACK = yes
-else
-ifeq (powerpc,$(DEB_HOST_ARCH))
-	ENABLE_JACK = yes
-endif
-endif
+override_dh_auto_configure:
+	CFLAGS="$(CFLAGS)" ./configure --enable-cxx --prefix=/usr \
+		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
 
-ifeq (yes,$(ENABLE_JACK))
-	DH_GENCONTROL_ARGS += -Vjack-dev="libjack0.100.0-dev"
-endif
-
-CONFIGURE_SOUND_ARGS += --with-jack=$(ENABLE_JACK)
+override_dh_auto_build:
+	$(MAKE)
+	doxygen
 
 DEBVERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
@@ -59,83 +32,6 @@ FILENAME := portaudio19_$(UPVERSION).orig.tar.gz
 URL := https://www.portaudio.com/repos/portaudio/trunk
 SRCDIR := portaudio19-$(UPVERSION)
 
-autoreconf:
-	aclocal
-	autoconf
-	libtoolize -c
-	$(RM) -r autom4te.cache
-
-config: patch config.status
-config.status:
-	dh_testdir
-	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-cxx $(CONFIGURE_SOUND_ARGS)
-
-build: config build-stamp
-build-stamp:
-	dh_testdir
-	$(MAKE) lib/libportaudio.la
-	$(MAKE) -C bindings/cpp
-	doxygen
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-	[ ! -f bindings/cpp/doc/Makefile ]||$(MAKE) -C bindings/cpp/doc distclean
-	[ ! -f bindings/cpp/Makefile ]||$(MAKE) -C bindings/cpp distclean
-	[ ! -f Makefile ]||$(MAKE) distclean
-	$(RM) -r lib/.libs
-	$(RM) doc/html/*
-	$(MAKE) -f $(CURDIR)/debian/rules unpatch
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-	
-	install -d $(CURDIR)/debian/tmp/usr/lib
-	install -d $(CURDIR)/debian/tmp/usr/include
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir -i
-	dh_testroot -i
-	dh_installchangelogs -i
-	dh_installdocs -i
-	dh_installexamples -i
-	dh_install -i --sourcedir=debian/tmp
-	dh_compress -i --exclude=usr/share/doc/portaudio19-doc/docs
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir -a
-	dh_testroot -a
-	dh_installchangelogs -a
-	dh_installdocs -a
-	dh_install -a --sourcedir=debian/tmp --list-missing
-	dh_strip -a
-	dh_compress -a --exclude=usr/share/doc/portaudio19-doc/docs
-	dh_fixperms -a
-	dh_makeshlibs -a
-	dh_installdeb -a
-	dh_shlibdeps -a
-	dh_gencontrol -a -- $(DH_GENCONTROL_ARGS)
-	dh_md5sums -a
-	dh_builddeb -a
-
-print-version:
-	@@echo "Debian version:          $(DEBVERSION)"
-	@@echo "Upstream version:        $(UPVERSION)"
-
 get-orig-source:
 	@dh_testdir
 	@mkdir -p ../tarballs
@@ -145,6 +41,3 @@ get-orig-source:
 	@GZIP=-9 tar -caf ../tarballs/$(FILENAME) -C ../tarballs $(SRCDIR)
 	@echo Cleaning up
 	@rm -rf ../tarballs/$(SRCDIR)
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install patch unpatch config autoreconf print-version get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/portaudio19.git



More information about the Pkg-voip-commits mailing list