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.

284 lines
7.5 KiB

  1. #
  2. # Copyright (C) 2011-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-bad
  9. PKG_VERSION:=1.4.4
  10. PKG_RELEASE:=4
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2 GPLv2
  13. PKG_LICENSE_FILES:=COPYING.LIB COPYING
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION)
  15. PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz
  16. PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/
  17. PKG_MD5SUM:=972c6e22dd2e44fcf0b04b9d810a56be
  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_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:= +libgstreamer1 $(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-alsa \
  82. --disable-assrender \
  83. --disable-amrwb \
  84. --disable-apexsink \
  85. --disable-bz2 \
  86. --disable-cdaudio \
  87. --disable-celt \
  88. --disable-cog \
  89. --disable-dc1394 \
  90. --disable-directfb \
  91. --disable-dirac \
  92. --disable-dts \
  93. --disable-divx \
  94. --disable-resindvd \
  95. --disable-metadata \
  96. --disable-faac \
  97. --disable-faad \
  98. --disable-fbdev \
  99. --disable-flite \
  100. --disable-gsm \
  101. --disable-jack \
  102. --disable-jp2k \
  103. --disable-kate \
  104. --disable-ladspa \
  105. --disable-lv2 \
  106. --disable-modplug \
  107. --disable-mimic \
  108. --disable-libmms \
  109. --disable-mpeg2enc \
  110. --disable-mplex \
  111. --disable-musepack \
  112. --disable-musicbrainz \
  113. --disable-mythtv \
  114. --disable-nas \
  115. --disable-neon \
  116. --disable-ofa \
  117. --disable-rsvg \
  118. --disable-timidity \
  119. --disable-wildmidi \
  120. --disable-sdl \
  121. --disable-sdltest \
  122. --disable-sndfile \
  123. --disable-soundtouch \
  124. --disable-spc \
  125. --disable-gme \
  126. --disable-swfdec \
  127. --disable-theoradec \
  128. --disable-xvid \
  129. --disable-dvb \
  130. --disable-wininet \
  131. --disable-acm \
  132. --disable-vdpau \
  133. --disable-schro \
  134. --disable-zbar \
  135. --disable-vp8 \
  136. --disable-srtp \
  137. \
  138. --without-libiconv-prefix \
  139. --without-libintl-prefix \
  140. --without-x \
  141. TARGET_CFLAGS+= -std=gnu99
  142. EXTRA_LDFLAGS+= \
  143. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  144. $(if $(ICONV_FULL),-liconv) \
  145. define Package/gst1-plugins-bad/install
  146. /bin/true
  147. endef
  148. # 1: short name
  149. # 2: description
  150. # 3: dependencies on other gstreamer libraries (short name)
  151. # 4: dependencies on other packages
  152. define GstBuildLibrary
  153. GST_DEPENDS += +libgst1$(1)
  154. GST_BAD_LIBS+= $(1)
  155. define Package/libgst1$(1)
  156. $(call Package/gstreamer1-bad/Default)
  157. TITLE+= $(2) library (base)
  158. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $(4)
  159. HIDDEN:=1
  160. endef
  161. define Package/libgst1$(1)/description
  162. $(call Package/gstreamer1-bad/description/Default)
  163. .
  164. This package contains the GStreamer $(2) library.
  165. endef
  166. define Package/libgst1$(1)/install
  167. $(INSTALL_DIR) $$(1)/usr/lib
  168. ( cd $(PKG_INSTALL_DIR); $(CP) \
  169. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  170. $$(1)/usr/lib/ \
  171. )
  172. endef
  173. $$(eval $$(call BuildPackage,libgst1$(1)))
  174. endef
  175. $(eval $(call GstBuildLibrary,photography,photography,,))
  176. $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
  177. # 1: short name
  178. # 2: description
  179. # 3: dependencies on other gstreamer libraries (short name)
  180. # 4: dependencies on other gstreamer plugins (short name)
  181. # 5: dependencies on other packages
  182. define GstBuildPlugin
  183. GST_DEPENDS += +gst1-mod-$(1)
  184. GST_BAD_MODULES+= $(1)
  185. define Package/gst1-mod-$(1)
  186. $(call Package/gstreamer1-bad/Default)
  187. TITLE+= $(2) plugin (bad)
  188. DEPENDS+= $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  189. HIDDEN:=1
  190. endef
  191. define Package/gst1-mod-$(1)/description
  192. $(call Package/gstreamer1-bad/description/Default)
  193. .
  194. This package contains the GStreamer $(2) plugin.
  195. endef
  196. define Package/gst1-mod-$(1)/install
  197. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  198. ( cd $(PKG_INSTALL_DIR); $(CP) \
  199. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  200. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  201. )
  202. endef
  203. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  204. endef
  205. $(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
  206. $(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
  207. $(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
  208. $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
  209. $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
  210. $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
  211. $(eval $(call GstBuildPlugin,camerabin2,camerabin support,basecamerabinsrc photography tag pbutils app,,))
  212. $(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
  213. $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
  214. $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
  215. $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
  216. $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
  217. $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
  218. $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
  219. $(eval $(call GstBuildPlugin,liveadder,liveadder support,audio,,))
  220. $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils tag,,))
  221. $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
  222. #$(eval $(call GstBuildPlugin,mpegtsdemux,mpegtsdemux support,mpegts pbutils tag,,))
  223. #$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,video,,))
  224. $(eval $(call GstBuildPlugin,mxf,mxf support,audio video,,))
  225. $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
  226. $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
  227. $(eval $(call GstBuildPlugin,rawparse,rawparse support,audio video,,))
  228. $(eval $(call GstBuildPlugin,rfbsrc,librfb support,video,,))
  229. $(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
  230. $(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
  231. $(eval $(call GstBuildPlugin,siren,siren support,audio rtp,,))
  232. $(eval $(call GstBuildPlugin,speed,speed support,audio,,))
  233. $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
  234. #$(eval $(call GstBuildPlugin,srtp,srtp support,rtp,,+libsrtp))
  235. $(eval $(call BuildPackage,gstreamer1-plugins-bad))
  236. $(eval $(call BuildPackage,gst1-plugins-bad))