1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

graphics/gstreamer1-plugins-gl: Prevent fetch during build

If git(1) was found on the system, the port would attempt to download
OpenGL headers for a meson subproject from [1], which seems to only be
necessary/intended for Windows. Add '--wrap-mode=nodownload' to
MESON_ARGS to prevent this behavior. This only affects builds on live
systems.

While here: Remove unused glu dep from USE_GL and add jpeg dep as this
will link to libjpeg if found on the system. Tiny Makefile order fix.

[1] https://gitlab.freedesktop.org/gstreamer/meson-ports/gl-headers

PR:		270184
Reported by:	amdmi3
This commit is contained in:
Jason E. Hale 2024-10-23 03:58:55 -04:00
parent 9997938019
commit c9d2a05e02

View File

@ -1,4 +1,4 @@
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= graphics
COMMENT= GStreamer GL graphics plugin
@ -7,11 +7,12 @@ BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene \
libpng16.so:graphics/png
USES= gl
USE_GL= gl glu glesv2 egl
USES= gl jpeg
USE_GL= gl glesv2 egl
USE_XORG+= x11 xext xcb
MESON_ARGS+= -Dgl=enabled \
MESON_ARGS+= --wrap-mode=nodownload \
-Dgl=enabled \
-Dgl_winsys=${_GL_WINSYS:ts,} \
-Dgl_api=opengl,gles2 \
-Dgl_platform=glx,egl
@ -24,9 +25,9 @@ OPTIONS_DEFINE= WAYLAND
OPTIONS_DEFAULT=WAYLAND
OPTIONS_SUB= yes
WAYLAND_VARS= _GL_WINSYS+=wayland
WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland
WAYLAND_VARS= _GL_WINSYS+=wayland
DIST= base
GST_PLUGIN= gl