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.

287 lines
10 KiB

  1. #
  2. # Copyright (C) 2009-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-good
  9. PKG_VERSION:=1.16.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-good/
  13. PKG_HASH:=40bb3bafda25c0b739c8fc36e48380fccf61c4d3f83747e97ac3f9b0171b1319
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION)
  15. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> \
  16. Ted Hess <thess@kitschensync.net>
  17. PKG_LICENSE:=LGPL-2.1-or-later
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_CPE_ID:=cpe:/a:gstreamer:good_plug-ins
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. include ../../devel/meson/meson.mk
  24. PKG_CONFIG_DEPENDS:= \
  25. CONFIG_PACKAGE_gst1-mod-lame \
  26. CONFIG_PACKAGE_gst1-mod-mpg123
  27. GST_GOOD_MODULES:=
  28. define Package/gstreamer1-good/Default
  29. CATEGORY:=Multimedia
  30. SECTION:=multimedia
  31. TITLE:=GStreamer
  32. URL:=https://gstreamer.freedesktop.org/
  33. DEPENDS:= +libgstreamer1 +libgst1pbutils $(ICONV_DEPENDS)
  34. endef
  35. define Package/gstreamer1-good/description/Default
  36. GStreamer open source multimedia framework
  37. endef
  38. define Package/gst1-plugins-good
  39. $(call Package/gstreamer1-good/Default)
  40. TITLE+= plugins collection (good)
  41. DEPENDS+= $(GST_DEPENDS)
  42. HIDDEN:=1
  43. endef
  44. define Package/gst1-plugins-good/description
  45. $(call Package/gstreamer1-good/description/Default)
  46. .
  47. This meta package contains only dependencies to the other plugins from
  48. the good plugins collection.
  49. endef
  50. define Package/gstreamer1-plugins-good
  51. $(call Package/gstreamer1-good/Default)
  52. TITLE+= plugins collection (good)
  53. DEPENDS:=+ALL:gst1-plugins-good +gstreamer1-plugins-base
  54. endef
  55. define Package/gstreamer1-plugins-good/config
  56. menu "Select GStreamer good modules"
  57. depends on PACKAGE_gstreamer1-plugins-good
  58. config gst1-plugins-good-all
  59. bool "Include all GStreamer good plugins"
  60. select PACKAGE_gst1-plugins-good
  61. comment "Modules"
  62. $(foreach mod,$(GST_GOOD_MODULES), \
  63. config PACKAGE_gst1-mod-$(mod)
  64. prompt "GStreamer $(mod) module"
  65. )
  66. endmenu
  67. endef
  68. GST_COND_SELECT = -D$(1)=$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),en,dis)abled
  69. GST_VERSION:=1.0
  70. MESON_ARGS += \
  71. $(call GST_COND_SELECT,alpha) \
  72. $(call GST_COND_SELECT,apetag) \
  73. $(call GST_COND_SELECT,audiofx) \
  74. $(call GST_COND_SELECT,audioparsers) \
  75. $(call GST_COND_SELECT,auparse) \
  76. $(call GST_COND_SELECT,autodetect) \
  77. $(call GST_COND_SELECT,avi) \
  78. $(call GST_COND_SELECT,cutter) \
  79. -Ddebugutils=$(if $(CONFIG_PACKAGE_gst1-mod-debug),en,dis)abled \
  80. $(call GST_COND_SELECT,deinterlace) \
  81. $(call GST_COND_SELECT,dtmf) \
  82. $(call GST_COND_SELECT,effectv) \
  83. $(call GST_COND_SELECT,equalizer) \
  84. $(call GST_COND_SELECT,flv) \
  85. -Dflx=$(if $(CONFIG_PACKAGE_gst1-mod-flxdec),en,dis)abled \
  86. $(call GST_COND_SELECT,goom) \
  87. $(call GST_COND_SELECT,goom2k1) \
  88. $(call GST_COND_SELECT,icydemux) \
  89. $(call GST_COND_SELECT,id3demux) \
  90. $(call GST_COND_SELECT,imagefreeze) \
  91. $(call GST_COND_SELECT,interleave) \
  92. $(call GST_COND_SELECT,isomp4) \
  93. -Dlaw=$(if $(CONFIG_PACKAGE_gst1-mod-mulaw),en,dis)abled \
  94. $(call GST_COND_SELECT,level) \
  95. $(call GST_COND_SELECT,matroska) \
  96. $(call GST_COND_SELECT,monoscope) \
  97. $(call GST_COND_SELECT,multifile) \
  98. $(call GST_COND_SELECT,multipart) \
  99. $(call GST_COND_SELECT,replaygain) \
  100. $(call GST_COND_SELECT,rtp) \
  101. $(call GST_COND_SELECT,rtpmanager) \
  102. $(call GST_COND_SELECT,rtsp) \
  103. $(call GST_COND_SELECT,shapewipe) \
  104. $(call GST_COND_SELECT,smpte) \
  105. $(call GST_COND_SELECT,spectrum) \
  106. $(call GST_COND_SELECT,udp) \
  107. $(call GST_COND_SELECT,videobox) \
  108. $(call GST_COND_SELECT,videofilter) \
  109. $(call GST_COND_SELECT,videomixer) \
  110. $(call GST_COND_SELECT,wavenc) \
  111. $(call GST_COND_SELECT,wavparse) \
  112. $(call GST_COND_SELECT,y4m) \
  113. \
  114. -Daalib=disabled \
  115. -Dbz2=disabled \
  116. -Dcairo=disabled \
  117. -Ddirectsound=disabled \
  118. -Ddv=disabled \
  119. -Ddv1394=disabled \
  120. $(call GST_COND_SELECT,flac) \
  121. -Dgdk-pixbuf=disabled \
  122. -Dgtk3=disabled \
  123. -Djack=disabled \
  124. $(call GST_COND_SELECT,jpeg) \
  125. $(call GST_COND_SELECT,lame) \
  126. -Dlibcaca=disabled \
  127. $(call GST_COND_SELECT,mpg123) \
  128. -Doss=$(if $(CONFIG_PACKAGE_gst1-mod-ossaudio),en,dis)abled \
  129. $(call GST_COND_SELECT,oss4) \
  130. -Dosxaudio=disabled \
  131. -Dosxvideo=disabled \
  132. $(call GST_COND_SELECT,png) \
  133. -Dpulse=disabled \
  134. -Dqt5=disabled \
  135. $(call GST_COND_SELECT,shout2) \
  136. $(call GST_COND_SELECT,soup) \
  137. $(call GST_COND_SELECT,speex) \
  138. -Dtaglib=disabled \
  139. -Dtwolame=disabled \
  140. $(call GST_COND_SELECT,vpx) \
  141. -Dwaveform=disabled \
  142. -Dwavpack=disabled \
  143. \
  144. -Dximagesrc=disabled \
  145. -Dv4l2=$(if $(CONFIG_PACKAGE_gst1-mod-video4linux2),en,dis)abled \
  146. -Dexamples=disabled \
  147. -Dtests=disabled \
  148. -Dnls=enabled \
  149. -Dorc=disabled \
  150. -Dgobject-cast-checks=disabled \
  151. -Dglib-asserts=disabled \
  152. -Dglib-checks=disabled
  153. define Package/gst1-plugins-good/install
  154. /bin/true
  155. endef
  156. # 1: short name
  157. # 2: description
  158. # 3: dependencies on other gstreamer libraries (short name)
  159. # 4: dependencies on other gstreamer plugins (short name)
  160. # 5: dependencies on other packages
  161. define GstBuildPlugin
  162. GST_DEPENDS += +gst1-mod-$(1)
  163. GST_GOOD_MODULES+= $(1)
  164. define Package/gst1-mod-$(1)
  165. $(call Package/gstreamer1-good/Default)
  166. TITLE+= $(2) plugin (good)
  167. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  168. HIDDEN:=1
  169. endef
  170. define Package/gst1-mod-$(1)/description
  171. $(call Package/gstreamer1-good/description/Default)
  172. .
  173. This package contains the GStreamer $(2) plugin.
  174. endef
  175. define Package/gst1-mod-$(1)/install
  176. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  177. ( cd $(PKG_INSTALL_DIR); $(CP) \
  178. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  179. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  180. )
  181. endef
  182. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  183. endef
  184. #$(eval $(call GstBuildPlugin,1394,IEEE 1394 support,,,))
  185. $(eval $(call GstBuildPlugin,alaw,alaw codec,audio,,))
  186. $(eval $(call GstBuildPlugin,alpha,alpha support,video,,))
  187. $(eval $(call GstBuildPlugin,alphacolor,alphacolor support,video,,))
  188. $(eval $(call GstBuildPlugin,apetag,apetag support,audio pbutils tag video,,))
  189. $(eval $(call GstBuildPlugin,audiofx,audio effects,audio fft controller,,))
  190. $(eval $(call GstBuildPlugin,audioparsers,audioparsers,audio tag pbutils,,))
  191. $(eval $(call GstBuildPlugin,auparse,auparse,audio tag pbutils,,))
  192. $(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,))
  193. $(eval $(call GstBuildPlugin,avi,avi support,audio riff tag video,,))
  194. $(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,))
  195. $(eval $(call GstBuildPlugin,debug,debugging,,,))
  196. $(eval $(call GstBuildPlugin,deinterlace,deinterlace support,video,,))
  197. $(eval $(call GstBuildPlugin,dtmf,dtmf support,rtp,,))
  198. #$(eval $(call GstBuildPlugin,dv,dv support,audio tag video,,))
  199. $(eval $(call GstBuildPlugin,effectv,effectvsupport,video,,))
  200. $(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,))
  201. $(eval $(call GstBuildPlugin,flac,FLAC codec,audio pbutils tag,,+libflac))
  202. $(eval $(call GstBuildPlugin,flv,flv codec,audio pbutils tag video,,))
  203. $(eval $(call GstBuildPlugin,flxdec,flx codec,,,))
  204. #$(eval $(call GstBuildPlugin,gdkpixbuf,gdkpixbuf support,video,,))
  205. $(eval $(call GstBuildPlugin,goom2k1,goom support,audio video pbutils,,))
  206. $(eval $(call GstBuildPlugin,goom,goom support,audio video pbutils,,))
  207. $(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio tag,,))
  208. $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
  209. $(eval $(call GstBuildPlugin,imagefreeze,imagefreeze support,,,))
  210. $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,))
  211. $(eval $(call GstBuildPlugin,isomp4,isomp4 support,audio pbutils riff rtp tag video,,))
  212. #$(eval $(call GstBuildPlugin,jack,jack support,audio,,))
  213. $(eval $(call GstBuildPlugin,jpeg,jpeg support,video,,+libjpeg))
  214. $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib))
  215. $(eval $(call GstBuildPlugin,level,audio level,audio,,))
  216. $(eval $(call GstBuildPlugin,matroska,matroska support,audio pbutils riff tag video,,))
  217. $(eval $(call GstBuildPlugin,mpg123,MP3 decoder (using mpg123),audio tag,,+libid3tag +mpg123))
  218. $(eval $(call GstBuildPlugin,mulaw,mulaw support,audio,,))
  219. $(eval $(call GstBuildPlugin,multifile,multiple files access,video,,))
  220. $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
  221. $(eval $(call GstBuildPlugin,navigationtest,navigationtest support,video,,))
  222. $(eval $(call GstBuildPlugin,oss4,OSS 4 audio support,audio tag,,))
  223. $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
  224. $(eval $(call GstBuildPlugin,png,png support,video,,+libpng))
  225. #$(eval $(call GstBuildPlugin,pulse,pulse support,audio pbutils tag video,,))
  226. $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
  227. $(eval $(call GstBuildPlugin,rtpmanager,RTP manager,audio net rtp tag pbutils video,,))
  228. $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag pbutils video,,))
  229. $(eval $(call GstBuildPlugin,rtsp,RTSP,net rtp rtsp sdp,,))
  230. $(eval $(call GstBuildPlugin,shapewipe,shapewipe support,video,,))
  231. $(eval $(call GstBuildPlugin,shout2,shout2 support,audio,,+libshout))
  232. $(eval $(call GstBuildPlugin,smpte,smpte support,video,,))
  233. $(eval $(call GstBuildPlugin,soup,soup input,audio tag,,+libsoup))
  234. $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
  235. $(eval $(call GstBuildPlugin,speex,speex support,audio tag,,+libspeex))
  236. #$(eval $(call GstBuildPlugin,taglib,taglib support,tag,,))
  237. $(eval $(call GstBuildPlugin,udp,UDP,net,,))
  238. $(eval $(call GstBuildPlugin,video4linux2,video4linux2 support,video allocators,,+libv4l))
  239. $(eval $(call GstBuildPlugin,videobox,videobox support,video,,))
  240. $(eval $(call GstBuildPlugin,videocrop,videocrop support,video,,))
  241. $(eval $(call GstBuildPlugin,videofilter,videofilter support,video,,))
  242. $(eval $(call GstBuildPlugin,videomixer,videomixer support,video,,))
  243. $(eval $(call GstBuildPlugin,vpx,vpx support,tag video,,+libvpx))
  244. $(eval $(call GstBuildPlugin,wavenc,Wav encoder,riff,,))
  245. #$(eval $(call GstBuildPlugin,wavpack,Wav packer,audio riff tag,,))
  246. $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,))
  247. #$(eval $(call GstBuildPlugin,ximagesrc,ximagesrc support,video,,))
  248. #$(eval $(call GstBuildPlugin,y4m,sty4menc support,video,,))
  249. $(eval $(call BuildPackage,gstreamer1-plugins-good))
  250. $(eval $(call BuildPackage,gst1-plugins-good))