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.

278 lines
7.9 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.1
  10. PKG_RELEASE:=2
  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:=56481c95339b8985af13bac19b18bc8da7118c2a7d9440ed70e7dcd799c2adb5
  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. --with-hls-crypto=nettle \
  132. --without-html-dir \
  133. --without-libiconv-prefix \
  134. --without-libintl-prefix \
  135. --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
  136. --with-pic
  137. define Package/gst1-plugins-bad/install
  138. /bin/true
  139. endef
  140. # 1: short name
  141. # 2: description
  142. # 3: dependencies on other gstreamer libraries (short name)
  143. # 4: dependencies on other packages
  144. define GstBuildLibrary
  145. GST_DEPENDS += +libgst1$(1)
  146. GST_BAD_LIBS+= $(1)
  147. define Package/libgst1$(1)
  148. $(call Package/gstreamer1-bad/Default)
  149. TITLE+= $(2) library (base)
  150. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $(4)
  151. HIDDEN:=1
  152. endef
  153. define Package/libgst1$(1)/description
  154. $(call Package/gstreamer1-bad/description/Default)
  155. .
  156. This package contains the GStreamer $(2) library.
  157. endef
  158. define Package/libgst1$(1)/install
  159. $(INSTALL_DIR) $$(1)/usr/lib
  160. ( cd $(PKG_INSTALL_DIR); $(CP) \
  161. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  162. $$(1)/usr/lib/ \
  163. )
  164. endef
  165. $$(eval $$(call BuildPackage,libgst1$(1)))
  166. endef
  167. $(eval $(call GstBuildLibrary,adaptivedemux,adaptivedemux,app uridownloader,))
  168. $(eval $(call GstBuildLibrary,photography,photography,,))
  169. $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
  170. $(eval $(call GstBuildLibrary,uridownloader,uridownloader,,))
  171. # 1: short name
  172. # 2: description
  173. # 3: dependencies on other gstreamer libraries (short name)
  174. # 4: dependencies on other gstreamer plugins (short name)
  175. # 5: dependencies on other packages
  176. define GstBuildPlugin
  177. GST_DEPENDS += +gst1-mod-$(1)
  178. GST_BAD_MODULES+= $(1)
  179. define Package/gst1-mod-$(1)
  180. $(call Package/gstreamer1-bad/Default)
  181. TITLE+= $(2) plugin (bad)
  182. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  183. HIDDEN:=1
  184. endef
  185. define Package/gst1-mod-$(1)/description
  186. $(call Package/gstreamer1-bad/description/Default)
  187. .
  188. This package contains the GStreamer $(2) plugin.
  189. endef
  190. define Package/gst1-mod-$(1)/install
  191. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  192. ( cd $(PKG_INSTALL_DIR); $(CP) \
  193. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  194. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  195. )
  196. endef
  197. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  198. endef
  199. $(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
  200. $(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
  201. $(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
  202. $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
  203. $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
  204. $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
  205. $(eval $(call GstBuildPlugin,camerabin,camerabin support,basecamerabinsrc photography pbutils app,,))
  206. #$(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
  207. $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
  208. $(eval $(call GstBuildPlugin,dtls,DTLS support,,,+libopenssl))
  209. $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
  210. $(eval $(call GstBuildPlugin,fbdevsink,fbdev support,video,,))
  211. $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
  212. $(eval $(call GstBuildPlugin,hls,HLS support,pbutils adaptivedemux,multifile,+libnettle))
  213. $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
  214. $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
  215. $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
  216. $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils,,))
  217. $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
  218. #$(eval $(call GstBuildPlugin,mpegtsdemux,mpegtsdemux support,mpegts pbutils,,))
  219. #$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,video,,))
  220. $(eval $(call GstBuildPlugin,mxf,mxf support,audio video,,))
  221. $(eval $(call GstBuildPlugin,opusparse,OPUS streams library,pbutils,,+libopus))
  222. $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
  223. $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
  224. #$(eval $(call GstBuildPlugin,rawparse,rawparse support,audio video,,))
  225. $(eval $(call GstBuildPlugin,rfbsrc,librfb support,video,,))
  226. $(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
  227. $(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
  228. $(eval $(call GstBuildPlugin,shm,POSIX shared memory source and sink,,,+librt))
  229. $(eval $(call GstBuildPlugin,siren,siren support,audio rtp,,))
  230. $(eval $(call GstBuildPlugin,speed,speed support,audio,,))
  231. $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
  232. #$(eval $(call GstBuildPlugin,srtp,srtp support,rtp,,+libsrtp))
  233. $(eval $(call BuildPackage,gstreamer1-plugins-bad))
  234. $(eval $(call BuildPackage,gst1-plugins-bad))