use dh-autoreconf and simple debhelper rules file
Daniel Glassey
8 years ago
0 | 0 |
Source: teckit
|
1 | |
Build-Depends: autotools-dev,
|
2 | |
cdbs (>= 0.4.27-1),
|
|
1 |
Build-Depends: dh-autoreconf,
|
3 | 2 |
debhelper (>= 9~),
|
4 | 3 |
pkg-config,
|
5 | 4 |
zlib1g-dev,
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | |
#DEB_AUTO_UPDATE_DEBIAN_CONTROL:=yes
|
3 | |
|
4 | |
DEB_TAR_SRCDIR := teckit-2.5.4
|
5 | |
|
6 | |
include /usr/share/cdbs/1/rules/tarball.mk
|
7 | |
|
8 | |
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
9 | |
|
10 | |
common-configure-arch common-configure-indep::
|
11 | |
@PERLVER=$$(dpkg-query -W -f '$${Version}' perl); \
|
12 | |
echo "Perl version is $$PERLVER"; \
|
13 | |
if dpkg --compare-versions $$PERLVER lt 5.20; then \
|
14 | |
echo "Using an old (non-multiarch) perl"; \
|
15 | |
cp debian/libteckit-perl.install.oldperl \
|
16 | |
debian/libteckit-perl.install; \
|
17 | |
fi
|
18 | |
|
19 | |
include /usr/share/cdbs/1/rules/debhelper.mk
|
20 | |
include /usr/share/cdbs/1/class/autotools.mk
|
21 | |
|
22 | |
DEB_DH_SHLIBDEPS_ARGS_teckit := -lteckit
|
23 | |
|
24 | |
build/libteckit-perl ::
|
25 | |
cd $(DEB_SRCDIR)/source/Perl ; perl Makefile.PL INSTALLDIRS=vendor
|
26 | |
cd $(DEB_SRCDIR)/source/Perl ; $(MAKE) OPTIMIZE="-O2 -g -Wall"
|
27 | |
|
28 | |
install/libteckit-perl ::
|
29 | |
cd $(DEB_SRCDIR)/source/Perl ; $(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr
|
30 | |
|
|
2 |
%:
|
|
3 |
dh $@ --with autoreconf
|