2001-10-15 13:53:18 +02:00
|
|
|
# New ports collection makefile for: gallery
|
|
|
|
# Date created: 09 Sep 2001
|
|
|
|
# Whom: Jamie Hermans <jamie@hermans.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gallery
|
2008-12-06 16:08:34 +01:00
|
|
|
PORTVERSION= 1.5.10
|
2001-10-15 13:53:18 +02:00
|
|
|
CATEGORIES= www
|
2007-08-26 00:18:50 +02:00
|
|
|
MASTER_SITES= SF
|
2004-01-13 13:53:54 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LANGPACKS}
|
|
|
|
DIST_SUBDIR= gallery
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2008-08-15 05:57:26 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-02-08 08:55:28 +01:00
|
|
|
COMMENT= A slick web based photo album written using PHP
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2002-06-07 09:59:53 +02:00
|
|
|
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
|
|
|
|
jhead:${PORTSDIR}/graphics/jhead \
|
2003-09-24 13:38:12 +02:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2004-09-21 22:07:36 +02:00
|
|
|
USE_PHP= pcre session
|
2004-07-30 23:46:45 +02:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2004-05-03 00:08:38 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2004-07-30 23:46:45 +02:00
|
|
|
USE_PHP+= gettext
|
2007-08-26 00:18:50 +02:00
|
|
|
USE_GETTEXT= yes # Pet portlint
|
2005-01-27 15:21:37 +01:00
|
|
|
|
2007-07-06 07:34:30 +02:00
|
|
|
LANGPACKS= af_ZA-1.5.2${EXTRACT_SUFX} \
|
|
|
|
ar_EG-1.5.1-cvs${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
bg_BG-1.5.4${EXTRACT_SUFX} \
|
2005-09-23 19:33:11 +02:00
|
|
|
ca_ES-1.5${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
cs_CZ.cp1250-1.5.1${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
cs_CZ.iso-8859-2-1.5.6${EXTRACT_SUFX} \
|
|
|
|
da_DK-1.5.9${EXTRACT_SUFX} \
|
|
|
|
de_DE-1.5.9${EXTRACT_SUFX} \
|
2005-09-23 19:33:11 +02:00
|
|
|
en_GB-1.5-RC2${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
es_ES-1.5.2${EXTRACT_SUFX} \
|
|
|
|
fi_FI-1.5.2${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
fr_FR-1.5.9${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
gl_ES-1.5.1${EXTRACT_SUFX} \
|
|
|
|
hu_HU-1.5.1${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
is_IS-1.5.2${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
it_IT-1.5.2${EXTRACT_SUFX} \
|
|
|
|
ja_JP-1.5.2${EXTRACT_SUFX} \
|
|
|
|
ja_JP.utf8-1.5.1${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
ko_KR-1.5.2${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
lt_LT-1.5.1${EXTRACT_SUFX} \
|
|
|
|
nl_NL-1.5.2${EXTRACT_SUFX} \
|
|
|
|
no_NO-1.5.2${EXTRACT_SUFX} \
|
|
|
|
pl_PL-1.5.2${EXTRACT_SUFX} \
|
2008-12-06 16:08:34 +01:00
|
|
|
pt_BR-1.5.4${EXTRACT_SUFX} \
|
2007-07-06 07:34:30 +02:00
|
|
|
pt_PT-1.5.1${EXTRACT_SUFX} \
|
|
|
|
ru_RU.cp1251-1.5.2${EXTRACT_SUFX} \
|
|
|
|
ru_RU.koi8r-1.5.1${EXTRACT_SUFX} \
|
|
|
|
sk_SK-1.5.1${EXTRACT_SUFX} \
|
|
|
|
sl_SI-1.5.1${EXTRACT_SUFX} \
|
|
|
|
sv_SE-1.5.6${EXTRACT_SUFX} \
|
|
|
|
tr_TR-1.5.1-u1${EXTRACT_SUFX} \
|
|
|
|
vi_VN-1.5.1${EXTRACT_SUFX} \
|
|
|
|
zh_HK-1.5.2${EXTRACT_SUFX} \
|
|
|
|
zh_HK.utf8-1.5.2${EXTRACT_SUFX} \
|
|
|
|
zh_TW-1.5.2${EXTRACT_SUFX} \
|
|
|
|
zh_TW.utf8-1.5.2${EXTRACT_SUFX}
|
2004-05-03 00:08:38 +02:00
|
|
|
PLIST_SUB= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.endif
|
2004-01-13 13:53:54 +01:00
|
|
|
|
2008-08-15 05:57:26 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2001-10-15 13:53:18 +02:00
|
|
|
NO_BUILD= yes
|
2005-02-08 08:55:28 +01:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README
|
2008-12-06 16:08:34 +01:00
|
|
|
EXCEPTFILES= ${PORTDOCS} LICENSE.txt
|
2004-02-01 18:33:50 +01:00
|
|
|
CPIOARGS= --quiet -pdum -R
|
2002-06-07 09:59:53 +02:00
|
|
|
|
2007-07-06 07:34:30 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if defined(GALLERYDIR)
|
|
|
|
WWWDIR= ${GALLERYDIR}
|
|
|
|
.else
|
2002-06-07 09:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
2007-07-06 07:34:30 +02:00
|
|
|
@${ECHO_MSG} "Define GALLERYDIR to override default of ${WWWDIR}."
|
2002-06-07 09:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2004-01-13 13:53:54 +01:00
|
|
|
do-extract:
|
2007-08-26 00:18:50 +02:00
|
|
|
@ ${INSTALL} -d ${WRKDIR}
|
2007-07-06 07:34:30 +02:00
|
|
|
@ cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
|
2004-02-01 18:33:50 +01:00
|
|
|
@ for i in ${LANGPACKS}; do \
|
2008-08-15 05:57:26 +02:00
|
|
|
if ! (cd ${WRKSRC}/locale && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/$$i ${EXTRACT_AFTER_ARGS});\
|
2004-01-13 13:53:54 +01:00
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
2001-10-15 13:53:18 +02:00
|
|
|
do-install:
|
2007-08-26 00:18:50 +02:00
|
|
|
@ ${INSTALL} -d -m 0755 ${WWWDIR}
|
2004-01-13 13:53:54 +01:00
|
|
|
@ cd ${WRKSRC} && ${FIND} * -name \*.bat -o -name \*.orig -o -name \*Changelog ${EXCEPTFILES:S/^/-o -name /} \
|
2007-07-06 07:34:30 +02:00
|
|
|
-o -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
2001-10-15 13:53:18 +02:00
|
|
|
|
|
|
|
post-install:
|
2002-06-07 09:59:53 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-08-26 00:18:50 +02:00
|
|
|
@ ${INSTALL} -d ${DOCSDIR}
|
2005-02-08 08:55:28 +01:00
|
|
|
@ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
2002-06-07 09:59:53 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2004-02-09 12:43:38 +01:00
|
|
|
.include <bsd.port.mk>
|