[Pkg-voip-commits] r8779 - /portaudio19/trunk/debian/rules
bdrung at alioth.debian.org
bdrung at alioth.debian.org
Sun Feb 20 17:51:32 UTC 2011
Author: bdrung
Date: Sun Feb 20 17:51:29 2011
New Revision: 8779
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8779
Log:
Simplify debian/rules.
Modified:
portaudio19/trunk/debian/rules
Modified: portaudio19/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/portaudio19/trunk/debian/rules?rev=8779&op=diff
==============================================================================
--- portaudio19/trunk/debian/rules (original)
+++ portaudio19/trunk/debian/rules Sun Feb 20 17:51:29 2011
@@ -1,32 +1,18 @@
#!/usr/bin/make -f
-# 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)
-
-CFLAGS = -Wall -g -D_REENTRANT
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
%:
- dh $@
+ dh $@ --parallel
override_dh_auto_clean:
- [ ! -f Makefile ] || $(MAKE) distclean
+ dh_auto_clean
[ ! -f bindings/cpp/Makefile ] || $(MAKE) distclean -C bindings/cpp
- rm -f bindings/cpp/doc/Makefile bindings/cpp/libtool doc/html/*
+ rm -f bindings/cpp/doc/Makefile doc/html/*
override_dh_auto_configure:
- CFLAGS="$(CFLAGS)" ./configure --enable-cxx --prefix=/usr \
- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+ dh_auto_configure -- --enable-cxx
override_dh_auto_build:
- $(MAKE)
+ dh_auto_build
doxygen
DEBVERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
More information about the Pkg-voip-commits
mailing list