gst1-plugins-bad: package play and player libraries
authorDaniel Golle <daniel@makrotopia.org>
Tue, 5 Nov 2024 03:20:57 +0000 (03:20 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 13 Nov 2024 22:14:18 +0000 (22:14 +0000)
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 <daniel@makrotopia.org>
multimedia/gst1-plugins-bad/Makefile

index 08fa7d66a6abbeef1b5a44f51c66fd027ea1de08..a93e8f6aeb6745c5756f12b10bcea84f819a26ea 100644 (file)
@@ -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