pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gst-plugins1-gl: make this package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Feb 9 21:01:29 2025 +0100
Changeset:	21bd148bb08133dd43d457924afe2c20d6835584

Modified Files:
	gst-plugins1-gl/DESCR
	gst-plugins1-gl/Makefile
	gst-plugins1-gl/PLIST
	gst-plugins1-gl/buildlink3.mk
Added Files:
	gst-plugins1-gl/TODO

Log Message:
gst-plugins1-gl: make this package

This is ugly since the usual gstreamer extension handling doesn't
work.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=21bd148bb08133dd43d457924afe2c20d6835584

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gst-plugins1-gl/DESCR         |  2 +-
 gst-plugins1-gl/Makefile      | 56 ++++++++++++++++++++++++++++++-----
 gst-plugins1-gl/PLIST         | 69 ++++++++++++++++++++++++++++++++++++++++++-
 gst-plugins1-gl/TODO          |  1 +
 gst-plugins1-gl/buildlink3.mk | 18 ++++++-----
 5 files changed, 128 insertions(+), 18 deletions(-)

diffs:
diff --git a/gst-plugins1-gl/DESCR b/gst-plugins1-gl/DESCR
index caee337740..8bff15823f 100644
--- a/gst-plugins1-gl/DESCR
+++ b/gst-plugins1-gl/DESCR
@@ -6,4 +6,4 @@ Applications can take advantage of advances in codec and filter technology
 transparently.  Developers can add new codecs and filters by writing a
 simple plugin with a clean, generic interface.
 
-This package provides the opengl plugin for GStreamer.
+This package provides the GL plugin for GStreamer.
diff --git a/gst-plugins1-gl/Makefile b/gst-plugins1-gl/Makefile
index ffef51b508..8e4f637f9b 100644
--- a/gst-plugins1-gl/Makefile
+++ b/gst-plugins1-gl/Makefile
@@ -1,18 +1,58 @@
-# $NetBSD: Makefile,v 1.2 2020/03/08 16:50:41 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2021/11/17 08:36:03 wiz Exp $
 
-PKGNAME=	${DISTNAME:S/plugins/plugins1/:S/-base/-opengl/}
-CATEGORIES=	multimedia gnome
+PKGNAME=	${DISTNAME:S/plugins/plugins1/:S/-base/-gl/}
+CATEGORIES=	graphics gnome
 
-COMMENT=	Open source multimedia framework - OpenGL plugin
+COMMENT=	Open source multimedia framework - GL plugin
 
-GST_EXT_BUILD=	# defined
-GST_PLUGINS+=	gl
+# this doesn't work
+#GST_EXT_BUILD=	# defined
+GST_PLUGINS+=	drm gl
 
