summaryrefslogtreecommitdiff
path: root/www/ap-perl/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2000-08-27 10:37:00 +0000
committerjlam <jlam>2000-08-27 10:37:00 +0000
commit4a00c430ab0149d115fa091c087cead33f0bc4c1 (patch)
tree2f68a284f4e804aa3774ec66587daa928a61d931 /www/ap-perl/Makefile
parent7e77f9c91be5964b7ca690ec83717ce4f1570a21 (diff)
downloadpkgsrc-4a00c430ab0149d115fa091c087cead33f0bc4c1.tar.gz
Convert packages to use PERL5_PACKLIST (part 2). These are the database and
Apache perl modules, and each compiled and installed/de-installed apparently correctly. As a side effect of the dynamic PLIST, we no longer need to to have separate -static and -shared PLISTs. It's now easier than ever to make a perl5 package for NetBSD :)
Diffstat (limited to 'www/ap-perl/Makefile')
-rw-r--r--www/ap-perl/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/www/ap-perl/Makefile b/www/ap-perl/Makefile
index 912d8a80ee5..8f18e63a1ab 100644
--- a/www/ap-perl/Makefile
+++ b/www/ap-perl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1999/12/02 21:03:35 rh Exp $
+# $NetBSD: Makefile,v 1.8 2000/08/27 10:37:04 jlam Exp $
#
DISTNAME= mod_perl-1.19
@@ -12,16 +12,23 @@ HOMEPAGE= http://perl.apache.org/
DEPENDS+= libperl-5.*:../../lang/libperl
DEPENDS+= apache-1.3.*:../../www/apache
-USE_PERL5= yes
+USE_PERL5= # defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/mod_perl/.packlist
-MAKE_ENV= DYNALOADER_OBJ_PIC="${PREFIX}/lib/perl5/${MACHINE_ARCH}-${LOWER_OPSYS}/5.00404/DynaLoader_pic.o"
+MAKE_PARAMS+= USE_APXS=1
+MAKE_PARAMS+= WITH_APXS=${PREFIX}/sbin/apxs
+MAKE_PARAMS+= EVERYTHING=1
do-configure:
- @cd ${WRKSRC} && ${PREFIX}/bin/perl Makefile.PL USE_APXS=1 \
- WITH_APXS=${PREFIX}/sbin/apxs EVERYTHING=1
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+ ${PERL5} Makefile.PL ${MAKE_PARAMS}
post-install:
${INSTALL_DATA} ${WRKSRC}/htdocs/manual/mod/mod_perl.html \
${PREFIX}/share/httpd/htdocs/manual/mod/
.include "../../mk/bsd.pkg.mk"
+
+.if exists(${PERL5_ARCHLIB}/DynaLoader_pic.o)
+MAKE_ENV+= DYNALOADER_OBJ_PIC="${PERL5_ARCHLIB}/DynaLoader_pic.o"
+.endif