12,11 → 12,6 |
buildflags := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) |
endif |
|
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) |
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
perlld := $(shell perl -MConfig -e 'print $$Config{ld}') |
|
DEB_LDFLAGS_MAINT_APPEND = -Wl,--version-script=$(CURDIR)/debian/libspf2.ver |
buildflags += $(shell DEB_LDFLAGS_MAINT_APPEND="$(DEB_LDFLAGS_MAINT_APPEND)" \ |
dpkg-buildflags --export=configure) |
25,7 → 20,7 |
dh_testdir |
# Add here commands to configure the package. |
dh_autotools-dev_updateconfig |
./configure --prefix=/usr $(buildflags) |
./configure --enable-perl --prefix=/usr $(buildflags) |
|
build: build-arch |
build-indep: |
33,10 → 28,7 |
build-arch-stamp: config.status |
dh_testdir |
|
$(MAKE) |
cd perl && perl Makefile.PL INSTALLDIRS=vendor \ |
OPTIMIZE="$(CPPFLAGS) $(CFLAGS)" LD="$(perlld) $(CFLAGS) $(LDFLAGS)" |
$(MAKE) -C perl LD_RUN_PATH= |
$(MAKE) |
|
touch "$@" |
|
46,7 → 38,6 |
rm -f build-arch-stamp |
|
[ ! -f Makefile ] || $(MAKE) distclean |
[ ! -f perl/Makefile ] || $(MAKE) -C perl realclean |
|
dh_autotools-dev_restoreconfig |
dh_clean |
56,8 → 47,7 |
dh_testroot |
dh_prep |
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
$(MAKE) -C perl install DESTDIR=$(CURDIR)/debian/tmp |
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp INSTALLDIRS=vendor |
|
binary-arch: install |
dh_testdir |