1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/piwigo/Makefile
Torsten Zuehlsdorff 85a5456803 www/piwigo: Update from 2.9.0 to 2.9.1
Changelog: http://piwigo.org/releases/2.9.1

This update contains one security fix:
- [security] identification should redirect within Piwigo only

PR:           220600
Submitted by: Ralf van der Enden (maintainer)
MFH:          2017Q3
2017-07-10 13:14:42 +00:00

68 lines
1.7 KiB
Makefile

# Created by: Goran Lowkrantz <glz@hidden-powers.com>
# $FreeBSD$
PORTNAME= piwigo
PORTVERSION= 2.9.1
CATEGORIES= www
MASTER_SITES= http://piwigo.org/download/dlcounter.php?code=${PORTVERSION}&/
MAINTAINER= tremere@cainites.net
COMMENT= PHP based Web Gallery
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING
NO_BUILD= yes
NO_ARCH= yes
USE_PHP= calendar ctype dom exif filter gd gettext hash iconv json \
mbstring mcrypt mysqli openssl pcre pdf pdo posix \
session simplexml sockets spl tokenizer xml xmlreader \
xmlwriter zlib
USES= cpe php:web zip
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-deinstall pkg-message
SUB_LIST+= CP="${CP}" \
MKDIR="${MKDIR}" \
CHOWN="${CHOWN}" \
TOUCH="${TOUCH}" \
WWWOWN="${WWWOWN}" \
WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= IMAGICK X11 DOCS EXAMPLES
OPTIONS_DEFAULT=IMAGICK
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
PORTDOCS= README_ca.txt README_en.txt README_fr.txt
PLIST_SUB+= WWWOWN="${WWWOWN}" \
WWWGRP="${WWWGRP}" \
CHOWN="${CHOWN}"
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MIMAGICK}
.if ${PORT_OPTIONS:MX11}
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:graphics/ImageMagick
.else
RUN_DEPENDS+= ${LOCALBASE}/bin/convert:graphics/ImageMagick-nox11
.endif
.endif
pre-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
pre-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
@cd ${WRKSRC}/tools/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/
do-install:
@cd ${WRKSRC}/doc/ && ${RM} ${PORTDOCS}
@${RM} -r ${WRKSRC}/tools ${WRKSRC}/_data/dummy.txt
@${INSTALL} -d ${STAGEDIR}${WWWDIR}
@${TAR} -C ${WRKSRC} -cf - . | \
${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
.include <bsd.port.post.mk>