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
7.9 KiB

  1. #
  2. # Copyright (C) 2009-2014 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.2.3
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2
  13. PKG_LICENSE_FILE:=COPYING
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION)
  15. PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz
  16. PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/
  17. PKG_MD5SUM:=1a1f96bc27ad446e559474299160a9a8
  18. PKG_BUILD_DEPENDS:= libgstreamer1 gstreamer1-plugins-base liboil
  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 $(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-gst_v4l2 \
  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,,,))
  156. $(eval $(call GstBuildPlugin,goom,goom support,,,))
  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,,))
  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,,))
  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))