aboutsummaryrefslogtreecommitdiffstats
path: root/www/gallery2
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-08 00:53:45 +0800
committermiwi <miwi@FreeBSD.org>2013-03-08 00:53:45 +0800
commit01586cc2cd8a893e9fb607884b766059ae2a287d (patch)
treee492c56fa7379da1ca224d6c3b1e9a31bdf1f7d9 /www/gallery2
parenta526e1d7b60fba52822780fd8712e159d1c7b55c (diff)
downloadfreebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.tar.gz
freebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.tar.zst
freebsd-ports-gnome-01586cc2cd8a893e9fb607884b766059ae2a287d.zip
- Convert to OptionsNG
- Trim header Reviewed by: bapt
Diffstat (limited to 'www/gallery2')
-rw-r--r--www/gallery2/Makefile45
1 files changed, 20 insertions, 25 deletions
diff --git a/www/gallery2/Makefile b/www/gallery2/Makefile
index 52506e2b77cc..f1fefe652c04 100644
--- a/www/gallery2/Makefile
+++ b/www/gallery2/Makefile
@@ -24,58 +24,53 @@ NO_BUILD= yes
SUB_FILES= pkg-message
-OPTIONS= NETPBM "Enable netpbm support" off \
- IMAGEMAGICK "Enable imagemagick support" on \
- GRAPHMAGICK "Enable graphicsmagick support" off \
- 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 \
- NLS "Enable National Language Support" on
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_PGSQL)
+OPTIONS_DEFINE= DCRAW FFMPEG GD GRAPHMAGICK IMAGEMAGICK JHEAD \
+ NETPBM NLS UNZIP
+OPTIONS_DEFAULT= IMAGEMAGICK JHEAD UNZIP
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.else
USE_PHP+= mysql
.endif
-.if defined(WITH_GD)
+
+.if ${PORT_OPTIONS:MGD}
USE_PHP+= gd
RUN_DEPENDS+= pngtogd:${PORTSDIR}/graphics/gd
.endif
-.if defined(WITH_NLS)
+
+.if ${PORT_OPTIONS:MNLS}
USE_PHP+= gettext
USE_GETTEXT= yes # Pet portlint
.endif
-.if defined(WITH_NETPBM)
+.if ${PORT_OPTIONS:MNETPBM}
RUN_DEPENDS+= giftopnm:${PORTSDIR}/graphics/netpbm
.endif
-.if defined(WITH_GRAPHMAGICK)
+.if ${PORT_OPTIONS:MGRAPHMAGICK}
RUN_DEPENDS+= gm:${PORTSDIR}/graphics/GraphicsMagick
.endif
-.if defined(WITH_IMAGEMAGICK)
+.if ${PORT_OPTIONS:MIMAGEMAGICK}
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
-.if defined(WITH_JHEAD)
+.if ${PORT_OPTIONS:MJHEAD}
RUN_DEPENDS+= jhead:${PORTSDIR}/graphics/jhead
.endif
-.if defined(WITH_UNZIP)
+.if ${PORT_OPTIONS:MUNZIP}
RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
.endif
-.if defined(WITH_FFMPEG)
+.if ${PORT_OPTIONS:MFFMPEG}
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
-
.endif
-.if defined(WITH_DCRAW)
+
+.if ${PORT_OPTIONS:MDCRAW}
RUN_DEPENDS+= dcraw:${PORTSDIR}/graphics/dcraw
.endif
@@ -93,4 +88,4 @@ do-install:
@ ${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>