mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Add missing OPTIONS: UNZIP (default on)
- Sort OPTIONS - Use bsd.port.options.mk - Bump PORTREVISION for dependency change: WITH_UNZIP PR: ports/152058 Submitted by: sunpoet (myself) Approved by: Bo-Yi Wu <appleboy.tw@gmail.com> (maintainer)
This commit is contained in:
parent
96c9b9722c
commit
c9cedb539d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264290
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gallery3
|
||||
PORTVERSION= 3.0
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= SF/gallery/${PORTNAME}/${PORTVERSION}
|
||||
DISTNAME= gallery-${PORTVERSION}
|
||||
@ -25,60 +25,61 @@ NO_BUILD= yes
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
OPTIONS= NETPBM "Enable netpbm support" off \
|
||||
IMAGEMAGICK "Enable imagemagick support" on \
|
||||
GRAPHMAGICK "Enable graphicsmagick support" off \
|
||||
JHEAD "Enable jhead support" on \
|
||||
GD "Enable gd support" off \
|
||||
DCRAW "Enable dcraw support" off \
|
||||
OPTIONS= DCRAW "Enable dcraw support" off \
|
||||
FFMPEG "Enable ffmpeg support" off \
|
||||
NLS "Enable National Language Support" on
|
||||
GD "Enable gd support" off \
|
||||
GRAPHMAGICK "Enable graphicsmagick support" off \
|
||||
IMAGEMAGICK "Enable imagemagick support" on \
|
||||
JHEAD "Enable jhead support" on \
|
||||
NETPBM "Enable netpbm support" off \
|
||||
NLS "Enable National Language Support" on \
|
||||
UNZIP "Enable unzip support" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(GALLERY3DIR)
|
||||
# Continue to support legacy GALLERY3DIR variable
|
||||
WWWDIR= ${GALLERY3DIR}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DCRAW)
|
||||
RUN_DEPENDS+= dcraw:${PORTSDIR}/graphics/dcraw
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FFMPEG)
|
||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GD)
|
||||
USE_PHP+= gd
|
||||
RUN_DEPENDS+= pngtogd:${PORTSDIR}/graphics/gd
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NLS)
|
||||
USE_PHP+= gettext
|
||||
USE_GETTEXT= yes # Pet portlint
|
||||
.if defined(WITH_GRAPHMAGICK)
|
||||
RUN_DEPENDS+= gm:${PORTSDIR}/graphics/GraphicsMagick
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_IMAGEMAGICK)
|
||||
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_JHEAD)
|
||||
RUN_DEPENDS+= jhead:${PORTSDIR}/graphics/jhead
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NETPBM)
|
||||
RUN_DEPENDS+= giftopnm:${PORTSDIR}/graphics/netpbm
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GRAPHMAGICK)
|
||||
RUN_DEPENDS+= gm:${PORTSDIR}/graphics/GraphicsMagick
|
||||
.if !defined(WITHOUT_NLS)
|
||||
USE_PHP+= gettext
|
||||
USE_GETTEXT= yes # Pet portlint
|
||||
.endif
|
||||
|
||||
.if defined(WITH_IMAGEMAGICK)
|
||||
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
||||
.endif
|
||||
|
||||
.if defined(WITH_JHEAD)
|
||||
RUN_DEPENDS+= jhead:${PORTSDIR}/graphics/jhead
|
||||
.endif
|
||||
|
||||
.if defined(WITH_UNZIP)
|
||||
.if !defined(WITHOUT_UNZIP)
|
||||
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
|
||||
|
||||
.if defined(GALLERY3DIR)
|
||||
# Continue to support legacy GALLERY3DIR variable
|
||||
WWWDIR= ${GALLERY3DIR}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${WWWDIR}/
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/
|
||||
@ -88,4 +89,4 @@ do-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user