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.

277 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.10.5
  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:=c5806040bb83b43be86ce592e6a19c5d83d7776f7d9f434eb4b911c4efff3573
  19. PKG_BUILD_DEPENDS:= libgstreamer1 gst1-plugins-base libgst1basecamerabinsrc libgst1photography libgst1adaptivedemux libgst1uridownloader libgst1badbase
  20. PKG_FIXUP:=autoreconf
  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-debug \
  74. --disable-examples \
  75. --disable-nls \
  76. \
  77. --disable-directsound \
  78. --disable-directdraw \
  79. --disable-osx_video \
  80. --disable-quicktime \
  81. --disable-vcd \
  82. --disable-assrender \
  83. --disable-apexsink \
  84. --disable-bz2 \
  85. --disable-dc1394 \
  86. --disable-directfb \
  87. --disable-dts \
  88. --disable-resindvd \
  89. --disable-faac \
  90. --disable-faad \
  91. --disable-flite \
  92. --disable-gsm \
  93. --disable-kate \
  94. --disable-ladspa \
  95. --disable-lv2 \
  96. --disable-modplug \
  97. --disable-mimic \
  98. --disable-libmms \
  99. --disable-mpeg2enc \
  100. --disable-mplex \
  101. --disable-musepack \
  102. --disable-mythtv \
  103. --disable-nas \
  104. --disable-neon \
  105. --disable-ofa \
  106. --disable-rsvg \
  107. --disable-timidity \
  108. --disable-wildmidi \
  109. --disable-sdl \
  110. --disable-sdltest \
  111. --disable-sndfile \
  112. --disable-soundtouch \
  113. --disable-spc \
  114. --disable-gme \
  115. --disable-xvid \
  116. --disable-dvb \
  117. --disable-wininet \
  118. --disable-acm \
  119. --disable-vdpau \
  120. --disable-schro \
  121. --disable-zbar \
  122. --disable-srtp \
  123. \
  124. --without-libiconv-prefix \
  125. --without-libintl-prefix \
  126. --with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
  127. --without-x \
  128. TARGET_CFLAGS+= -std=gnu99
  129. EXTRA_LDFLAGS+= \
  130. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  131. $(if $(ICONV_FULL),-liconv) \
  132. define Package/gst1-plugins-bad/install
  133. /bin/true
  134. endef
  135. # 1: short name
  136. # 2: description
  137. # 3: dependencies on other gstreamer libraries (short name)
  138. # 4: dependencies on other packages
  139. define GstBuildLibrary
  140. GST_DEPENDS += +libgst1$(1)
  141. GST_BAD_LIBS+= $(1)
  142. define Package/libgst1$(1)
  143. $(call Package/gstreamer1-bad/Default)
  144. TITLE+= $(2) library (base)
  145. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $(4)
  146. HIDDEN:=1
  147. endef
  148. define Package/libgst1$(1)/description
  149. $(call Package/gstreamer1-bad/description/Default)
  150. .
  151. This package contains the GStreamer $(2) library.
  152. endef
  153. define Package/libgst1$(1)/install
  154. $(INSTALL_DIR) $$(1)/usr/lib
  155. ( cd $(PKG_INSTALL_DIR); $(CP) \
  156. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  157. $$(1)/usr/lib/ \
  158. )
  159. endef
  160. $$(eval $$(call BuildPackage,libgst1$(1)))
  161. endef
  162. $(eval $(call GstBuildLibrary,adaptivedemux,adaptivedemux,app uridownloader,))
  163. $(eval $(call GstBuildLibrary,photography,photography,,))
  164. $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
  165. $(eval $(call GstBuildLibrary,uridownloader,uridownloader,,))
  166. $(eval $(call GstBuildLibrary,badbase,badbase,,))
  167. # 1: short name
  168. # 2: description
  169. # 3: dependencies on other gstreamer libraries (short name)
  170. # 4: dependencies on other gstreamer plugins (short name)
  171. # 5: dependencies on other packages
  172. define GstBuildPlugin
  173. GST_DEPENDS += +gst1-mod-$(1)
  174. GST_BAD_MODULES+= $(1)
  175. define Package/gst1-mod-$(1)
  176. $(call Package/gstreamer1-bad/Default)
  177. TITLE+= $(2) plugin (bad)
  178. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  179. HIDDEN:=1
  180. endef
  181. define Package/gst1-mod-$(1)/description
  182. $(call Package/gstreamer1-bad/description/Default)
  183. .
  184. This package contains the GStreamer $(2) plugin.
  185. endef
  186. define Package/gst1-mod-$(1)/install
  187. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  188. ( cd $(PKG_INSTALL_DIR); $(CP) \
  189. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  190. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  191. )
  192. endef
  193. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  194. endef
  195. $(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
  196. $(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
  197. $(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
  198. $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
  199. $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
  200. $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
  201. $(eval $(call GstBuildPlugin,camerabin2,camerabin support,basecamerabinsrc photography pbutils app,,))
  202. $(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
  203. $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
  204. $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
  205. $(eval $(call GstBuildPlugin,fbdevsink,fbdev support,video,,))
  206. $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
  207. $(eval $(call GstBuildPlugin,hls,HLS support,pbutils adaptivedemux,multifile,+libnettle))
  208. $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
  209. $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
  210. $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
  211. $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils,,))
  212. $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
  213. #$(eval $(call GstBuildPlugin,mpegtsdemux,mpegtsdemux support,mpegts pbutils,,))
  214. #$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,video,,))
  215. $(eval $(call GstBuildPlugin,mxf,mxf support,badbase audio video,,))
  216. $(eval $(call GstBuildPlugin,opusparse,OPUS streams library,pbutils,,+libopus))
  217. $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
  218. $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
  219. $(eval $(call GstBuildPlugin,rawparse,rawparse support,audio video,,))
  220. $(eval $(call GstBuildPlugin,rfbsrc,librfb support,video,,))
  221. $(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
  222. $(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
  223. $(eval $(call GstBuildPlugin,shm,POSIX shared memory source and sink,,,+librt))
  224. $(eval $(call GstBuildPlugin,siren,siren support,audio rtp,,))
  225. $(eval $(call GstBuildPlugin,speed,speed support,audio,,))
  226. $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
  227. #$(eval $(call GstBuildPlugin,srtp,srtp support,rtp,,+libsrtp))
  228. $(eval $(call BuildPackage,gstreamer1-plugins-bad))
  229. $(eval $(call BuildPackage,gst1-plugins-bad))