pkgsrc-WIP-changes archive

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

gst-plugins1-good: add more dependencies/options



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Mon Nov 8 22:36:45 2021 +0100
Changeset:	6439a22f4505a67cfbd954192d41e7fa4619976c

Modified Files:
	gst-plugins1-good/Makefile
	gst-plugins1-good/PLIST
Added Files:
	gst-plugins1-good/options.mk

Log Message:
gst-plugins1-good: add more dependencies/options

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

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

diffstat:
 gst-plugins1-good/Makefile   | 32 +++++++++++++++++++++++-------
 gst-plugins1-good/PLIST      | 13 ++++++------
 gst-plugins1-good/options.mk | 47 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 79 insertions(+), 13 deletions(-)

diffs:
diff --git a/gst-plugins1-good/Makefile b/gst-plugins1-good/Makefile
index a8cc8e1794..e5260d0731 100644
--- a/gst-plugins1-good/Makefile
+++ b/gst-plugins1-good/Makefile
@@ -13,7 +13,26 @@ LICENSE=	gnu-gpl-v2
 
 USE_LANGUAGES=	c c++
 
-USE_TOOLS+=		pkg-config perl:run
+USE_TOOLS+=	pkg-config perl:run xgettext
+
+.include "../../mk/oss.buildlink3.mk"
+
+PLIST_VARS+=	oss
+.if ${OSS_TYPE} != "none"
+PLIST.oss=	yes
+LDFLAGS+=	${LIBOSSAUDIO}
+.endif
+
+# prefer libcaca to aalib
+MESON_ARGS+=	-D aalib=disabled
+# requires nasm, but seems to not work on NetBSD/amd64
+MESON_ARGS+=	-D asm=disabled
+MESON_ARGS+=	-D examples=disabled
+# problematic on NetBSD at least
+MESON_ARGS+=	-D oss4=disabled
+MESON_ARGS+=	-D qt5=disabled
+
+TOOL_DEPENDS+=	orc-[0-9]*:../../devel/orc
 
 PKGCONFIG_OVERRIDE=		output/pkgconfig/*.pc
 PKGCONFIG_OVERRIDE_STAGE=	pre-install
@@ -32,19 +51,20 @@ LDFLAGS+=	${LIBOSSAUDIO}
 #
 #105/105 generic_states                         FAIL            40.92s   exit status 2
 
+.include "options.mk"
 .include "../../devel/meson/build.mk"
+.include "../../archivers/bzip2/buildlink3.mk"
 .include "../../audio/flac/buildlink3.mk"
-.include "../../audio/jack/buildlink3.mk"
-.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../audio/lame/buildlink3.mk"
 .include "../../audio/libshout/buildlink3.mk"
-# prefer mpg123 to mp3lame, twolame
 .include "../../audio/mpg123/buildlink3.mk"
 .include "../../audio/speex/buildlink3.mk"
 .include "../../audio/taglib/buildlink3.mk"
+.include "../../audio/twolame/buildlink3.mk"
 .include "../../audio/wavpack/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/cairo-gobject/buildlink3.mk"
 .include "../../graphics/gdk-pixbuf2/buildlink3.mk"
-# prefer libcaca to aalib
 .include "../../graphics/libcaca/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../lang/python/tool.mk"
@@ -58,7 +78,5 @@ LDFLAGS+=	${LIBOSSAUDIO}
 #.include "../../wip/libavc1394/buildlink3.mk"
 #.include "../../wip/libraw1394/buildlink3.mk"
 #.endif
-.include "../../x11/gtk3/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/gst-plugins1-good/PLIST b/gst-plugins1-good/PLIST
index 0729769af6..7d57f08869 100644
--- a/gst-plugins1-good/PLIST
+++ b/gst-plugins1-good/PLIST
@@ -23,14 +23,15 @@ lib/gstreamer-1.0/libgstflxdec.so
 lib/gstreamer-1.0/libgstgdkpixbuf.so
 lib/gstreamer-1.0/libgstgoom.so
 lib/gstreamer-1.0/libgstgoom2k1.so
-lib/gstreamer-1.0/libgstgtk.so
+${PLIST.gtk3}lib/gstreamer-1.0/libgstgtk.so
 lib/gstreamer-1.0/libgsticydemux.so
 lib/gstreamer-1.0/libgstid3demux.so
 lib/gstreamer-1.0/libgstimagefreeze.so
 lib/gstreamer-1.0/libgstinterleave.so
 lib/gstreamer-1.0/libgstisomp4.so
-lib/gstreamer-1.0/libgstjack.so
+${PLIST.jack}lib/gstreamer-1.0/libgstjack.so
 lib/gstreamer-1.0/libgstjpeg.so
+lib/gstreamer-1.0/libgstlame.so
 lib/gstreamer-1.0/libgstlevel.so
 lib/gstreamer-1.0/libgstmatroska.so
 lib/gstreamer-1.0/libgstmonoscope.so
@@ -39,10 +40,9 @@ lib/gstreamer-1.0/libgstmulaw.so
 lib/gstreamer-1.0/libgstmultifile.so
 lib/gstreamer-1.0/libgstmultipart.so
 lib/gstreamer-1.0/libgstnavigationtest.so
-lib/gstreamer-1.0/libgstoss4.so
-lib/gstreamer-1.0/libgstossaudio.so
+${PLIST.oss}lib/gstreamer-1.0/libgstossaudio.so
 lib/gstreamer-1.0/libgstpng.so
-lib/gstreamer-1.0/libgstpulseaudio.so
+${PLIST.pulseaudio}lib/gstreamer-1.0/libgstpulseaudio.so
 lib/gstreamer-1.0/libgstreplaygain.so
 lib/gstreamer-1.0/libgstrtp.so
 lib/gstreamer-1.0/libgstrtpmanager.so
@@ -54,6 +54,7 @@ lib/gstreamer-1.0/libgstsoup.so
 lib/gstreamer-1.0/libgstspectrum.so
 lib/gstreamer-1.0/libgstspeex.so
 lib/gstreamer-1.0/libgsttaglib.so
+lib/gstreamer-1.0/libgsttwolame.so
 lib/gstreamer-1.0/libgstudp.so
 lib/gstreamer-1.0/libgstvideo4linux2.so
 lib/gstreamer-1.0/libgstvideobox.so
@@ -64,7 +65,7 @@ lib/gstreamer-1.0/libgstvpx.so
 lib/gstreamer-1.0/libgstwavenc.so
 lib/gstreamer-1.0/libgstwavpack.so
 lib/gstreamer-1.0/libgstwavparse.so
-lib/gstreamer-1.0/libgstximagesrc.so
+${PLIST.x11}lib/gstreamer-1.0/libgstximagesrc.so
 lib/gstreamer-1.0/libgsty4menc.so
 share/gstreamer-1.0/presets/GstIirEqualizer10Bands.prs
 share/gstreamer-1.0/presets/GstIirEqualizer3Bands.prs
diff --git a/gst-plugins1-good/options.mk b/gst-plugins1-good/options.mk
new file mode 100644
index 0000000000..f5621bba7e
--- /dev/null
+++ b/gst-plugins1-good/options.mk
@@ -0,0 +1,47 @@
+# $NetBSD: options.mk,v 1.9 2019/10/03 20:45:19 nia Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.gst-plugins1-good
+PKG_SUPPORTED_OPTIONS=		gtk3 jack pulseaudio x11
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+PKG_SUGGESTED_OPTIONS=		gtk3 x11
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=	gtk3
+.if !empty(PKG_OPTIONS:Mgtk3)
+.include "../../x11/gtk3/buildlink3.mk"
+PLIST.gtk3=		yes
+.else
+MESON_ARGS+=		-D gtk3=disabled
+.endif
+
+PLIST_VARS+=	jack
+.if !empty(PKG_OPTIONS:Malsa)
+.include "../../audio/jack/buildlink3.mk"
+PLIST.jack=		yes
+.else
+MESON_ARGS+=		-D jack=disabled
+.endif
+
+PLIST_VARS+=	pulseaudio
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+PLIST.pulseaudio=	yes
+.else
+MESON_ARGS+=		-D pulse=disabled
+.endif
+
+PLIST_VARS+=	x11
+.if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+PLIST.x11=		yes
+.else
+MESON_ARGS+=		-D ximagesrc=disabled
+.endif


Home | Main Index | Thread Index | Old Index