Subversion Repositories libspf2

Compare Revisions

Ignore whitespace Rev 70 → Rev 71

/trunk/debian/rules
12,6 → 12,11
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)
20,7 → 25,7
dh_testdir
# Add here commands to configure the package.
dh_autotools-dev_updateconfig
./configure --enable-perl --prefix=/usr $(buildflags)
./configure --prefix=/usr $(buildflags)
 
build: build-arch
build-indep:
28,7 → 33,10
build-arch-stamp: config.status
dh_testdir
 
$(MAKE)
$(MAKE)
cd perl && perl Makefile.PL INSTALLDIRS=vendor \
OPTIMIZE="$(CPPFLAGS) $(CFLAGS)" LD="$(perlld) $(CFLAGS) $(LDFLAGS)"
$(MAKE) -C perl LD_RUN_PATH=
 
touch "$@"
 
38,6 → 46,7
rm -f build-arch-stamp
 
[ ! -f Makefile ] || $(MAKE) distclean
[ ! -f perl/Makefile ] || $(MAKE) -C perl realclean
 
dh_autotools-dev_restoreconfig
dh_clean
47,7 → 56,8
dh_testroot
dh_prep
 
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp INSTALLDIRS=vendor
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C perl install DESTDIR=$(CURDIR)/debian/tmp
 
binary-arch: install
dh_testdir