Skip to content

Commit

Permalink
gst1-plugins-bad: package play and player libraries
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dangowrt committed Nov 12, 2024
1 parent 4e62448 commit 84d39c6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions multimedia/gst1-plugins-bad/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84d39c6

Please sign in to comment.