mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
4fb1cfb1cd
- svn move Templates/Licenses/AL2 Templates/Licenses/APACHE20 - add APACHE10 and APACHE11 to Mk/bsd.licenses.db.mk - add entry in UPDATING - bulk change all ports AL2 => APACHE20 - math/openfst/pkg-plist: remove share/licenses/openfst-1.3.4 PR: ports/184785 Submitted by: ohauer Reviewed by: tabthorpe Approved by: portmgr (tabthorpe@)
63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
# Created by: Olli Hauer <ohauer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_myvhost
|
|
PORTVERSION= 0.21
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://mod-myvhost.googlecode.com/files/
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= apache@FreeBSD.org
|
|
COMMENT= Apache module for dynamically configured mass virtual hosting with php
|
|
|
|
LICENSE= APACHE20
|
|
|
|
MANUAL_PACKAGE_BUILD= needs apr and apache with DBD options enabled
|
|
|
|
|
|
USE_APACHE= 22+
|
|
UNIQUENAME= ${PORTNAME}
|
|
|
|
PORTDOCS= changelog.html documentation.html download.html \
|
|
index.html my.css
|
|
PORTEXAMPLES= vhosts.sql httpd.conf.add
|
|
|
|
OPTIONS_DEFINE= PHP_MODULE DEBUG_MODULE PHP DEBUG
|
|
OPTIONS_DEFAULT= PHP_MODULE
|
|
|
|
PHP_MODULE_DESC= Enable PHP
|
|
DEBUG_MODULE_DESC= Enable debugging
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG_MODULE}
|
|
MAKE_ENV+= WITH_DEBUG=true
|
|
STRIP= # keep debug information
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPHP_MODULE}
|
|
MAKE_ENV+= WITH_PHP=true
|
|
USE_PHP= yes
|
|
USE_PHP_MOD= yes
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e "s|= apxs|= ${APXS}|" \
|
|
-e "s|= rm|= ${RM}|" -e "s|= ln|= ${LN}|" \
|
|
-e "s|= cp|= ${CP}|" ${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|