-LDFLAGS+=		${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib
+# so we need to delete stuff manually
 
-# ext/gl/meson.build:57:20: ERROR: Unknown variable "gstgl_dep".
+post-install:
+	cd ${DESTDIR}${PREFIX} && \
+		${RM} -rf \
+			include/gstreamer-1.0/gst/allocators \
+			include/gstreamer-1.0/gst/app \
+			include/gstreamer-1.0/gst/audio \
+			include/gstreamer-1.0/gst/fft \
+			include/gstreamer-1.0/gst/pbutils \
+			include/gstreamer-1.0/gst/riff \
+			include/gstreamer-1.0/gst/rtp \
+			include/gstreamer-1.0/gst/rtsp \
+			include/gstreamer-1.0/gst/sdp \
+			include/gstreamer-1.0/gst/tag \
+			include/gstreamer-1.0/gst/video \
+			include/gstreamer-1.0/gst/video \
+			lib/libgstallocators-1.0.so* \
+			lib/libgstapp-1.0.so* \
+			lib/libgstaudio-1.0.so* \
+			lib/libgstfft-1.0.so* \
+			lib/libgstpbutils-1.0.so* \
+			lib/libgstriff-1.0.so* \
+			lib/libgstrtp-1.0.so* \
+			lib/libgstrtsp-1.0.so* \
+			lib/libgstsdp-1.0.so* \
+			lib/libgsttag-1.0.so* \
+			lib/libgstvideo-1.0.so* \
+			lib/pkgconfig/gstreamer-allocators-1.0.pc \
+			lib/pkgconfig/gstreamer-app-1.0.pc \
+			lib/pkgconfig/gstreamer-audio-1.0.pc \
+			lib/pkgconfig/gstreamer-fft-1.0.pc \
+			lib/pkgconfig/gstreamer-pbutils-1.0.pc \
+			lib/pkgconfig/gstreamer-plugins-base-1.0.pc \
+			lib/pkgconfig/gstreamer-riff-1.0.pc \
+			lib/pkgconfig/gstreamer-rtp-1.0.pc \
+			lib/pkgconfig/gstreamer-rtsp-1.0.pc \
+			lib/pkgconfig/gstreamer-sdp-1.0.pc \
+			lib/pkgconfig/gstreamer-tag-1.0.pc \
+			lib/pkgconfig/gstreamer-video-1.0.pc \
+			share/gst-plugins-base/1.0/license-translations.dict
 
 .include "../../multimedia/gst-plugins1-base/Makefile.common"
 .include "../../multimedia/gst-plugins1-base/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/gst-plugins1-gl/PLIST b/gst-plugins1-gl/PLIST
index bbb1629c03..7b4834ba4f 100644
--- a/gst-plugins1-gl/PLIST
+++ b/gst-plugins1-gl/PLIST
@@ -1,2 +1,69 @@
 @comment $NetBSD$
-lib/gstreamer-1.0/libgstopengl.la
+include/gstreamer-1.0/gst/gl/egl/egl.h
+include/gstreamer-1.0/gst/gl/egl/gstegl.h
+include/gstreamer-1.0/gst/gl/egl/gsteglimage.h
+include/gstreamer-1.0/gst/gl/egl/gstgldisplay_egl.h
+include/gstreamer-1.0/gst/gl/egl/gstgldisplay_egl_device.h
+include/gstreamer-1.0/gst/gl/egl/gstglmemoryegl.h
+include/gstreamer-1.0/gst/gl/gl-enumtypes.h
+include/gstreamer-1.0/gst/gl/gl-prelude.h
+include/gstreamer-1.0/gst/gl/gl.h
+include/gstreamer-1.0/gst/gl/glprototypes/all_functions.h
+include/gstreamer-1.0/gst/gl/glprototypes/base.h
+include/gstreamer-1.0/gst/gl/glprototypes/blending.h
+include/gstreamer-1.0/gst/gl/glprototypes/buffer_storage.h
+include/gstreamer-1.0/gst/gl/glprototypes/buffers.h
+include/gstreamer-1.0/gst/gl/glprototypes/debug.h
+include/gstreamer-1.0/gst/gl/glprototypes/eglimage.h
+include/gstreamer-1.0/gst/gl/glprototypes/fbo.h
+include/gstreamer-1.0/gst/gl/glprototypes/fixedfunction.h
+include/gstreamer-1.0/gst/gl/glprototypes/gles.h
+include/gstreamer-1.0/gst/gl/glprototypes/gstgl_compat.h
+include/gstreamer-1.0/gst/gl/glprototypes/gstgl_gles2compat.h
+include/gstreamer-1.0/gst/gl/glprototypes/opengl.h
+include/gstreamer-1.0/gst/gl/glprototypes/query.h
+include/gstreamer-1.0/gst/gl/glprototypes/shaders.h
+include/gstreamer-1.0/gst/gl/glprototypes/sync.h
+include/gstreamer-1.0/gst/gl/glprototypes/vao.h
+include/gstreamer-1.0/gst/gl/gstgl_enums.h
+include/gstreamer-1.0/gst/gl/gstgl_fwd.h
+include/gstreamer-1.0/gst/gl/gstglapi.h
+include/gstreamer-1.0/gst/gl/gstglbasefilter.h
+include/gstreamer-1.0/gst/gl/gstglbasememory.h
+include/gstreamer-1.0/gst/gl/gstglbasemixer.h
+include/gstreamer-1.0/gst/gl/gstglbasesrc.h
+include/gstreamer-1.0/gst/gl/gstglbuffer.h
+include/gstreamer-1.0/gst/gl/gstglbufferpool.h
+include/gstreamer-1.0/gst/gl/gstglcolorconvert.h
+include/gstreamer-1.0/gst/gl/gstglcontext.h
+include/gstreamer-1.0/gst/gl/gstglcontextconfig.h
+include/gstreamer-1.0/gst/gl/gstgldebug.h
+include/gstreamer-1.0/gst/gl/gstgldisplay.h
+include/gstreamer-1.0/gst/gl/gstglfeature.h
+include/gstreamer-1.0/gst/gl/gstglfilter.h
+include/gstreamer-1.0/gst/gl/gstglformat.h
+include/gstreamer-1.0/gst/gl/gstglframebuffer.h
+include/gstreamer-1.0/gst/gl/gstglfuncs.h
+include/gstreamer-1.0/gst/gl/gstglmemory.h
+include/gstreamer-1.0/gst/gl/gstglmemorypbo.h
+include/gstreamer-1.0/gst/gl/gstglmixer.h
+include/gstreamer-1.0/gst/gl/gstgloverlaycompositor.h
+include/gstreamer-1.0/gst/gl/gstglquery.h
+include/gstreamer-1.0/gst/gl/gstglrenderbuffer.h
+include/gstreamer-1.0/gst/gl/gstglshader.h
+include/gstreamer-1.0/gst/gl/gstglshaderstrings.h
+include/gstreamer-1.0/gst/gl/gstglsl.h
+include/gstreamer-1.0/gst/gl/gstglslstage.h
+include/gstreamer-1.0/gst/gl/gstglsyncmeta.h
+include/gstreamer-1.0/gst/gl/gstglupload.h
+include/gstreamer-1.0/gst/gl/gstglutils.h
+include/gstreamer-1.0/gst/gl/gstglviewconvert.h
+include/gstreamer-1.0/gst/gl/gstglwindow.h
+lib/gstreamer-1.0/include/gst/gl/gstglconfig.h
+lib/gstreamer-1.0/libgstopengl.so
+lib/libgstgl-1.0.so
+lib/libgstgl-1.0.so.0
+lib/libgstgl-1.0.so.0.2412.0
+lib/pkgconfig/gstreamer-gl-1.0.pc
+lib/pkgconfig/gstreamer-gl-egl-1.0.pc
+lib/pkgconfig/gstreamer-gl-prototypes-1.0.pc
diff --git a/gst-plugins1-gl/TODO b/gst-plugins1-gl/TODO
new file mode 100644
index 0000000000..2e3560333b
--- /dev/null
+++ b/gst-plugins1-gl/TODO
@@ -0,0 +1 @@
+Packages, needs testing.
diff --git a/gst-plugins1-gl/buildlink3.mk b/gst-plugins1-gl/buildlink3.mk
index ba9d50a94a..bcfb0e66ca 100644
--- a/gst-plugins1-gl/buildlink3.mk
+++ b/gst-plugins1-gl/buildlink3.mk
@@ -1,13 +1,15 @@
-# $NetBSD: buildlink3.mk,v 1.1 2015/01/30 11:09:45 jmcneill Exp $
+# $NetBSD$
 
-BUILDLINK_TREE+=	gst-plugins1-opengl
+BUILDLINK_TREE+=	gst-plugins1-gl
 
-.if !defined(GST_PLUGINS1_OPENGL_BUILDLINK3_MK)
-GST_PLUGINS1_OPENGL_BUILDLINK3_MK:=
+.if !defined(GST_PLUGINS1_GL_BUILDLINK3_MK)
+GST_PLUGINS1_GL_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.gst-plugins1-opengl+=	gst-plugins1-opengl>=1.4.5
-BUILDLINK_PKGSRCDIR.gst-plugins1-opengl?=	../../wip/gst-plugins1-opengl
+BUILDLINK_API_DEPENDS.gst-plugins1-gl+=	gst-plugins1-gl>=1.24.12
+BUILDLINK_PKGSRCDIR.gst-plugins1-gl?=	../../wip/gst-plugins1-gl
 
-.endif	# GST_PLUGINS1_OPENGL_BUILDLINK3_MK
+.include "../../multimedia/gst-plugins1-base/buildlink3.mk"
+.include "../../multimedia/gstreamer1/buildlink3.mk"
+.endif	# GST_PLUGINS1_GL_BUILDLINK3_MK
 
-BUILDLINK_TREE+=	-gst-plugins1-opengl
+BUILDLINK_TREE+=	-gst-plugins1-gl


Home | Main Index | Thread Index | Old Index