[SCM] portmidi/master: Switch to debhelper 9.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Thu Oct 16 14:14:13 UTC 2014
The following commit has been merged in the master branch:
commit 1610406128964ddfdd2ef6d93e6220b5cd13ec0b
Author: Alessio Treglia <alessio at debian.org>
Date: Thu Oct 16 11:41:13 2014 +0100
Switch to debhelper 9.
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index 3761d08..7a34e08 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders:
Paul Brossier <piem at debian.org>,
Alessio Treglia <alessio at debian.org>
Build-Depends:
- debhelper (>= 5.0.0),
+ debhelper (>= 9~),
libasound2-dev
Standards-Version: 3.8.3
Homepage: http://portmedia.sourceforge.net/
diff --git a/debian/rules b/debian/rules
index 5ffb3ab..51e6131 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,70 +1,37 @@
#!/usr/bin/make -f
-CFLAGS = -Wall -g -fPIC
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
+export CFLAGS += -Wall -g -fPIC
version=`ls pm_linux/lib*.so.* | \
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
major=`ls pm_linux/lib*.so.* | \
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # nothing to do by default
- touch configure-stamp
+%:
+ dh $@ --parallel -Smakefile -Dpm_linux
-build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
- CFLAGS='$(CFLAGS)' $(MAKE) -f pm_linux/Makefile
- touch build-stamp
+override_dh_auto_build:
+ $(MAKE) -f pm_linux/Makefile
-clean: clean1st
-clean1st:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
+override_dh_auto_clean:
+ dh_auto_clean
[ ! -f pm_linux/Makefile ] || $(MAKE) -f pm_linux/Makefile cleanest
- dh_clean
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- # do not ship executables c files
- chmod a-x $(CURDIR)/pm_test/*.c $(CURDIR)/pm_common/*.h
- $(MAKE) -f pm_linux/Makefile install DESTDIR=$(CURDIR)/debian/tmp
- dh_install --sourcedir=$(CURDIR)/debian/tmp
+override_dh_auto_install:
+ $(MAKE) -f pm_linux/Makefile install DESTDIR=debian/tmp
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
+override_dh_install:
+ dh_install -plibportmidi-dev
+ chmod a-x \
+ debian/libportmidi-dev/usr/include/*.h
+ dh_install --remaining-packages
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs CHANGELOG.txt
- dh_installdocs
- dh_installexamples
- dh_installman
- dh_link
- dh_strip
- dh_compress -X.c -X.h
- dh_fixperms
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+override_dh_installexamples:
+ dh_installexamples -plibportmidi-dev
+ chmod a-x \
+ debian/libportmidi-dev/usr/share/doc/libportmidi-dev/examples/*.c
+ dh_installexamples --remaining-packages
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_compress:
+ dh_compress -plibportmidi-dev -X.c -X.h
+ dh_compress --remaining-packages
--
portmidi packaging
More information about the pkg-multimedia-commits
mailing list