3b2f4ab90a
it has some checks to display a warning rather than fail, but this isn't done consistently, so it's easier to just add the dep). - fix @exec-update in the case where mod_perl was installed but not enabled from Mikolaj Kucharski, thanks!
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.35 2011/05/10 08:03:49 sthen Exp $
|
|
|
|
COMMENT= module that embeds a Perl interpreter into Apache
|
|
|
|
DISTNAME= mod_perl-1.31
|
|
PKGNAME= ${DISTNAME}
|
|
REVISION= 3
|
|
CATEGORIES= www perl5
|
|
MASTER_SITES= http://perl.apache.org/dist/ \
|
|
${MASTER_SITE_PERL_CPAN:=Apache/}
|
|
|
|
HOMEPAGE= http://perl.apache.org/
|
|
|
|
MODULES= apache-module
|
|
|
|
MODAPACHE_NAME= perl
|
|
MODAPACHE_LOCATION= ${WRKBUILD}/apaci
|
|
MODAPACHE_FILE= ${MODAPACHE_LOCATION}/libperl.so
|
|
|
|
# Apache
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c m perl util
|
|
|
|
RUN_DEPENDS= devel/p5-Devel-Symdump \
|
|
www/p5-libwww \
|
|
www/p5-HTML-Parser
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
SUBST_VARS= PKGNAME
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
CONFIGURE_STYLE= perl
|
|
CONFIGURE_ARGS= USE_APXS="1" EVERYTHING="1" WITH_APXS="/usr/sbin/apxs"
|
|
USE_GROFF = Yes
|
|
|
|
INSTALL_TARGET= pure_install doc_install
|
|
|
|
post-build:
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_perl
|
|
${INSTALL_DATA} ${WRKSRC}/htdocs/manual/mod/* \
|
|
${PREFIX}/share/doc/mod_perl
|
|
${MODAPACHE_INSTALL}
|
|
|
|
.include <bsd.port.mk>
|