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.

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