1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/zenphoto/Makefile
Philippe Audeoud 318383d0c0 - Fix NOPORTDOCS/NOPORTDATA/NOPORTEXAMPLES
Notified by:	itetcu
Approved by:	tabthorpe
2008-05-21 20:31:24 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: zenphoto
# Date created: 27 December 2007
# Whom: Philippe Audeoud <jadawin@tuxaco.net>
# $FreeBSD$
PORTNAME= zenphoto
PORTVERSION= 1.1.6
CATEGORIES= www
MASTER_SITES= http://www.zenphoto.org/files/
MAINTAINER= jadawin@FreeBSD.org
COMMENT= A simpler web photo gallery
USE_PHP= mysql gd session mbstring
WANT_PHP_WEB= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message pkg-deinstall
SUB_LIST= PORTNAME=${PORTNAME} \
WWWDIR=${WWWDIR}
do-install:
${MKDIR} ${WWWDIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR} \
"! -name README.html ! -name License.txt")
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
.if exists(${WWWDIR}/albums/zen-logo.jpg)
${CHMOD} 644 ${WWWDIR}/albums/zen-logo.jpg
.endif
.if (exists(${WWWDIR}/albums/multimediaDefault.png) && \
exists(${WWWDIR}/albums/videoDefault.png))
${CHMOD} 644 ${WWWDIR}/albums/videoDefault.png
${CHMOD} 644 ${WWWDIR}/albums/multimediaDefault.png
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>