2005-09-17 13:26:55 +02:00
|
|
|
# New ports collection makefile for: gallery2
|
|
|
|
# Date created: 29 Aug 2005
|
|
|
|
# Whom: Alex Varju <freebsd-ports@varju.ca>
|
2001-10-15 13:53:18 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-09-17 13:26:55 +02:00
|
|
|
PORTNAME= gallery2
|
2007-06-24 22:34:24 +02:00
|
|
|
PORTVERSION= 2.2.2
|
2007-07-09 21:24:56 +02:00
|
|
|
PORTREVISION= 1
|
2001-10-15 13:53:18 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2005-09-17 13:26:55 +02:00
|
|
|
MASTER_SITE_SUBDIR= gallery
|
2007-06-24 22:34:24 +02:00
|
|
|
DISTNAME= gallery-2.2.2-full
|
2005-09-17 13:26:55 +02:00
|
|
|
DIST_SUBDIR= gallery2
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2004-08-21 14:23:13 +02:00
|
|
|
MAINTAINER= freebsd-ports@varju.ca
|
2005-09-17 13:26:55 +02:00
|
|
|
COMMENT= Gallery is a web based photo album written using PHP
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2006-02-08 17:03:05 +01:00
|
|
|
USE_PHP= pcre session
|
2004-07-30 23:46:45 +02:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2005-09-17 13:26:55 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DIST_SUBDIR}
|
2001-10-15 13:53:18 +02:00
|
|
|
NO_BUILD= yes
|
2004-02-01 18:33:50 +01:00
|
|
|
CPIOARGS= --quiet -pdum -R
|
2005-12-01 09:28:25 +01:00
|
|
|
|
2007-07-09 21:24:56 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST+= WWWDIR_REL=${WWWDIR_REL}
|
|
|
|
|
2006-02-08 17:03:05 +01:00
|
|
|
# Note that USE_PHP must be set before bsd.port.pre.mk is included, so
|
|
|
|
# OPTIONS can't be used right now without making portlint angry
|
2006-11-13 12:36:50 +01:00
|
|
|
#OPTIONS= NETPBM "Enable netpbm support" off \
|
2006-02-08 17:03:05 +01:00
|
|
|
# IMAGEMAGICK "Enable imagemagick support" on \
|
2007-07-09 21:24:56 +02:00
|
|
|
# GRAPHICSMAGICK "Use graphicsmagick instead of imagemagick" off \
|
2006-02-08 17:03:05 +01:00
|
|
|
# PGSQL "Use PostgreSQL instead of MySQL" off \
|
|
|
|
# JHEAD "Enable jhead support" on \
|
|
|
|
# UNZIP "Enable unzip support" on \
|
|
|
|
# GD "Enable gd support" off \
|
|
|
|
# DCRAW "Enable dcraw support" off \
|
|
|
|
# FFMPEG "Enable ffmpeg support" off
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PHP+= pgsql
|
|
|
|
.else
|
|
|
|
USE_PHP+= mysql
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_GD)
|
|
|
|
USE_PHP+= gd
|
|
|
|
RUN_DEPENDS+= pngtogd:${PORTSDIR}/graphics/gd
|
|
|
|
.endif
|
2006-11-13 12:36:50 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_PHP+= gettext
|
|
|
|
.endif
|
2005-12-01 09:28:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-13 12:36:50 +01:00
|
|
|
.if defined(WITH_NETPBM)
|
2005-12-01 09:28:25 +01:00
|
|
|
RUN_DEPENDS+= giftopnm:${PORTSDIR}/graphics/netpbm
|
|
|
|
.endif
|
2007-07-09 21:24:56 +02:00
|
|
|
|
|
|
|
.if defined(WITH_GRAPHICSMAGICK)
|
|
|
|
RUN_DEPENDS+= GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick
|
|
|
|
.elif !defined(WITHOUT_IMAGEMAGICK)
|
2005-12-01 09:28:25 +01:00
|
|
|
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
.endif
|
2007-07-09 21:24:56 +02:00
|
|
|
|
2006-02-08 17:03:05 +01:00
|
|
|
.if !defined(WITHOUT_JHEAD)
|
2005-12-01 09:28:25 +01:00
|
|
|
RUN_DEPENDS+= jhead:${PORTSDIR}/graphics/jhead
|
|
|
|
.endif
|
2006-02-08 17:03:05 +01:00
|
|
|
.if !defined(WITHOUT_UNZIP)
|
2005-12-01 09:28:25 +01:00
|
|
|
RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_FFMPEG)
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_DCRAW)
|
|
|
|
RUN_DEPENDS+= dcraw:${PORTSDIR}/graphics/dcraw
|
|
|
|
.endif
|
|
|
|
|
2007-06-24 22:34:24 +02:00
|
|
|
pre-everything::
|
2007-07-09 21:24:56 +02:00
|
|
|
.if defined(GALLERY2DIR)
|
|
|
|
WWWDIR= ${GALLERY2DIR}
|
|
|
|
.else
|
2002-06-07 09:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
2007-07-09 21:24:56 +02:00
|
|
|
@${ECHO_MSG} "Define GALLERY2DIR to override default of ${WWWDIR}."
|
2002-06-07 09:59:53 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2001-10-15 13:53:18 +02:00
|
|
|
do-install:
|
2007-07-09 21:24:56 +02:00
|
|
|
@ ${MKDIR} -m 0755 ${WWWDIR}
|
|
|
|
@ cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
|
|
@ ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
2001-10-15 13:53:18 +02:00
|
|
|
|
|
|
|
post-install:
|
2002-06-07 09:59:53 +02:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2001-10-15 13:53:18 +02:00
|
|
|
|
2005-12-01 09:28:25 +01:00
|
|
|
.include <bsd.port.post.mk>
|