aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gpac-libgpac
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-05-30 20:38:59 +0800
committerbapt <bapt@FreeBSD.org>2012-05-30 20:38:59 +0800
commit78b607c5e49d03c2d2ca58c63ed29cab25abb2ee (patch)
tree7baaa20543fd03210214856c3195211a1640b600 /multimedia/gpac-libgpac
parent2ce77a0322ccfd3aa5810625f3bdf4d27eadbd2a (diff)
downloadfreebsd-ports-gnome-78b607c5e49d03c2d2ca58c63ed29cab25abb2ee.tar.gz
freebsd-ports-gnome-78b607c5e49d03c2d2ca58c63ed29cab25abb2ee.tar.zst
freebsd-ports-gnome-78b607c5e49d03c2d2ca58c63ed29cab25abb2ee.zip
Convert to new options framework
Diffstat (limited to 'multimedia/gpac-libgpac')
-rw-r--r--multimedia/gpac-libgpac/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/multimedia/gpac-libgpac/Makefile b/multimedia/gpac-libgpac/Makefile
index abb222824ada..6a9a21f3995c 100644
--- a/multimedia/gpac-libgpac/Makefile
+++ b/multimedia/gpac-libgpac/Makefile
@@ -27,12 +27,8 @@ BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/bin/gcc
LIBVER= 1
-OPTIONS= IPV6 "IPv6 support" on \
- JPEG "JPEG support" on \
- OPENGL "OpenGL support" off \
- OPENSSL "OpenSSL support" on \
- PNG "PNG support" on \
- XVIDEO "Xvideo support (libXv)" off
+OPTIONS_DEFINE= IPV6 JPEG OPENGL SSL PNG XVIDEO
+OPTIONS_DEFAULT= IPV6 JPEG SSL PNG
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
@@ -49,19 +45,19 @@ CONFIGURE_ENV+= LIBVER="${LIBVER}" PTHREAD_LIBS="${PTHREAD_LIBS}"
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
-.if defined(WITH_OPENGL)
+.if ${PORT_OPTIONS:MOPENGL}
USE_GL= gl glu
.else
CONFIGURE_ARGS+= --disable-opengl
.endif
-.if defined(WITH_XVIDEO)
+.if ${PORT_OPTIONS:MXVIDEO}
LIB_DEPENDS+= Xv.1:${PORTSDIR}/x11/libXv
.else
CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm
@@ -69,18 +65,18 @@ CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_IPV6)
+.if empty(PORT_OPTIONS:MIPV6)
CONFIGURE_ARGS+= --disable-ipv6
.endif
-.if !defined(WITHOUT_JPEG)
+.if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+= --use-jpeg=local
.else
CONFIGURE_ARGS+= --use-jpeg=no
.endif
-.if !defined(WITHOUT_PNG)
+.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --use-png=local
.else