diff options
author | sem <sem@FreeBSD.org> | 2005-10-21 10:23:30 +0000 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-10-21 10:23:30 +0000 |
commit | af5059a70697d51136bc76d1f5203dc6a964b680 (patch) | |
tree | 3c5661480f1402d4014520e0eb15d6a6feb4d6c6 /www/dalbum/Makefile | |
parent | e106273350bf5a27f2c4609acb0a35810a4dcb28 (diff) | |
download | FreeBSD-ports-af5059a70697d51136bc76d1f5203dc6a964b680.zip FreeBSD-ports-af5059a70697d51136bc76d1f5203dc6a964b680.tar.gz |
Highly customizable PHP photo album
WWW: http://www.dalbum.org
Diffstat (limited to 'www/dalbum/Makefile')
-rw-r--r-- | www/dalbum/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/dalbum/Makefile b/www/dalbum/Makefile new file mode 100644 index 0000000..0761cc2 --- /dev/null +++ b/www/dalbum/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: dalbum +# Date created: 21 October 2005 +# Whom: Sergey Matveychuk <sem@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= dalbum +PORTVERSION= 140.152 +CATEGORIES= www +MASTER_SITES= http://www.dalbum.org/ +DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/} + +MAINTAINER= sem@FreeBSD.org +COMMENT= Free, highly customizable PHP photo album + +RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick +USE_PHP= session pcre +NO_BUILD= yes +USE_REINPLACE= yes + +DALBUM_DIR?= www/photo + +PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} +SUB_LIST+= DALBUM_DIR=${DALBUM_DIR} +SUB_FILES= pkg-message + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} -p ${WRKSRC} + @if ! (cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS});\ + then \ + exit 1; \ + fi + +post-patch: + @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/config/config.php + @${RM} ${WRKSRC}/config/config.php.* + +do-install: + @${MKDIR} -m 0775 ${PREFIX}/${DALBUM_DIR} + @cd ${WRKSRC} && ${FIND} . -print | ${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DALBUM_DIR} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |