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.

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