commit 1c7977bb95a42b7792fb8b7b4a11c0afe4697a01
parent d812a8060b4bdcb058647232a37c2d3a35890384
Author: Shokara Kou <kou@13f0.net>
Date: Sun, 3 Mar 2024 23:28:21 -0500
remove more dependencies from gst-plugins-good
Diffstat:
6 files changed, 72 insertions(+), 182 deletions(-)
diff --git a/multimedia/gstreamer1/plugins-good/Makefile b/multimedia/gstreamer1/plugins-good/Makefile
@@ -1,75 +1,37 @@
-# Reenable that port on non-rust archs at the cost of pulseaudio support:
-# pulseaudio -> [...] -> spidermonkey>=78 -> rust
-ONLY_FOR_ARCHS-pulse= ${RUST_ARCHS}
-
-COMMENT-main= good elements for GStreamer
-COMMENT-pulse= pulseaudio(1) element for GStreamer
+COMMENT= good elements for GStreamer
DISTNAME= gst-plugins-good-${V}
PKGNAME= ${GST_PKGNAME_PREFIX}-plugins-good-${V}
REVISION= 0
-PKGNAME-main= ${PKGNAME}
-PKGNAME-pulse= ${GST_PKGNAME_PREFIX}-plugins-pulse-${V}
-
SITES= ${SITE_GST:=gst-plugins-good/}
WANTLIB += glib-2.0 gobject-2.0 gstaudio-1.0 gstbase-1.0 gstreamer-1.0
WANTLIB += intl
-
-WANTLIB-main += ${WANTLIB}
-WANTLIB-main += ${COMPILER_LIBCXX} FLAC X11 Xdamage Xext Xfixes bz2
-WANTLIB-main += cairo cairo-gobject gdk-3 gdk_pixbuf-2.0 gio-2.0 gmodule-2.0
-WANTLIB-main += gstallocators-1.0 gstfft-1.0 gstgl-1.0 gstnet-1.0 gstpbutils-1.0
-WANTLIB-main += gstriff-1.0 gstrtp-1.0 gstrtsp-1.0 gstsdp-1.0 gsttag-1.0
-WANTLIB-main += gstvideo-1.0 gtk-3 jpeg m mp3lame nettle orc-0.4 png
-WANTLIB-main += shout speex tag twolame v4l2 vpx wavpack xml2 z
-
-WANTLIB-pulse += ${WANTLIB} pulse
-
-MULTI_PACKAGES= -main -pulse
+WANTLIB += ${COMPILER_LIBCXX} X11 Xdamage Xext Xfixes
+WANTLIB += gio-2.0 gmodule-2.0
+WANTLIB += gstallocators-1.0 gstfft-1.0 gstgl-1.0 gstnet-1.0 gstpbutils-1.0
+WANTLIB += gstriff-1.0 gstrtp-1.0 gstrtsp-1.0 gstsdp-1.0 gsttag-1.0
+WANTLIB += gstvideo-1.0 m z
LIB_DEPENDS= ${P}/plugins-base=${V}
-LIB_DEPENDS-main= ${LIB_DEPENDS} \
- archivers/bzip2 \
- audio/flac \
- audio/lame \
- audio/speex \
- audio/taglib \
- audio/twolame \
- audio/wavpack \
- multimedia/libv4l \
- multimedia/libvpx \
- net/libshout \
- x11/gtk+3
-
# dlopen()
-WANTLIB-main += soup-3.0
-BUILD_DEPENDS += devel/libsoup3
-RUN_DEPENDS-main += devel/libsoup3
+#WANTLIB += soup-3.0
+#BUILD_DEPENDS += devel/libsoup3
+#RUN_DEPENDS += devel/libsoup3
+
+DISABLED += adaptivedemux2 aalib bz2 cairo directsound dv dv1394 flac gdk-pixbuf
+DISABLED += gtk3 jack jpeg lame libcaca mpg123 oss oss4 png pulse shout2 speex
+DISABLED += osxaudio osxvideo waveform taglib twolame vpx wavpack rpicamsrc
+DISABLED += ximagesrc soup qt-egl qt-wayland qt-x11 qt5 qt6 v4l2 examples tests
+DISABLED += nls orc
-LIB_DEPENDS-pulse= ${LIB_DEPENDS} \
- audio/pulseaudio
-RUN_DEPENDS-pulse= ${BASE_PKGPATH},-main=${V}
+CONFIGURE_ARGS = -Dhls-crypto=openssl
-CONFIGURE_ARGS= -Daalib=disabled \
- -Ddirectsound=disabled \
- -Ddv=disabled \
- -Ddv1394=disabled \
- -Dwaveform=disabled \
- -Djack=disabled \
- -Dlibcaca=disabled \
- -Dmpg123=disabled \
- -Doss=disabled \
- -Doss4=disabled \
- -Dosxaudio=disabled \
- -Dosxvideo=disabled \
- -Dqt5=disabled \
- -Dqt6=disabled \
- -Dwaveform=disabled \
- -Dv4l2-gudev=disabled \
- -Drpicamsrc=disabled
+.for d in ${DISABLED}
+CONFIGURE_ARGS += -D${d}=disabled
+.endfor
.if ${MACHINE_ARCH} == "amd64"
BUILD_DEPENDS += devel/nasm
@@ -77,9 +39,4 @@ BUILD_DEPENDS += devel/nasm
DEBUG_PACKAGES= ${BUILD_PACKAGES}
-.include <bsd.port.arch.mk>
-.if !${BUILD_PACKAGES:M-pulse}
-CONFIGURE_ARGS += -Dpulse=disabled
-.endif
-
.include <bsd.port.mk>
diff --git a/multimedia/gstreamer1/plugins-good/pkg/DESCR-main b/multimedia/gstreamer1/plugins-good/pkg/DESCR
diff --git a/multimedia/gstreamer1/plugins-good/pkg/DESCR-pulse b/multimedia/gstreamer1/plugins-good/pkg/DESCR-pulse
@@ -1,4 +0,0 @@
-This is GStreamer, a framework for streaming media.
-This package contains the "pulse" element for gstreamer-${API}.
-
-Part of plugins-good.
diff --git a/multimedia/gstreamer1/plugins-good/pkg/PLIST b/multimedia/gstreamer1/plugins-good/pkg/PLIST
@@ -0,0 +1,53 @@
+lib/gstreamer-${API}/
+@so lib/gstreamer-${API}/libgstalaw.so
+@so lib/gstreamer-${API}/libgstalpha.so
+@so lib/gstreamer-${API}/libgstalphacolor.so
+@so lib/gstreamer-${API}/libgstapetag.so
+@so lib/gstreamer-${API}/libgstaudiofx.so
+@so lib/gstreamer-${API}/libgstaudioparsers.so
+@so lib/gstreamer-${API}/libgstauparse.so
+@so lib/gstreamer-${API}/libgstautodetect.so
+@so lib/gstreamer-${API}/libgstavi.so
+@so lib/gstreamer-${API}/libgstcutter.so
+@so lib/gstreamer-${API}/libgstdebug.so
+@so lib/gstreamer-${API}/libgstdeinterlace.so
+@so lib/gstreamer-${API}/libgstdtmf.so
+@so lib/gstreamer-${API}/libgsteffectv.so
+@so lib/gstreamer-${API}/libgstequalizer.so
+@so lib/gstreamer-${API}/libgstflv.so
+@so lib/gstreamer-${API}/libgstflxdec.so
+@so lib/gstreamer-${API}/libgstgoom.so
+@so lib/gstreamer-${API}/libgstgoom2k1.so
+@so lib/gstreamer-${API}/libgsticydemux.so
+@so lib/gstreamer-${API}/libgstid3demux.so
+@so lib/gstreamer-${API}/libgstimagefreeze.so
+@so lib/gstreamer-${API}/libgstinterleave.so
+@so lib/gstreamer-${API}/libgstisomp4.so
+@so lib/gstreamer-${API}/libgstlevel.so
+@so lib/gstreamer-${API}/libgstmatroska.so
+@so lib/gstreamer-${API}/libgstmonoscope.so
+@so lib/gstreamer-${API}/libgstmulaw.so
+@so lib/gstreamer-${API}/libgstmultifile.so
+@so lib/gstreamer-${API}/libgstmultipart.so
+@so lib/gstreamer-${API}/libgstnavigationtest.so
+@so lib/gstreamer-${API}/libgstreplaygain.so
+@so lib/gstreamer-${API}/libgstrtp.so
+@so lib/gstreamer-${API}/libgstrtpmanager.so
+@so lib/gstreamer-${API}/libgstrtsp.so
+@so lib/gstreamer-${API}/libgstshapewipe.so
+@so lib/gstreamer-${API}/libgstsmpte.so
+@so lib/gstreamer-${API}/libgstspectrum.so
+@so lib/gstreamer-${API}/libgstudp.so
+@so lib/gstreamer-${API}/libgstvideobox.so
+@so lib/gstreamer-${API}/libgstvideocrop.so
+@so lib/gstreamer-${API}/libgstvideofilter.so
+@so lib/gstreamer-${API}/libgstvideomixer.so
+@so lib/gstreamer-${API}/libgstwavenc.so
+@so lib/gstreamer-${API}/libgstwavparse.so
+@so lib/gstreamer-${API}/libgstxingmux.so
+@so lib/gstreamer-${API}/libgsty4menc.so
+share/gstreamer-${API}/
+share/gstreamer-${API}/presets/
+share/gstreamer-${API}/presets/GstIirEqualizer10Bands.prs
+share/gstreamer-${API}/presets/GstIirEqualizer3Bands.prs
+share/gstreamer-${API}/presets/GstQTMux.prs
diff --git a/multimedia/gstreamer1/plugins-good/pkg/PLIST-main b/multimedia/gstreamer1/plugins-good/pkg/PLIST-main
@@ -1,115 +0,0 @@
-@conflict gstreamer1-plugins-bad-<1.14.0
-@conflict gstreamer1-plugins-ugly-<1.22.0
-@so lib/gstreamer-${API}/libgstadaptivedemux2.so
-@so lib/gstreamer-${API}/libgstalaw.so
-@so lib/gstreamer-${API}/libgstalpha.so
-@so lib/gstreamer-${API}/libgstalphacolor.so
-@so lib/gstreamer-${API}/libgstapetag.so
-@so lib/gstreamer-${API}/libgstaudiofx.so
-@so lib/gstreamer-${API}/libgstaudioparsers.so
-@so lib/gstreamer-${API}/libgstauparse.so
-@so lib/gstreamer-${API}/libgstautodetect.so
-@so lib/gstreamer-${API}/libgstavi.so
-@so lib/gstreamer-${API}/libgstcairo.so
-@so lib/gstreamer-${API}/libgstcutter.so
-@so lib/gstreamer-${API}/libgstdebug.so
-@so lib/gstreamer-${API}/libgstdeinterlace.so
-@so lib/gstreamer-${API}/libgstdtmf.so
-@so lib/gstreamer-${API}/libgsteffectv.so
-@so lib/gstreamer-${API}/libgstequalizer.so
-@so lib/gstreamer-${API}/libgstflac.so
-@so lib/gstreamer-${API}/libgstflv.so
-@so lib/gstreamer-${API}/libgstflxdec.so
-@so lib/gstreamer-${API}/libgstgdkpixbuf.so
-@so lib/gstreamer-${API}/libgstgoom.so
-@so lib/gstreamer-${API}/libgstgoom2k1.so
-@so lib/gstreamer-${API}/libgstgtk.so
-@so lib/gstreamer-${API}/libgsticydemux.so
-@so lib/gstreamer-${API}/libgstid3demux.so
-@so lib/gstreamer-${API}/libgstimagefreeze.so
-@so lib/gstreamer-${API}/libgstinterleave.so
-@so lib/gstreamer-${API}/libgstisomp4.so
-@so lib/gstreamer-${API}/libgstjpeg.so
-@so lib/gstreamer-${API}/libgstlame.so
-@so lib/gstreamer-${API}/libgstlevel.so
-@so lib/gstreamer-${API}/libgstmatroska.so
-@so lib/gstreamer-${API}/libgstmonoscope.so
-@so lib/gstreamer-${API}/libgstmulaw.so
-@so lib/gstreamer-${API}/libgstmultifile.so
-@so lib/gstreamer-${API}/libgstmultipart.so
-@so lib/gstreamer-${API}/libgstnavigationtest.so
-@so lib/gstreamer-${API}/libgstpng.so
-@so lib/gstreamer-${API}/libgstreplaygain.so
-@so lib/gstreamer-${API}/libgstrtp.so
-@so lib/gstreamer-${API}/libgstrtpmanager.so
-@so lib/gstreamer-${API}/libgstrtsp.so
-@so lib/gstreamer-${API}/libgstshapewipe.so
-@so lib/gstreamer-${API}/libgstshout2.so
-@so lib/gstreamer-${API}/libgstsmpte.so
-@so lib/gstreamer-${API}/libgstsoup.so
-@so lib/gstreamer-${API}/libgstspectrum.so
-@so lib/gstreamer-${API}/libgstspeex.so
-@so lib/gstreamer-${API}/libgsttaglib.so
-@so lib/gstreamer-${API}/libgsttwolame.so
-@so lib/gstreamer-${API}/libgstudp.so
-@so lib/gstreamer-${API}/libgstvideo4linux2.so
-@so lib/gstreamer-${API}/libgstvideobox.so
-@so lib/gstreamer-${API}/libgstvideocrop.so
-@so lib/gstreamer-${API}/libgstvideofilter.so
-@so lib/gstreamer-${API}/libgstvideomixer.so
-@so lib/gstreamer-${API}/libgstvpx.so
-@so lib/gstreamer-${API}/libgstwavenc.so
-@so lib/gstreamer-${API}/libgstwavpack.so
-@so lib/gstreamer-${API}/libgstwavparse.so
-@so lib/gstreamer-${API}/libgstximagesrc.so
-@so lib/gstreamer-${API}/libgstxingmux.so
-@so lib/gstreamer-${API}/libgsty4menc.so
-share/gstreamer-${API}/presets/
-share/gstreamer-${API}/presets/GstIirEqualizer10Bands.prs
-share/gstreamer-${API}/presets/GstIirEqualizer3Bands.prs
-share/gstreamer-${API}/presets/GstQTMux.prs
-share/gstreamer-${API}/presets/GstVP8Enc.prs
-share/locale/af/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/az/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/bg/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ca/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/cs/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/da/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/de/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/el/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/en_GB/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/eo/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/es/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/eu/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/fi/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/fr/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/fur/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/gl/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/hr/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/hu/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/id/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/it/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ja/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ka/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ky/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/lt/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/lv/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/mt/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/nb/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/nl/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/or/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/pl/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/pt_BR/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ro/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/ru/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/sk/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/sl/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/sq/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/sr/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/sv/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/tr/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/uk/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/vi/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/zh_CN/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/zh_HK/LC_MESSAGES/gst-plugins-good-${API}.mo
-share/locale/zh_TW/LC_MESSAGES/gst-plugins-good-${API}.mo
diff --git a/multimedia/gstreamer1/plugins-good/pkg/PLIST-pulse b/multimedia/gstreamer1/plugins-good/pkg/PLIST-pulse
@@ -1 +0,0 @@
-@so lib/gstreamer-${API}/libgstpulseaudio.so