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.

276 lines
7.8 KiB

  1. #
  2. # Copyright (C) 2011-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-bad
  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-bad-$(PKG_VERSION)
  16. PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz
  17. PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/
  18. PKG_HASH:=22139de35626ada6090bdfa3423b27b7fc15a0198331d25c95e6b12cb1072b05
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. GST_BAD_LIBS:=
  25. GST_BAD_MODULES:=
  26. define Package/gstreamer1-bad/Default
  27. CATEGORY:=Multimedia
  28. SECTION:=multimedia
  29. TITLE:=GStreamer
  30. URL:=http://gstreamer.freedesktop.org/
  31. DEPENDS:= +gst1-plugins-base +libgstreamer1 +libgst1pbutils $(ICONV_DEPENDS)
  32. endef
  33. define Package/gstreamer1-bad/description/Default
  34. GStreamer open source multimedia framework
  35. endef
  36. define Package/gst1-plugins-bad
  37. $(call Package/gstreamer1-bad/Default)
  38. TITLE+= plugins collection (bad)
  39. DEPENDS+= $(GST_DEPENDS)
  40. HIDDEN:=1
  41. endef
  42. define Package/gts1-plugins-bad/description
  43. $(call Package/gstreamer1-bad/description/Default)
  44. .
  45. This meta package contains only dependencies to the other plugins from
  46. the bad plugins collection.
  47. endef
  48. define Package/gstreamer1-plugins-bad
  49. $(call Package/gstreamer1-bad/Default)
  50. TITLE+= plugins collection (bad)
  51. DEPENDS:=+ALL:gst1-plugins-bad +gstreamer1-plugins-base
  52. endef
  53. define Package/gstreamer1-plugins-bad/config
  54. menu "Select GStreamer bad modules and libraries"
  55. depends on PACKAGE_gstreamer1-plugins-bad
  56. config gst1-plugins-bad-all
  57. bool "Include all GStreamer bad plugins"
  58. select PACKAGE_gst1-plugins-bad
  59. comment "Modules"
  60. $(foreach mod,$(GST_BAD_MODULES), \
  61. config PACKAGE_gst1-mod-$(mod)
  62. prompt "GStreamer $(mod) module"
  63. )
  64. comment "Libraries"
  65. $(foreach lib,$(GST_BAD_LIBS), \
  66. config PACKAGE_libgst1$(lib)
  67. prompt "GStreamer $(lib) library"
  68. )
  69. endmenu
  70. endef
  71. GST_VERSION:=1.0
  72. CONFIGURE_ARGS += \
  73. --disable-Bsymbolic \
  74. --disable-debug \
  75. --disable-examples \
  76. --disable-fatal-warnings \
  77. --disable-glib-asserts \
  78. --disable-gobject-cast-checks \
  79. --disable-gtk-doc-html \
  80. --disable-introspection \
  81. --disable-valgrind \
  82. --disable-rpath \
  83. \
  84. --disable-directsound \
  85. --disable-directdraw \
  86. --disable-osx_video \
  87. --disable-quicktime \
  88. --disable-vcd \
  89. --disable-assrender \
  90. --disable-apexsink \
  91. --disable-bz2 \
  92. --disable-dc1394 \
  93. --disable-directfb \
  94. --disable-dts \
  95. --disable-resindvd \
  96. --disable-faac \
  97. --disable-faad \
  98. --disable-flite \
  99. --disable-gsm \
  100. --disable-kate \
  101. --disable-ladspa \
  102. --disable-lv2 \
  103. --disable-modplug \
  104. --disable-mimic \
  105. --disable-libmms \
  106. --disable-mpeg2enc \
  107. --disable-mplex \
  108. --disable-musepack \
  109. --disable-mythtv \
  110. --disable-nas \
  111. --disable-neon \
  112. --disable-ofa \
  113. --disable-rsvg \
  114. --disable-timidity \
  115. --disable-wildmidi \
  116. --disable-sdl \
  117. --disable-sdltest \
  118. --disable-sndfile \
  119. --disable-soundtouch \
  120. --disable-spc \
  121. --disable-gme \
  122. --disable-xvid \
  123. --disable-dvb \
  124. --disable-wininet \
  125. --disable-acm \
  126. --disable-vdpau \
  127. --disable-schro \
  128. --disable-zbar \
  129. --disable-srtp \
  130. \
  131. --without-html-dir \
  132. --without-libiconv-prefix \
  133. --without-libintl-prefix \
  134. --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
  135. --with-pic
  136. define Package/gst1-plugins-bad/install
  137. /bin/true
  138. endef
  139. # 1: short name
  140. # 2: description
  141. # 3: dependencies on other gstreamer libraries (short name)
  142. # 4: dependencies on other packages
  143. define GstBuildLibrary
  144. GST_DEPENDS += +libgst1$(1)
  145. GST_BAD_LIBS+= $(1)
  146. define Package/libgst1$(1)
  147. $(call Package/gstreamer1-bad/Default)
  148. TITLE+= $(2) library (base)
  149. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $(4)
  150. HIDDEN:=1
  151. endef
  152. define Package/libgst1$(1)/description
  153. $(call Package/gstreamer1-bad/description/Default)
  154. .
  155. This package contains the GStreamer $(2) library.
  156. endef
  157. define Package/libgst1$(1)/install
  158. $(INSTALL_DIR) $$(1)/usr/lib
  159. ( cd $(PKG_INSTALL_DIR); $(CP) \
  160. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  161. $$(1)/usr/lib/ \
  162. )
  163. endef
  164. $$(eval $$(call BuildPackage,libgst1$(1)))
  165. endef
  166. $(eval $(call GstBuildLibrary,adaptivedemux,adaptivedemux,app uridownloader,))
  167. $(eval $(call GstBuildLibrary,photography,photography,,))
  168. $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
  169. $(eval $(call GstBuildLibrary,uridownloader,uridownloader,,))
  170. # 1: short name
  171. # 2: description
  172. # 3: dependencies on other gstreamer libraries (short name)
  173. # 4: dependencies on other gstreamer plugins (short name)
  174. # 5: dependencies on other packages
  175. define GstBuildPlugin
  176. GST_DEPENDS += +gst1-mod-$(1)
  177. GST_BAD_MODULES+= $(1)
  178. define Package/gst1-mod-$(1)
  179. $(call Package/gstreamer1-bad/Default)
  180. TITLE+= $(2) plugin (bad)
  181. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  182. HIDDEN:=1
  183. endef
  184. define Package/gst1-mod-$(1)/description
  185. $(call Package/gstreamer1-bad/description/Default)
  186. .
  187. This package contains the GStreamer $(2) plugin.
  188. endef
  189. define Package/gst1-mod-$(1)/install
  190. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  191. ( cd $(PKG_INSTALL_DIR); $(CP) \
  192. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  193. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  194. )
  195. endef
  196. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  197. endef
  198. $(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
  199. $(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
  200. $(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
  201. $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
  202. $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
  203. $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
  204. $(eval $(call GstBuildPlugin,camerabin,camerabin support,basecamerabinsrc photography pbutils app,,))
  205. #$(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
  206. $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
  207. $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
  208. $(eval $(call GstBuildPlugin,fbdevsink,fbdev support,video,,))
  209. $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
  210. $(eval $(call GstBuildPlugin,hls,HLS support,pbutils adaptivedemux,multifile,+libnettle))
  211. $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
  212. $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
  213. $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
  214. $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils,,))
  215. $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
  216. #$(eval $(call GstBuildPlugin,mpegtsdemux,mpegtsdemux support,mpegts pbutils,,))
  217. #$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,video,,))
  218. $(eval $(call GstBuildPlugin,mxf,mxf support,audio video,,))
  219. $(eval $(call GstBuildPlugin,opusparse,OPUS streams library,pbutils,,+libopus))
  220. $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
  221. $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
  222. #$(eval $(call GstBuildPlugin,rawparse,rawparse support,audio video,,))
  223. $(eval $(call GstBuildPlugin,rfbsrc,librfb support,video,,))
  224. $(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
  225. $(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
  226. $(eval $(call GstBuildPlugin,shm,POSIX shared memory source and sink,,,+librt))
  227. $(eval $(call GstBuildPlugin,siren,siren support,audio rtp,,))
  228. $(eval $(call GstBuildPlugin,speed,speed support,audio,,))
  229. $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
  230. #$(eval $(call GstBuildPlugin,srtp,srtp support,rtp,,+libsrtp))
  231. $(eval $(call BuildPackage,gstreamer1-plugins-bad))
  232. $(eval $(call BuildPackage,gst1-plugins-bad))