# Created by: Goran Lowkrantz # $FreeBSD: head/www/piwigo/Makefile 568605 2021-03-16 19:26:03Z nc $ PORTNAME= piwigo DISTVERSION= 11.3.0 CATEGORIES= www MASTER_SITES= https://piwigo.org/download/dlcounter.php?code=${PORTVERSION}&/ MAINTAINER= tremere@cainites.net COMMENT= PHP based Web Gallery LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/doc/COPYING RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/sodium.so:security/pecl-libsodium@${PHP_FLAVOR} USES= cpe php:web zip USE_PHP= ctype dom exif filter gd hash iconv json mbstring mysqli \ openssl pcre pdo session simplexml spl tokenizer xml zlib NO_ARCH= yes NO_BUILD= yes SUB_FILES= pkg-deinstall pkg-message SUB_LIST+= CHOWN="${CHOWN}" \ CP="${CP}" \ MKDIR="${MKDIR}" \ TOUCH="${TOUCH}" \ WWWGRP="${WWWGRP}" \ WWWOWN="${WWWOWN}" WRKSRC= ${WRKDIR}/${PORTNAME} PLIST_SUB+= CHOWN="${CHOWN}" \ WWWGRP="${WWWGRP}" \ WWWOWN="${WWWOWN}" PORTDOCS= README_ca.txt README_en.txt README_fr.txt OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_GROUP= OPT OPTIONS_GROUP_OPT= EXIFTOOL FFMPEG IMAGICK MEDIAINFO EXIFTOOL_DESC= exiftool support (for plugins) IMAGICK_DESC= ${IMAGEMAGICK_DESC} MEDIAINFO_DESC= mediainfo support (for plugins) OPT_DESC= Optional dependencies EXIFTOOL_RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg IMAGICK_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR} MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo .include 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