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.

235 lines
8.0 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.10.5
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> \
  12. Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=LGPLv2
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION)
  16. PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz
  17. PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/
  18. PKG_HASH:=be053f6ed716eeb517cec148cec637cdce571c6e04d5c21409e2876fb76c7639
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. GST_GOOD_MODULES:=
  24. define Package/gstreamer1-good/Default
  25. CATEGORY:=Multimedia
  26. SECTION:=multimedia
  27. TITLE:=GStreamer
  28. URL:=http://gstreamer.freedesktop.org/
  29. DEPENDS:= +libgstreamer1 +libgst1pbutils $(ICONV_DEPENDS)
  30. endef
  31. define Package/gstreamer1-good/description/Default
  32. GStreamer open source multimedia framework
  33. endef
  34. define Package/gst1-plugins-good
  35. $(call Package/gstreamer1-good/Default)
  36. TITLE+= plugins collection (good)
  37. DEPENDS+= $(GST_DEPENDS)
  38. HIDDEN:=1
  39. endef
  40. define Package/gst1-plugins-good/description
  41. $(call Package/gstreamer1-good/description/Default)
  42. .
  43. This meta package contains only dependencies to the other plugins from
  44. the good plugins collection.
  45. endef
  46. define Package/gstreamer1-plugins-good
  47. $(call Package/gstreamer1-good/Default)
  48. TITLE+= plugins collection (good)
  49. DEPENDS:=+ALL:gst1-plugins-good +gstreamer1-plugins-base
  50. endef
  51. define Package/gstreamer1-plugins-good/config
  52. menu "Select GStreamer good modules"
  53. depends on PACKAGE_gstreamer1-plugins-good
  54. config gst1-plugins-good-all
  55. bool "Include all GStreamer good plugins"
  56. select PACKAGE_gst1-plugins-good
  57. comment "Modules"
  58. $(foreach mod,$(GST_GOOD_MODULES), \
  59. config PACKAGE_gst1-mod-$(mod)
  60. prompt "GStreamer $(mod) module"
  61. )
  62. endmenu
  63. endef
  64. GST_VERSION:=1.0
  65. CONFIGURE_ARGS += \
  66. --disable-debug \
  67. --disable-examples \
  68. \
  69. --disable-aalib \
  70. --disable-annodex \
  71. --disable-bz2 \
  72. --disable-cairo \
  73. --disable-directsound \
  74. --disable-dv1394 \
  75. --disable-esd \
  76. --disable-gconf \
  77. --disable-gconftool \
  78. --disable-gdk_pixbuf \
  79. --disable-hal \
  80. --disable-libcaca \
  81. --disable-libdv \
  82. --disable-osx_audio \
  83. --disable-osx_video \
  84. --disable-pulse \
  85. --disable-qtdemux \
  86. --disable-rtspmanager \
  87. --disable-shout2 \
  88. --disable-sunaudio \
  89. --disable-wavpack \
  90. --disable-x \
  91. --disable-xshm \
  92. --disable-xvideo \
  93. --disable-y4m \
  94. --disable-zlib \
  95. \
  96. --without-libiconv-prefix \
  97. --without-libintl-prefix \
  98. --without-x \
  99. EXTRA_LDFLAGS+= \
  100. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  101. $(if $(ICONV_FULL),-liconv) \
  102. define Package/gst1-plugins-good/install
  103. /bin/true
  104. endef
  105. # 1: short name
  106. # 2: description
  107. # 3: dependencies on other gstreamer libraries (short name)
  108. # 4: dependencies on other gstreamer plugins (short name)
  109. # 5: dependencies on other packages
  110. define GstBuildPlugin
  111. GST_DEPENDS += +gst1-mod-$(1)
  112. GST_GOOD_MODULES+= $(1)
  113. define Package/gst1-mod-$(1)
  114. $(call Package/gstreamer1-good/Default)
  115. TITLE+= $(2) plugin (good)
  116. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  117. HIDDEN:=1
  118. endef
  119. define Package/gst1-mod-$(1)/description
  120. $(call Package/gstreamer1-good/description/Default)
  121. .
  122. This package contains the GStreamer $(2) plugin.
  123. endef
  124. define Package/gst1-mod-$(1)/install
  125. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  126. ( cd $(PKG_INSTALL_DIR); $(CP) \
  127. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  128. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  129. )
  130. endef
  131. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  132. endef
  133. #$(eval $(call GstBuildPlugin,1394,IEEE 1394 support,,,))
  134. $(eval $(call GstBuildPlugin,alaw,alaw codec,audio,,))
  135. $(eval $(call GstBuildPlugin,alpha,alpha support,video,,))
  136. $(eval $(call GstBuildPlugin,alphacolor,alphacolor support,video,,))
  137. $(eval $(call GstBuildPlugin,apetag,apetag support,audio pbutils tag video,,))
  138. $(eval $(call GstBuildPlugin,audiofx,audio effects,audio fft controller,,))
  139. $(eval $(call GstBuildPlugin,audioparsers,audioparsers,audio tag pbutils,,))
  140. $(eval $(call GstBuildPlugin,auparse,auparse,audio tag pbutils,,))
  141. $(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,))
  142. $(eval $(call GstBuildPlugin,avi,avi support,audio riff tag video,,))
  143. $(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,))
  144. $(eval $(call GstBuildPlugin,debug,debugging,,,))
  145. $(eval $(call GstBuildPlugin,deinterlace,deinterlace support,video,,))
  146. $(eval $(call GstBuildPlugin,dtmf,dtmf support,rtp,,))
  147. #$(eval $(call GstBuildPlugin,dv,dv support,audio tag video,,))
  148. $(eval $(call GstBuildPlugin,effectv,effectvsupport,video,,))
  149. $(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,))
  150. $(eval $(call GstBuildPlugin,flac,FLAC codec,audio pbutils tag,,+libflac))
  151. $(eval $(call GstBuildPlugin,flv,flv codec,audio pbutils tag video,,))
  152. $(eval $(call GstBuildPlugin,flxdec,flx codec,,,))
  153. #$(eval $(call GstBuildPlugin,gdkpixbuf,gdkpixbuf support,video,,))
  154. $(eval $(call GstBuildPlugin,goom2k1,goom support,audio video pbutils,,))
  155. $(eval $(call GstBuildPlugin,goom,goom support,audio video pbutils,,))
  156. $(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio tag,,))
  157. $(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,))
  158. $(eval $(call GstBuildPlugin,imagefreeze,imagefreeze support,,,))
  159. $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,))
  160. $(eval $(call GstBuildPlugin,isomp4,isomp4 support,audio pbutils riff rtp tag video,,))
  161. #$(eval $(call GstBuildPlugin,jack,jack support,audio,,))
  162. $(eval $(call GstBuildPlugin,jpeg,jpeg support,video,,+libjpeg))
  163. $(eval $(call GstBuildPlugin,level,audio level,audio,,))
  164. $(eval $(call GstBuildPlugin,matroska,matroska support,audio pbutils riff tag video,,))
  165. $(eval $(call GstBuildPlugin,mulaw,mulaw support,audio,,))
  166. $(eval $(call GstBuildPlugin,multifile,multiple files access,video,,))
  167. $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,))
  168. $(eval $(call GstBuildPlugin,navigationtest,navigationtest support,video,,))
  169. $(eval $(call GstBuildPlugin,oss4audio,OSS 4 audio support,audio tag,,))
  170. $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,))
  171. $(eval $(call GstBuildPlugin,png,png support,video,,+libpng))
  172. #$(eval $(call GstBuildPlugin,pulse,pulse support,audio pbutils tag video,,))
  173. $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,))
  174. $(eval $(call GstBuildPlugin,rtpmanager,RTP manager,audio net rtp tag pbutils video,,))
  175. $(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag pbutils video,,))
  176. $(eval $(call GstBuildPlugin,rtsp,RTSP,net rtp rtsp sdp,,))
  177. $(eval $(call GstBuildPlugin,shapewipe,shapewipe support,video,,))
  178. #$(eval $(call GstBuildPlugin,shout2,shout2 support,,,))
  179. $(eval $(call GstBuildPlugin,smpte,smpte support,video,,))
  180. $(eval $(call GstBuildPlugin,souphttpsrc,soup input,audio tag,,+libsoup))
  181. $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,))
  182. #$(eval $(call GstBuildPlugin,speex,speex support,audio tag,,))
  183. #$(eval $(call GstBuildPlugin,sty4menc,sty4menc support,video,,))
  184. #$(eval $(call GstBuildPlugin,taglib,taglib support,tag,,))
  185. $(eval $(call GstBuildPlugin,udp,UDP,net,,))
  186. $(eval $(call GstBuildPlugin,video4linux2,video4linux2 support,video allocators,,+libv4l))
  187. $(eval $(call GstBuildPlugin,videobox,videobox support,video,,))
  188. $(eval $(call GstBuildPlugin,videocrop,videocrop support,video,,))
  189. $(eval $(call GstBuildPlugin,videofilter,videofilter support,video,,))
  190. $(eval $(call GstBuildPlugin,videomixer,videomixer support,video,,))
  191. $(eval $(call GstBuildPlugin,vpx,vpx support,tag video,,+libvpx))
  192. $(eval $(call GstBuildPlugin,wavenc,Wav encoder,riff,,))
  193. #$(eval $(call GstBuildPlugin,wavpack,Wav packer,audio riff tag,,))
  194. $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,))
  195. #$(eval $(call GstBuildPlugin,ximagesrc,ximagesrc support,video,,))
  196. $(eval $(call BuildPackage,gstreamer1-plugins-good))
  197. $(eval $(call BuildPackage,gst1-plugins-good))