3
# Made with the aid of dh_make, by Craig Small
5
# Uncomment this to turn on verbose mode.
8
# If set to a true value then MakeMaker's prompt function will
9
# always return the default without waiting for user input.
10
export PERL_MM_USE_DEFAULT=1
12
PACKAGE=$(shell dh_listpackages)
21
TMP = `pwd`/debian/tmp
23
INSTDIR = $(shell perl -V:archlib | cut -d\' -f2 )
26
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
32
CFLAGS="-g -O2" $(PERL) Makefile.PL INSTALLDIRS=vendor --with-apache2-apxs=/usr/bin/apxs2 --prefix=/usr
33
$(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
42
binary: binary-arch binary-indep
52
# Yes, it actually appears both PREFIX and prefix are needed.
54
$(MAKE) install INSTALLDIRS=vendor DESTDIR=$(TMP) PREFIX=/usr prefix=/usr
56
# These conflict with libapache-request-perl, unfortunately.
57
$(RM) $(TMP)/usr/share/man/man3/Apache::Cookie.3pm
58
$(RM) $(TMP)/usr/share/man/man3/Apache::Request.3pm
60
dh_install --sourcedir=debian/tmp
62
install -m 0644 debian/apreq.load debian/libapache2-mod-apreq2/etc/apache2/mods-available/
65
install -m 0644 docs/html/* debian/libapreq2-doc/usr/share/doc/libapache2-request-perl/html/
66
dh_installchangelogs CHANGES
72
dh_perl $(INSTDIR)/Apache
74
dh_shlibdeps -L libapreq2 -l debian/libapreq2/usr/lib
77
dh_builddeb --destdir=$(DESTDIR)
79
.PHONY: build clean binary binary-arch binary-indep