1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
- Use OPTION helpers
This commit is contained in:
Bryan Drewery 2014-04-10 02:29:59 +00:00
parent 973b5b8e09
commit c395e1b255
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350758

View File

@ -20,6 +20,7 @@ GH_COMMIT= 42067ac
OPTIONS_DEFINE= DOCCOMM
DOCCOMM_DESC= Retain doc-comments in internal php structures
DOCCOMM_CONFIGURE_WITH= eaccelerator-doc-comment-inclusion
USE_PHP= yes
USE_PHPIZE= yes
@ -33,27 +34,21 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCCOMM}
CONFIGURE_ARGS+=--with-eaccelerator-doc-comment-inclusion
.endif
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/control.php ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dasm.php ${EXAMPLESDIR}
@${CAT} ${PKGMESSAGE}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/control.php ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dasm.php ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>