From 1038f194feffe1405b3878b1f5cd747890204a1a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 5 Nov 2024 03:20:57 +0000 Subject: [PATCH] gst1-plugins-bad: package play and player libraries Create packages for the libgstplay and libgstplayer. Introduce InstallDev to allow using and detecting libraries which are part of the 'bad' set by other packages. Signed-off-by: Daniel Golle --- multimedia/gst1-plugins-bad/Makefile | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile index 08fa7d66a6..a93e8f6aeb 100644 --- a/multimedia/gst1-plugins-bad/Makefile +++ b/multimedia/gst1-plugins-bad/Makefile @@ -264,6 +264,32 @@ MESON_ARGS += \ -Dextra-checks=disabled \ -Ddoc=disabled +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).so* \ + $(1)/usr/lib/ \ + ) + if [ -d $(PKG_INSTALL_DIR)/usr/lib/gstreamer-$(GST_VERSION)/ ]; then \ + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION); \ + ( cd $(PKG_INSTALL_DIR); $(FIND) \ + ./usr/lib/gstreamer-$(GST_VERSION)/ -name libgst*.so -print0 | \ + xargs --null --no-run-if-empty $(CP) \ + --target-directory=$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) \ + fi + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) +endef + define Package/gst1-plugins-bad/install /bin/true endef @@ -303,10 +329,13 @@ endef $(eval $(call GstBuildLibrary,adaptivedemux,adaptivedemux,app uridownloader,)) $(eval $(call GstBuildLibrary,photography,photography,,)) +$(eval $(call GstBuildLibrary,play,play,,)) +$(eval $(call GstBuildLibrary,player,player,play,)) $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,)) $(eval $(call GstBuildLibrary,uridownloader,uridownloader,,)) $(eval $(call GstBuildLibrary,codecparsers,codecparsers,,)) $(eval $(call GstBuildLibrary,mpegts,mpegts,,)) +$(eval $(call GstBuildLibrary,transcoder,transcoder,,)) # 1: short name # 2: description -- 2.30.2