r13470 - in /trunk/libcrypt-openssl-bignum-perl/debian: changelog rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Jan 24 20:18:57 UTC 2008
Author: dmn
Date: Thu Jan 24 20:18:57 2008
New Revision: 13470
URL: http://svn.debian.org/wsvn/?sc=1&rev=13470
Log:
* debian/rules: sync with current dh-make-perl templates
Modified:
trunk/libcrypt-openssl-bignum-perl/debian/changelog
trunk/libcrypt-openssl-bignum-perl/debian/rules
Modified: trunk/libcrypt-openssl-bignum-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-bignum-perl/debian/changelog?rev=13470&op=diff
==============================================================================
--- trunk/libcrypt-openssl-bignum-perl/debian/changelog (original)
+++ trunk/libcrypt-openssl-bignum-perl/debian/changelog Thu Jan 24 20:18:57 2008
@@ -7,6 +7,7 @@
- add: Vcs-Svn, Vcs-Browser and Homepage fields
- change Maintainer to Debian Perl Group; Luk Claes moved to Uploaders.
* add debian/watch
+ * debian/rules: sync with current dh-make-perl templates
-- Damyan Ivanov <dmn at debian.org> Thu, 24 Jan 2008 21:56:32 +0200
Modified: trunk/libcrypt-openssl-bignum-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-bignum-perl/debian/rules?rev=13470&op=diff
==============================================================================
--- trunk/libcrypt-openssl-bignum-perl/debian/rules (original)
+++ trunk/libcrypt-openssl-bignum-perl/debian/rules Thu Jan 24 20:18:57 2008
@@ -13,59 +13,63 @@
PERL = /usr/bin/perl
endif
-ifndef DESTDIR
-DESTDIR=..
+TMP =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
-TMP =`pwd`/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
-
+
$(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
$(MAKE) test
-
- touch build-stamp
+
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ dh_clean build-stamp install-stamp
+
+ [ ! -f Makefile ] || $(MAKE) realclean
- -$(MAKE) realclean
-
- dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
-
- $(MAKE) install PREFIX=$(TMP)/usr
+
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+ touch $@
# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch: install
dh_testdir
dh_testroot
dh_installdocs README
- dh_installman
dh_installchangelogs Changes
- dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
+ dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb --destdir=$(DESTDIR)
+ dh_builddeb
# Build architecture-independent files here.
-binary-indep: build install
+binary-indep:
# We have nothing to do by default.
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list