2005-09-17 11:26:55 +00:00
|
|
|
# New ports collection makefile for: gallery2
|
|
|
|
# Date created: 29 Aug 2005
|
|
|
|
# Whom: Alex Varju <freebsd-ports@varju.ca>
|
2001-10-15 11:53:18 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-09-17 11:26:55 +00:00
|
|
|
PORTNAME= gallery2
|
2005-10-14 21:58:56 +00:00
|
|
|
PORTVERSION= 2.0.1
|
2001-10-15 11:53:18 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2005-09-17 11:26:55 +00:00
|
|
|
MASTER_SITE_SUBDIR= gallery
|
2005-10-14 21:58:56 +00:00
|
|
|
DISTNAME= gallery-2.0.1-full
|
2005-09-17 11:26:55 +00:00
|
|
|
DIST_SUBDIR= gallery2
|
2001-10-15 11:53:18 +00:00
|
|
|
|
2004-08-21 12:23:13 +00:00
|
|
|
MAINTAINER= freebsd-ports@varju.ca
|
2005-09-17 11:26:55 +00:00
|
|
|
COMMENT= Gallery is a web based photo album written using PHP
|
2001-10-15 11:53:18 +00:00
|
|
|
|
2002-06-07 07:59:53 +00:00
|
|
|
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
|
|
|
|
jhead:${PORTSDIR}/graphics/jhead \
|
2005-09-17 11:26:55 +00:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
convert:${PORTSDIR}/graphics/ImageMagick
|
2003-09-24 11:38:12 +00:00
|
|
|
|
2005-09-17 11:26:55 +00:00
|
|
|
USE_PHP= pcre session mysql
|
2004-07-30 21:46:45 +00:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2005-09-17 11:26:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DIST_SUBDIR}
|
2001-10-15 11:53:18 +00:00
|
|
|
NO_BUILD= yes
|
2002-06-07 07:59:53 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2004-02-01 17:33:50 +00:00
|
|
|
CPIOARGS= --quiet -pdum -R
|
2005-09-17 11:26:55 +00:00
|
|
|
PLIST_SUB+= GALLERY2DIR=${GALLERY2DIR}
|
2002-06-07 07:59:53 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
2005-09-17 11:26:55 +00:00
|
|
|
.if !defined(GALLERY2DIR)
|
2002-06-07 07:59:53 +00:00
|
|
|
@${ECHO_MSG} ""
|
2005-09-17 11:26:55 +00:00
|
|
|
@${ECHO_MSG} "Define GALLERY2DIR to override default of '${GALLERY2DIR}'."
|
2002-06-07 07:59:53 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2005-09-17 11:26:55 +00:00
|
|
|
GALLERY2DIR?= www/data/gallery2
|
2003-01-01 19:42:15 +00:00
|
|
|
WWWOWN?= www
|
|
|
|
WWWGRP?= www
|
|
|
|
|
2002-06-07 07:59:53 +00:00
|
|
|
post-configure:
|
|
|
|
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
2005-09-17 11:26:55 +00:00
|
|
|
-e 's#%%GALLERY2DIR%%#${GALLERY2DIR}#g' pkg-message > ${PKGMESSAGE}
|
2004-01-13 12:53:54 +00:00
|
|
|
|
2001-10-15 11:53:18 +00:00
|
|
|
do-install:
|
2005-09-17 11:26:55 +00:00
|
|
|
@ ${MKDIR} -m 0755 ${PREFIX}/${GALLERY2DIR}
|
|
|
|
@ cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GALLERY2DIR}
|
|
|
|
@ ${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GALLERY2DIR}
|
2001-10-15 11:53:18 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-06-07 07:59:53 +00:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2001-10-15 11:53:18 +00:00
|
|
|
|
2004-02-09 11:43:38 +00:00
|
|
|
.include <bsd.port.mk>
|