aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-05-19 07:17:23 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-05-19 07:17:23 +0000
commit8313e50b123e4760ff8b46704c2551b8e7cee295 (patch)
treed73e4b51359fc26ee7ad9832dd2fe2c38ac02f70 /multimedia
parent6f6136cf6a8bf8598201eb5e1a96039beb36ab84 (diff)
downloadports-8313e50b123e4760ff8b46704c2551b8e7cee295.tar.gz
ports-8313e50b123e4760ff8b46704c2551b8e7cee295.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gpac-libgpac/Makefile42
1 files changed, 26 insertions, 16 deletions
diff --git a/multimedia/gpac-libgpac/Makefile b/multimedia/gpac-libgpac/Makefile
index c9ce28762b4b..abb222824ada 100644
--- a/multimedia/gpac-libgpac/Makefile
+++ b/multimedia/gpac-libgpac/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gpac
PORTVERSION= 0.4.5
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/GPAC/GPAC%20${PORTVERSION}
@@ -29,22 +29,44 @@ LIBVER= 1
OPTIONS= IPV6 "IPv6 support" on \
JPEG "JPEG support" on \
- OPENGL "OpenGL support" on \
+ OPENGL "OpenGL support" off \
OPENSSL "OpenSSL support" on \
- PNG "PNG support" on
+ PNG "PNG support" on \
+ XVIDEO "Xvideo support (libXv)" off
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ARGS= --cc="${CC}" --X11-path="${X11BASE}" \
+CONFIGURE_ARGS= --cc="${CC}" --X11-path="${LOCALBASE}" \
--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}" \
--enable-pic \
+ --disable-wx \
--use-js=no --use-a52=no --use-faad=no --use-ffmpeg=no \
--use-ft=no --use-mad=no --use-ogg=no \
--use-openjpeg=no --use-theora=no --usr-vorbis=no
CONFIGURE_ENV+= LIBVER="${LIBVER}" PTHREAD_LIBS="${PTHREAD_LIBS}"
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_OPENSSL)
+USE_OPENSSL= yes
+.else
+CONFIGURE_ARGS+= --disable-ssl
+.endif
+
+.if defined(WITH_OPENGL)
+USE_GL= gl glu
+.else
+CONFIGURE_ARGS+= --disable-opengl
+.endif
+
+.if defined(WITH_XVIDEO)
+LIB_DEPENDS+= Xv.1:${PORTSDIR}/x11/libXv
+.else
+CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm
+.endif
+
.include <bsd.port.pre.mk>
.if defined(WITHOUT_IPV6)
@@ -58,18 +80,6 @@ CONFIGURE_ARGS+= --use-jpeg=local
CONFIGURE_ARGS+= --use-jpeg=no
.endif
-.if defined(WITHOUT_OPENGL)
-CONFIGURE_ARGS+= --disable-opengl
-.else
-USE_GL= gl glu
-.endif
-
-.if !defined(WITHOUT_OPENSSL)
-USE_OPENSSL= yes
-.else
-CONFIGURE_ARGS+= --disable-ssl
-.endif
-
.if !defined(WITHOUT_PNG)
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --use-png=local