summaryrefslogtreecommitdiff
path: root/www/ap-perl/Makefile
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-12-04 00:10:57 +0000
committertv <tv@pkgsrc.org>1998-12-04 00:10:57 +0000
commit541cd72ab7e8468e7ac3ddaa672f8a1d78287e2d (patch)
tree4f7046d129cd0d4209cccaf1ae803f2160a7767a /www/ap-perl/Makefile
parent760e827f780d43a131bdf094a6a3f6c94c827bf1 (diff)
downloadpkgsrc-541cd72ab7e8468e7ac3ddaa672f8a1d78287e2d.tar.gz
Add ap-perl-1.16, the pkgification of mod_perl as a dynamic shared object.
Supports CGI running via a no-overhead Perl interpreter embedded into httpd, httpd.conf configuration in Perl, and even embedding Perl into XSSI documents via <!--#perl sub=""--> (without modifying mod_include).
Diffstat (limited to 'www/ap-perl/Makefile')
-rw-r--r--www/ap-perl/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/www/ap-perl/Makefile b/www/ap-perl/Makefile
new file mode 100644
index 00000000000..33111e687d1
--- /dev/null
+++ b/www/ap-perl/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/12/04 00:10:57 tv Exp $
+#
+
+DISTNAME= mod_perl-1.16
+PKGNAME= ap-perl-1.16
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Apache
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://perl.apache.org/
+
+DEPENDS= libperl-5.00404:../../lang/libperl \
+ apache-1.3.3.1:../../www/apache
+
+post-extract:
+ @${LN} -sf ../../../Apache/typemap ${WRKSRC}/src/modules/perl/
+ @${LN} -sf ${PREFIX}/include/httpd ${WRKSRC}/include
+ @for module in Connection File Log ModuleConfig PerlRunXS Tie URI \
+ Util Server; do \
+ ${LN} -sf ../src/modules/perl/$$module.xs ${WRKSRC}/$$module/; \
+ done
+
+do-configure:
+ @${RM} -f ${WRKSRC}/lib/Apache/src.pm.orig
+ @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} NO_HTTPD=1 \
+ APACHE_PREFIX=${PREFIX} ${PREFIX}/bin/perl Makefile.PL
+
+post-build:
+ @cd ${WRKSRC}/src/modules/perl && \
+ ${MAKE} PERL=${PREFIX}/bin/perl STATIC_EXTS="Apache Apache::Constants" \
+ Apache.c Constants.c perlxsi.c && \
+ PERLLIBDIR=`${PREFIX}/bin/perl -MConfig -e 'print $$Config{archlibexp}'` && \
+ ${PREFIX}/sbin/apxs -c -o mod_perl.so -I$$PERLLIBDIR/CORE -DMOD_PERL \
+ Apache.c Constants.c [mop]*.c $$PERLLIBDIR/DynaLoader_pic.o
+
+post-install:
+ @cd ${WRKSRC}/src/modules/perl && ${PREFIX}/sbin/apxs -i mod_perl.so
+ ${INSTALL_DATA} ${WRKSRC}/htdocs/manual/mod/mod_perl.html \
+ ${PREFIX}/share/httpd/htdocs/manual/mod/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_perl
+ ${INSTALL_DATA} ${FILESDIR}/httpd.conf.add ${PREFIX}/share/doc/mod_perl/
+
+.include "../../mk/bsd.pkg.mk"