1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Fix X11 support

Disable OpenGL support by default (nobody complained with a broken X11)
Enable optional libXv support
This commit is contained in:
Martin Matuska 2012-05-19 07:17:23 +00:00
parent 6f6136cf6a
commit 8313e50b12
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296939

View File

@ -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