freebsd-ports/www/gallery3/Makefile
Edwin Groothuis 030604be4c Maintainer update of www/gallery port
Gallery v.1.4 and Gallery Remote v.1.1 are now available!

	Version 1.4 premieres some major new features: Gallery is
	now internationalized, and can be displayed in over 20
	languages! In addition, we've completely overhauled the
	documentation and made it more accessible and more informative.
	Other changes include ownership of individual album items,
	not just of albums, and a slew of minor improvements and
	bugfixes.

	Maintainer Note: Corrected an outstanding problem with the
	port incorrectly depending on Pear (instead of PHP)

PR:		ports/56739
Submitted by:	Jamie Hermans <jamie@hermans.ca>
2003-09-24 11:38:12 +00:00

63 lines
1.5 KiB
Makefile

# New ports collection makefile for: gallery
# Date created: 09 Sep 2001
# Whom: Jamie Hermans <jamie@hermans.ca>
#
# $FreeBSD$
#
PORTNAME= gallery
PORTVERSION= 1.4
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= jamie@hermans.ca
COMMENT= Gallery is a slick web based photo album written using PHP
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
jhead:${PORTSDIR}/graphics/jhead \
unzip:${PORTSDIR}/archivers/unzip
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
DOCFILES= AUTHORS ChangeLog README UPGRADING
EXCEPTFILES= ${DOCFILES} LICENSE.txt
CPIO= cpio --quiet -pdum -R
PLIST_SUB= GALLERYDIR=${GALLERYDIR}
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
pre-fetch:
.if !defined(GALLERYDIR)
@${ECHO_MSG} ""
@${ECHO_MSG} "Define GALLERYDIR to override default of 'www/data/gallery'."
@${ECHO_MSG} ""
.endif
GALLERYDIR?= www/data/gallery
WWWOWN?= www
WWWGRP?= www
post-configure:
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
-e 's#%%GALLERYDIR%%#${GALLERYDIR}#g' pkg-message > ${PKGMESSAGE}
do-install:
@ ${MKDIR} -m 0755 ${PREFIX}/${GALLERYDIR}
@ cd ${WRKSRC} && find * -name \*.bat ${EXCEPTFILES:S/^/-o -name /} \
-o -print | ${CPIO} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GALLERYDIR}
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR}
.endif
.if !defined(BATCH)
@ ${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>