b088834c06
A dependency on unzip will never be registered since unzip is available on all supported platforms (since FreeBSD 8.0). On the gallery ports, unzip was specified as a default option, so removing the ineffective option requires a revbump. Approved by: infrastructure blanket (removal of redundant deps)
78 lines
1.6 KiB
Makefile
78 lines
1.6 KiB
Makefile
# Created by: Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gallery3
|
|
PORTVERSION= 3.0.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/gallery/${PORTNAME}/${PORTVERSION}
|
|
DISTNAME= gallery-${PORTVERSION}
|
|
|
|
MAINTAINER= appleboy.tw@gmail.com
|
|
COMMENT= Web based photo album organizer written in PHP
|
|
|
|
USES= zip
|
|
|
|
USE_PHP= ctype filter iconv json mysql mbstring pcre \
|
|
simplexml session spl tokenizer xml
|
|
WANT_PHP_WEB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
NO_BUILD= yes
|
|
|
|
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= DCRAW FFMPEG GD GRAPHMAGICK IMAGEMAGICK JHEAD \
|
|
NETPBM NLS X11
|
|
OPTIONS_DEFAULT= IMAGEMAGICK JHEAD
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(GALLERY3DIR)
|
|
# Continue to support legacy GALLERY3DIR variable
|
|
WWWDIR= ${GALLERY3DIR}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDCRAW}
|
|
RUN_DEPENDS+= dcraw:graphics/dcraw
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFFMPEG}
|
|
LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGD}
|
|
USE_PHP+= gd
|
|
RUN_DEPENDS+= pngtogd:graphics/gd
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGRAPHMAGICK}
|
|
RUN_DEPENDS+= gm:graphics/GraphicsMagick
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIMAGEMAGICK}
|
|
.if ${PORT_OPTIONS:MX11}
|
|
RUN_DEPENDS+= convert:graphics/ImageMagick
|
|
.else
|
|
RUN_DEPENDS+= convert:graphics/ImageMagick-nox11
|
|
.endif
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJHEAD}
|
|
RUN_DEPENDS+= jhead:graphics/jhead
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNETPBM}
|
|
RUN_DEPENDS+= giftopnm:graphics/netpbm
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USE_PHP+= gettext
|
|
USES+= gettext
|
|
.endif
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
|
|
|
|
.include <bsd.port.mk>
|