blob: 7d2fb0fd75edee293d7f1ed3adfebe10f7e3a272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.2 1998/12/04 17:25:13 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.2:../../www/apache
USE_PERL5= yes
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 \
-DPERL_TRACE 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
.if exists(/usr/libexec/ld.elf_so)
${SED} -e 's,@@MACHINE_ARCH@@,${MACHINE_ARCH},' \
-e 's,@@PERL_EXT@@,,' ${FILESDIR}/httpd.conf.add >${WRKSRC}/httpd.conf.add
.else
${SED} -e 's,@@MACHINE_ARCH@@,${MACHINE_ARCH},' \
-e 's,@@PERL_EXT@@,.4.4,' ${FILESDIR}/httpd.conf.add >${WRKSRC}/httpd.conf.add
.endif
${INSTALL_DATA} ${WRKSRC}/httpd.conf.add ${PREFIX}/etc/httpd/httpd.conf.modperl
.include "../../mk/bsd.pkg.mk"
|