mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +04:00
gst1-plugins-base: build OpenGL library and plugin
Requires packages video feed. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -36,6 +36,7 @@ PKG_CONFIG_DEPENDS:= \
|
|||||||
CONFIG_PACKAGE_gst1-mod-playback \
|
CONFIG_PACKAGE_gst1-mod-playback \
|
||||||
CONFIG_PACKAGE_gst1-mod-gio \
|
CONFIG_PACKAGE_gst1-mod-gio \
|
||||||
CONFIG_PACKAGE_gst1-mod-ogg \
|
CONFIG_PACKAGE_gst1-mod-ogg \
|
||||||
|
CONFIG_PACKAGE_gst1-mod-opengl \
|
||||||
CONFIG_PACKAGE_gst1-mod-opus \
|
CONFIG_PACKAGE_gst1-mod-opus \
|
||||||
CONFIG_PACKAGE_gst1-mod-tcp \
|
CONFIG_PACKAGE_gst1-mod-tcp \
|
||||||
CONFIG_PACKAGE_gst1-mod-theora \
|
CONFIG_PACKAGE_gst1-mod-theora \
|
||||||
@@ -95,16 +96,24 @@ define Package/gstreamer1-plugins-base/config
|
|||||||
comment "Modules"
|
comment "Modules"
|
||||||
|
|
||||||
$(foreach mod,$(GST_BASE_MODULES), \
|
$(foreach mod,$(GST_BASE_MODULES), \
|
||||||
config PACKAGE_gst1-mod-$(mod)
|
config PACKAGE_gst1-mod-$(firstword $(subst :, ,$(mod)))
|
||||||
prompt "GStreamer $(mod) module"
|
prompt "GStreamer $(firstword $(subst :, ,$(mod))) module"
|
||||||
|
$(if $(wordlist 2,$(words $(subst :, ,$(mod))),$(subst :, ,$(mod))),\
|
||||||
|
$(foreach confdep,$(wordlist 2,$(words $(subst :, ,$(mod))),$(subst :, ,$(mod))),\
|
||||||
|
depends on $(confdep)
|
||||||
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
comment "Libraries"
|
comment "Libraries"
|
||||||
|
|
||||||
$(foreach lib,$(GST_BASE_LIBS), \
|
$(foreach lib,$(GST_BASE_LIBS), \
|
||||||
config PACKAGE_libgst1$(lib)
|
config PACKAGE_libgst1$(firstword $(subst :, ,$(lib)))
|
||||||
prompt "GStreamer $(lib) library"
|
prompt "GStreamer $(firstword $(subst :, ,$(lib))) library"
|
||||||
|
$(if $(wordlist 2,$(words $(subst :, ,$(lib))),$(subst :, ,$(lib))),\
|
||||||
|
$(foreach confdep,$(wordlist 2,$(words $(subst :, ,$(lib))),$(subst :, ,$(lib))),\
|
||||||
|
depends on $(confdep)
|
||||||
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -118,7 +127,6 @@ GST_VERSION:=1.0
|
|||||||
|
|
||||||
MESON_ARGS += \
|
MESON_ARGS += \
|
||||||
-Daudioresample_format=int \
|
-Daudioresample_format=int \
|
||||||
-Dgl=disabled \
|
|
||||||
\
|
\
|
||||||
$(call GST_COND_SELECT,adder) \
|
$(call GST_COND_SELECT,adder) \
|
||||||
$(call GST_COND_SELECT,app) \
|
$(call GST_COND_SELECT,app) \
|
||||||
@@ -130,6 +138,7 @@ MESON_ARGS += \
|
|||||||
$(call GST_COND_SELECT,compositor) \
|
$(call GST_COND_SELECT,compositor) \
|
||||||
$(call GST_COND_SELECT,encoding) \
|
$(call GST_COND_SELECT,encoding) \
|
||||||
$(call GST_COND_SELECT,gio) \
|
$(call GST_COND_SELECT,gio) \
|
||||||
|
-Dgl=$(if $(CONFIG_PACKAGE_libgst1gl),en,dis)abled \
|
||||||
$(call GST_COND_SELECT,overlaycomposition) \
|
$(call GST_COND_SELECT,overlaycomposition) \
|
||||||
$(call GST_COND_SELECT,pbtypes) \
|
$(call GST_COND_SELECT,pbtypes) \
|
||||||
$(call GST_COND_SELECT,playback) \
|
$(call GST_COND_SELECT,playback) \
|
||||||
@@ -186,6 +195,14 @@ define Build/InstallDev
|
|||||||
--target-directory=$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
|
--target-directory=$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
|
||||||
) \
|
) \
|
||||||
fi
|
fi
|
||||||
|
if [ -d $(PKG_INSTALL_DIR)/usr/lib/gstreamer-$(GST_VERSION)/include/gst/gl ]; then \
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)/include/gst/gl; \
|
||||||
|
( cd $(PKG_INSTALL_DIR); $(FIND) \
|
||||||
|
./usr/lib/gstreamer-$(GST_VERSION)/include/gst/gl -name *.h -print0 | \
|
||||||
|
xargs --null --no-run-if-empty $(CP) \
|
||||||
|
--target-directory=$(1)/usr/lib/gstreamer-$(GST_VERSION)/include/gst/gl \
|
||||||
|
) \
|
||||||
|
fi
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
( cd $(PKG_INSTALL_DIR); $(CP) \
|
( cd $(PKG_INSTALL_DIR); $(CP) \
|
||||||
./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \
|
./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \
|
||||||
@@ -210,7 +227,7 @@ define GstBuildLibrary
|
|||||||
|
|
||||||
GST_DEPENDS += +libgst1$(1)
|
GST_DEPENDS += +libgst1$(1)
|
||||||
|
|
||||||
GST_BASE_LIBS+= $(1)
|
GST_BASE_LIBS+= $(1)$(if $(5),:$(subst $(space),:,$(5)))
|
||||||
|
|
||||||
define Package/libgst1$(1)
|
define Package/libgst1$(1)
|
||||||
$(call Package/gstreamer1-base/Default)
|
$(call Package/gstreamer1-base/Default)
|
||||||
@@ -240,6 +257,7 @@ $(eval $(call GstBuildLibrary,allocators,allocators,,+libdrm))
|
|||||||
$(eval $(call GstBuildLibrary,app,app,,))
|
$(eval $(call GstBuildLibrary,app,app,,))
|
||||||
$(eval $(call GstBuildLibrary,audio,audio,tag,))
|
$(eval $(call GstBuildLibrary,audio,audio,tag,))
|
||||||
$(eval $(call GstBuildLibrary,fft,FFT,,))
|
$(eval $(call GstBuildLibrary,fft,FFT,,))
|
||||||
|
$(eval $(call GstBuildLibrary,gl,gl,allocators video,+libmesa +libwayland +libgudev,HAVE_MESA))
|
||||||
$(eval $(call GstBuildLibrary,pbutils,utils,audio tag video,))
|
$(eval $(call GstBuildLibrary,pbutils,utils,audio tag video,))
|
||||||
$(eval $(call GstBuildLibrary,riff,RIFF media,audio tag,,))
|
$(eval $(call GstBuildLibrary,riff,RIFF media,audio tag,,))
|
||||||
$(eval $(call GstBuildLibrary,rtp,RTP,,))
|
$(eval $(call GstBuildLibrary,rtp,RTP,,))
|
||||||
@@ -257,7 +275,7 @@ define GstBuildPlugin
|
|||||||
|
|
||||||
GST_DEPENDS += +gst1-mod-$(1)
|
GST_DEPENDS += +gst1-mod-$(1)
|
||||||
|
|
||||||
GST_BASE_MODULES+= $(1)
|
GST_BASE_MODULES+= $(1)$(if $(6),:$(subst $(space),:,$(6)))
|
||||||
|
|
||||||
define Package/gst1-mod-$(1)
|
define Package/gst1-mod-$(1)
|
||||||
$(call Package/gstreamer1-base/Default)
|
$(call Package/gstreamer1-base/Default)
|
||||||
@@ -293,6 +311,7 @@ $(eval $(call GstBuildPlugin,audiotestsrc,audio test,audio tag controller,,))
|
|||||||
$(eval $(call GstBuildPlugin,compositor,video compositor,video,,))
|
$(eval $(call GstBuildPlugin,compositor,video compositor,video,,))
|
||||||
$(eval $(call GstBuildPlugin,encoding,encoding plugin,pbutils video,,))
|
$(eval $(call GstBuildPlugin,encoding,encoding plugin,pbutils video,,))
|
||||||
$(eval $(call GstBuildPlugin,gio,GIO,,,))
|
$(eval $(call GstBuildPlugin,gio,GIO,,,))
|
||||||
|
$(eval $(call GstBuildPlugin,opengl,GL,gl controller,,+libgraphene +libjpeg +libpng,HAVE_MESA))
|
||||||
$(eval $(call GstBuildPlugin,overlaycomposition,overlay composition,video,,))
|
$(eval $(call GstBuildPlugin,overlaycomposition,overlay composition,video,,))
|
||||||
$(eval $(call GstBuildPlugin,pbtypes,pbtypes,video,,))
|
$(eval $(call GstBuildPlugin,pbtypes,pbtypes,video,,))
|
||||||
$(eval $(call GstBuildPlugin,playback,playback,pbutils,,))
|
$(eval $(call GstBuildPlugin,playback,playback,pbutils,,))
|
||||||
|
|||||||
Reference in New Issue
Block a user