mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
139816a064
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)
62 lines
1.9 KiB
Makefile
62 lines
1.9 KiB
Makefile
# Created by: chinsan@mail2000.com.tw
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bBlog
|
|
PORTVERSION= 0.7.6
|
|
PORTREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTNAME}%20${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Elegant personal publishing system with Smarty
|
|
|
|
IGNORE_WITH_PHP= 70 71 72
|
|
|
|
USES= php:web
|
|
USE_PHP= mysql pcre session
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:tl}
|
|
WWWDOCROOT?= www
|
|
BBLOGURL?= ${PORTNAME:tl}
|
|
BBLOGDIR?= ${WWWDOCROOT}/${BBLOGURL}
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= BBLOGURL=${BBLOGURL} BBLOGDIR=${BBLOGDIR}
|
|
PLIST_SUB= WWWDOCROOT=${WWWDOCROOT} BBLOGURL=${BBLOGURL} \
|
|
WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
|
|
|
OPTIONS_DEFINE= GD IMAGICK
|
|
OPTIONS_DEFAULT=GD
|
|
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGD}
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${gd_DEPENDS}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIMAGICK}
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${imagick_DEPENDS}
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MGD) && empty(PORT_OPTIONS:MIMAGICK)
|
|
pre-patch:
|
|
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}
|
|
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/${BBLOGDIR}
|
|
.for f in archives.php documentation.txt htaccess-cleanurls index.php item rss.php search.php section
|
|
${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${BBLOGDIR}
|
|
.endfor
|
|
@${CP} -Rv ${WRKSRC}/* ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}
|
|
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/compiled_templates/
|
|
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/
|
|
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/favorites.xml
|
|
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php
|
|
@${MV} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php.sample
|
|
|
|
.include <bsd.port.mk>
|