freebsd-ports/www/b2evolution/Makefile
Torsten Zuehlsdorff 139816a064 Add missing IGNORE_WITH_PHP for various PHP based ports.
In preparation of changing the PHP default version from 5.6
to 7.0 i found a number of ports not building with the new version
and all later versions.

Therefore i set IGNORE_WITH_PHP and notice all maintainer about
the change.

Approved by: portmgr (blanket)
2017-12-16 21:44:09 +00:00

59 lines
1.4 KiB
Makefile

# Created by: chinsan <chinsan@mail20000.com.tw>
# $FreeBSD$
PORTNAME= b2evolution
PORTVERSION= 4.0.5
DISTVERSIONSUFFIX= -${B2EVO_DATE}
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= SF/evocms/${PORTNAME}/b2evo%20${PORTVERSION}-stable
MAINTAINER= ports@FreeBSD.org
COMMENT= Multilingual, multiuser, multi-blog engine
IGNORE_WITH_PHP= 70 71 72
USES= cpe dos2unix php:web zip
B2EVO_DATE?= stable-2011-03-23
USE_PHP= mysql pcre session xml
NO_BUILD= YES
TMPDIR?= ${PORTNAME}
WRKSRC= ${WRKDIR}/${TMPDIR}
B2EVO_URL?= b2evo
B2EVO_DIR?= www/${B2EVO_URL}
PLIST= ${WRKDIR}/pkg-plist
WARNING= ${PKGDIR}/pkg-warning
OPTIONS_DEFINE= MYSQL
OPTIONS_DEFAULT= MYSQL
SUB_FILES= pkg-message
SUB_LIST+= B2EVO_DIR=${B2EVO_DIR} B2EVO_URL=${B2EVO_URL}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= server
.endif
pre-everything::
@${SH} ${WARNING}
pre-install:
@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' >> ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dir ${B2EVO_DIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dir ${B2EVO_DIR} >> ${PLIST}
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
@${CHMOD} 665 ${STAGEDIR}${PREFIX}/${B2EVO_DIR}/blogs/conf/_config.php
.include <bsd.port.mk>