Reduce over inclusion of bsd.port.mk
Use options helpers
This commit is contained in:
parent
f908b0af64
commit
adc521b29a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339874
1 changed files with 4 additions and 15 deletions
|
@ -29,21 +29,10 @@ USE_MYSQL= yes
|
|||
USE_PHP= ctype dom gd iconv json mcrypt mysql pdo_mysql simplexml spl xml zip
|
||||
WANT_PHP_WEB= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
APC_USE= php=apc
|
||||
LDAP_USE= php=ldap
|
||||
MEMCACHE_USE= php=memcache
|
||||
|
||||
.if ${PORT_OPTIONS:MAPC}
|
||||
USE_PHP+= apc
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MLDAP}
|
||||
USE_PHP+= ldap
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MMEMCACHE}
|
||||
USE_PHP+= memcache
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}/${PORTNAME}
|
||||
|
@ -56,4 +45,4 @@ do-install:
|
|||
post-install:
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue