You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

294 lines
8.3 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gst1-plugins-base
  9. PKG_VERSION:=1.16.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> \
  12. Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=LGPLv2 GPLv2
  14. PKG_LICENSE_FILES:=COPYING.LIB COPYING
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION)
  16. PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz
  17. PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-base
  18. PKG_HASH:=4093aa7b51e28fb24dfd603893fead8d1b7782f088b05ed0f22a21ef176fb5ae
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_PACKAGE_gst1-mod-alsa \
  21. CONFIG_PACKAGE_gst1-mod-app \
  22. CONFIG_PACKAGE_gst1-mod-audioconvert \
  23. CONFIG_PACKAGE_gst1-mod-audiorate \
  24. CONFIG_PACKAGE_gst1-mod-audioresample \
  25. CONFIG_PACKAGE_gst1-mod-audiotestsrc \
  26. CONFIG_PACKAGE_gst1-mod-gio \
  27. CONFIG_PACKAGE_gst1-mod-ogg \
  28. CONFIG_PACKAGE_gst1-mod-tcp \
  29. CONFIG_PACKAGE_gst1-mod-theora \
  30. CONFIG_PACKAGE_gst1-mod-videoconvert \
  31. CONFIG_PACKAGE_gst1-mod-videotestsrc \
  32. CONFIG_PACKAGE_gst1-mod-volume \
  33. CONFIG_PACKAGE_gst1-mod-vorbis \
  34. CONFIG_PACKAGE_libgst1app \
  35. PKG_FIXUP:=autoreconf
  36. PKG_BUILD_PARALLEL:=1
  37. PKG_INSTALL:=1
  38. include $(INCLUDE_DIR)/package.mk
  39. include $(INCLUDE_DIR)/nls.mk
  40. GST_BASE_LIBS:=
  41. GST_BASE_MODULES:=
  42. define Package/gstreamer1-base/Default
  43. CATEGORY:=Multimedia
  44. SECTION:=multimedia
  45. TITLE:=GStreamer
  46. URL:=https://gstreamer.freedesktop.org/
  47. DEPENDS:= +libgstreamer1 $(ICONV_DEPENDS)
  48. endef
  49. define Package/gstreamer1-base/description/Default
  50. GStreamer open source multimedia framework
  51. endef
  52. define Package/gst1-plugins-base
  53. $(call Package/gstreamer1-base/Default)
  54. TITLE+= plugins collection (base)
  55. DEPENDS+= $(GST_DEPENDS)
  56. HIDDEN:=1
  57. endef
  58. define Package/gts1-plugins-base/description
  59. $(call Package/gstreamer1-base/description/Default)
  60. .
  61. This meta package contains only dependencies to the other libraries and
  62. plugins from the base plugins collection.
  63. endef
  64. define Package/gstreamer1-plugins-base
  65. $(call Package/gstreamer1-base/Default)
  66. TITLE+= plugins collection (base)
  67. DEPENDS:=+ALL:gst1-plugins-base +gstreamer1-libs
  68. endef
  69. define Package/gstreamer1-plugins-base/config
  70. menu "Select GStreamer base modules and libraries"
  71. depends on PACKAGE_gstreamer1-plugins-base
  72. config gst1-plugins-base-all
  73. bool "Include all GStreamer base plugins"
  74. select PACKAGE_gst1-plugins-base
  75. comment "Modules"
  76. $(foreach mod,$(GST_BASE_MODULES), \
  77. config PACKAGE_gst1-mod-$(mod)
  78. prompt "GStreamer $(mod) module"
  79. )
  80. comment "Libraries"
  81. $(foreach lib,$(GST_BASE_LIBS), \
  82. config PACKAGE_libgst1$(lib)
  83. prompt "GStreamer $(lib) library"
  84. )
  85. endmenu
  86. endef
  87. GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1))
  88. GST_VERSION:=1.0
  89. CONFIGURE_ARGS += \
  90. --disable-debug \
  91. --disable-examples \
  92. --disable-fatal-warnings \
  93. --disable-glib-asserts \
  94. --disable-gobject-cast-checks \
  95. --disable-gtk-doc-html \
  96. --disable-introspection \
  97. --disable-rpath \
  98. --disable-valgrind \
  99. --without-html-dir \
  100. --with-pic \
  101. \
  102. $(call GST_COND_SELECT,alsa) \
  103. $(call GST_COND_SELECT,app) \
  104. $(call GST_COND_SELECT,audioconvert) \
  105. $(call GST_COND_SELECT,audiorate) \
  106. $(call GST_COND_SELECT,audioresample) \
  107. $(call GST_COND_SELECT,audiotestsrc) \
  108. --disable-cdparanoia \
  109. $(call GST_COND_SELECT,gio) \
  110. --disable-libvisual \
  111. $(call GST_COND_SELECT,ogg) \
  112. --disable-pango \
  113. --disable-subparse \
  114. $(call GST_COND_SELECT,tcp) \
  115. $(call GST_COND_SELECT,theora) \
  116. $(call GST_COND_SELECT,videorate) \
  117. $(call GST_COND_SELECT,videoscale) \
  118. $(call GST_COND_SELECT,videoconvert) \
  119. $(call GST_COND_SELECT,videotestsrc) \
  120. $(call GST_COND_SELECT,volume) \
  121. $(call GST_COND_SELECT,vorbis) \
  122. --disable-x \
  123. --disable-xshm \
  124. --disable-xvideo \
  125. \
  126. --without-libiconv-prefix \
  127. --without-libintl-prefix \
  128. \
  129. --with-audioresample-format=int \
  130. define Build/InstallDev
  131. $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION)
  132. ( cd $(PKG_INSTALL_DIR); $(CP) \
  133. ./usr/include/gstreamer-$(GST_VERSION)/* \
  134. $(1)/usr/include/gstreamer-$(GST_VERSION)/ \
  135. )
  136. $(INSTALL_DIR) $(1)/usr/lib
  137. ( cd $(PKG_INSTALL_DIR); $(CP) \
  138. ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \
  139. $(1)/usr/lib/ \
  140. )
  141. $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
  142. ( cd $(PKG_INSTALL_DIR); $(CP) \
  143. ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \
  144. $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  145. )
  146. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  147. ( cd $(PKG_INSTALL_DIR); $(CP) \
  148. ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \
  149. $(1)/usr/lib/pkgconfig/ \
  150. )
  151. endef
  152. define Package/gst1-plugins-base/install
  153. true
  154. endef
  155. define Package/gstreamer1-plugins-base/install
  156. true
  157. endef
  158. # 1: short name
  159. # 2: description
  160. # 3: dependencies on other gstreamer libraries (short name)
  161. # 4: dependencies on other packages
  162. define GstBuildLibrary
  163. GST_DEPENDS += +libgst1$(1)
  164. GST_BASE_LIBS+= $(1)
  165. define Package/libgst1$(1)
  166. $(call Package/gstreamer1-base/Default)
  167. TITLE+= $(2) library (base)
  168. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $(4)
  169. HIDDEN:=1
  170. endef
  171. define Package/libgst1$(1)/description
  172. $(call Package/gstreamer1-base/description/Default)
  173. .
  174. This package contains the GStreamer $(2) library.
  175. endef
  176. define Package/libgst1$(1)/install
  177. $(INSTALL_DIR) $$(1)/usr/lib
  178. ( cd $(PKG_INSTALL_DIR); $(CP) \
  179. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  180. $$(1)/usr/lib/ \
  181. )
  182. endef
  183. $$(eval $$(call BuildPackage,libgst1$(1)))
  184. endef
  185. $(eval $(call GstBuildLibrary,allocators,allocators,,))
  186. $(eval $(call GstBuildLibrary,app,app,,))
  187. $(eval $(call GstBuildLibrary,audio,audio,tag,))
  188. $(eval $(call GstBuildLibrary,fft,FFT,,))
  189. $(eval $(call GstBuildLibrary,pbutils,utils,audio tag video,))
  190. $(eval $(call GstBuildLibrary,riff,RIFF media,audio tag,,))
  191. $(eval $(call GstBuildLibrary,rtp,RTP,,))
  192. $(eval $(call GstBuildLibrary,rtsp,RTSP,,))
  193. $(eval $(call GstBuildLibrary,sdp,SDP,rtp,))
  194. $(eval $(call GstBuildLibrary,tag,tag support,,))
  195. $(eval $(call GstBuildLibrary,video,video,,))
  196. # 1: short name
  197. # 2: description
  198. # 3: dependencies on other gstreamer libraries (short name)
  199. # 4: dependencies on other gstreamer plugins (short name)
  200. # 5: dependencies on other packages
  201. define GstBuildPlugin
  202. GST_DEPENDS += +gst1-mod-$(1)
  203. GST_BASE_MODULES+= $(1)
  204. define Package/gst1-mod-$(1)
  205. $(call Package/gstreamer1-base/Default)
  206. TITLE+= $(2) plugin (base)
  207. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  208. HIDDEN:=1
  209. endef
  210. define Package/gst1-mod-$(1)/description
  211. $(call Package/gstreamer1-base/description/Default)
  212. .
  213. This package contains the GStreamer $(2) plugin.
  214. endef
  215. define Package/gst1-mod-$(1)/install
  216. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  217. ( cd $(PKG_INSTALL_DIR); $(CP) \
  218. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  219. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  220. )
  221. endef
  222. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  223. endef
  224. $(eval $(call GstBuildPlugin,alsa,ALSA,audio tag,,+alsa-lib))
  225. $(eval $(call GstBuildPlugin,app,app,app,,))
  226. $(eval $(call GstBuildPlugin,audioconvert,audio format conversion,audio,,))
  227. $(eval $(call GstBuildPlugin,audiorate,audio rate adjusting,audio tag,,))
  228. $(eval $(call GstBuildPlugin,audioresample,audio resampling,audio tag,,))
  229. $(eval $(call GstBuildPlugin,audiotestsrc,audio test,audio tag controller,,))
  230. $(eval $(call GstBuildPlugin,playback,media decoder (v2),pbutils,,))
  231. $(eval $(call GstBuildPlugin,gio,GIO,,,))
  232. $(eval $(call GstBuildPlugin,ogg,Ogg,riff tag pbutils video,,+libogg))
  233. $(eval $(call GstBuildPlugin,opus,OPUS plugin library,pbutils video,,+libopus))
  234. $(eval $(call GstBuildPlugin,tcp,TCP,net,,))
  235. $(eval $(call GstBuildPlugin,theora,Theora,tag video,,+libogg +libtheora))
  236. $(eval $(call GstBuildPlugin,typefindfunctions,'typefind' functions,audio pbutils tag video,,))
  237. $(eval $(call GstBuildPlugin,videoconvert,video format conversion,video,,))
  238. $(eval $(call GstBuildPlugin,videorate,Adjusts video frames,video,,))
  239. $(eval $(call GstBuildPlugin,videoscale,Resizes video,video,,))
  240. $(eval $(call GstBuildPlugin,videotestsrc,video test,video,,+liboil))
  241. $(eval $(call GstBuildPlugin,volume,volume,audio controller,,+liboil))
  242. $(eval $(call GstBuildPlugin,vorbis,Vorbis,audio tag,ogg,+libvorbis))
  243. $(eval $(call BuildPackage,gstreamer1-plugins-base))
  244. $(eval $(call BuildPackage,gst1-plugins-base))