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.

238 lines
6.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.2.3
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2 GPLv2
  13. PKG_LICENSE_FILE:=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:=cfd6f303c8df2740b27cc63b945decef
  18. PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/gstreamer1/Default
  24. CATEGORY:=Multimedia
  25. SECTION:=multimedia
  26. TITLE:=GStreamer
  27. URL:=http://gstreamer.freedesktop.org/
  28. DEPENDS:= $(ICONV_DEPENDS)
  29. endef
  30. define Package/gstreamer1/description/Default
  31. GStreamer open source multimedia framework
  32. endef
  33. define Package/gst1-plugins-bad
  34. $(call Package/gstreamer1/Default)
  35. TITLE+= plugins collection (bad)
  36. DEPENDS+= $(GST_DEPENDS)
  37. endef
  38. define Package/gts1-plugins-bad/description
  39. $(call Package/gstreamer1/description/Default)
  40. .
  41. This meta package contains only dependencies to the other plugins from
  42. the bad plugins collection.
  43. endef
  44. GST_VERSION:=1.0
  45. CONFIGURE_ARGS += \
  46. --disable-debug \
  47. --disable-examples \
  48. --disable-nls \
  49. \
  50. --disable-directsound \
  51. --disable-directdraw \
  52. --disable-osx_video \
  53. --disable-quicktime \
  54. --disable-vcd \
  55. --disable-alsa \
  56. --disable-assrender \
  57. --disable-amrwb \
  58. --disable-apexsink \
  59. --disable-bz2 \
  60. --disable-cdaudio \
  61. --disable-celt \
  62. --disable-cog \
  63. --disable-dc1394 \
  64. --disable-directfb \
  65. --disable-dirac \
  66. --disable-dts \
  67. --disable-divx \
  68. --disable-resindvd \
  69. --disable-metadata \
  70. --disable-faac \
  71. --disable-faad \
  72. --disable-fbdev \
  73. --disable-flite \
  74. --disable-gsm \
  75. --disable-jack \
  76. --disable-jp2k \
  77. --disable-kate \
  78. --disable-ladspa \
  79. --disable-lv2 \
  80. --disable-modplug \
  81. --disable-mimic \
  82. --disable-libmms \
  83. --disable-mpeg2enc \
  84. --disable-mplex \
  85. --disable-musepack \
  86. --disable-musicbrainz \
  87. --disable-mythtv \
  88. --disable-nas \
  89. --disable-neon \
  90. --disable-ofa \
  91. --disable-rsvg \
  92. --disable-timidity \
  93. --disable-wildmidi \
  94. --disable-sdl \
  95. --disable-sdltest \
  96. --disable-sndfile \
  97. --disable-soundtouch \
  98. --disable-spc \
  99. --disable-gme \
  100. --disable-swfdec \
  101. --disable-theoradec \
  102. --disable-xvid \
  103. --disable-dvb \
  104. --disable-wininet \
  105. --disable-acm \
  106. --disable-vdpau \
  107. --disable-schro \
  108. --disable-zbar \
  109. --disable-vp8 \
  110. \
  111. --without-libiconv-prefix \
  112. --without-libintl-prefix \
  113. --without-x \
  114. TARGET_CFLAGS+= -std=gnu99
  115. EXTRA_LDFLAGS+= \
  116. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  117. $(if $(ICONV_FULL),-liconv) \
  118. define Package/gst1-plugins-ugly/install
  119. /bin/true
  120. endef
  121. # 1: short name
  122. # 2: description
  123. # 3: dependencies on other gstreamer libraries (short name)
  124. # 4: dependencies on other packages
  125. define GstBuildLibrary
  126. GST_DEPENDS += +libgst1$(1)
  127. define Package/libgst1$(1)
  128. $(call Package/gstreamer1/Default)
  129. TITLE+= $(2) library (base)
  130. DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4)
  131. endef
  132. define Package/libgst1$(1)/description
  133. $(call Package/gstreamer1/description/Default)
  134. .
  135. This package contains the GStreamer $(2) library.
  136. endef
  137. define Package/libgst1$(1)/install
  138. $(INSTALL_DIR) $$(1)/usr/lib
  139. ( cd $(PKG_INSTALL_DIR); $(CP) \
  140. ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
  141. $$(1)/usr/lib/ \
  142. )
  143. endef
  144. $$(eval $$(call BuildPackage,libgst1$(1)))
  145. endef
  146. $(eval $(call GstBuildLibrary,photography,photography,,))
  147. $(eval $(call GstBuildLibrary,basecamerabinsrc,basecamerabinsrc,app,))
  148. # 1: short name
  149. # 2: description
  150. # 3: dependencies on other gstreamer libraries (short name)
  151. # 4: dependencies on other gstreamer plugins (short name)
  152. # 5: dependencies on other packages
  153. define GstBuildPlugin
  154. GST_DEPENDS += +gst1-mod-$(1)
  155. define Package/gst1-mod-$(1)
  156. $(call Package/gstreamer1/Default)
  157. TITLE+= $(2) plugin (bad)
  158. DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  159. endef
  160. define Package/gst1-mod-$(1)/description
  161. $(call Package/gstreamer1/description/Default)
  162. .
  163. This package contains the GStreamer $(2) plugin.
  164. endef
  165. define Package/gst1-mod-$(1)/install
  166. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  167. ( cd $(PKG_INSTALL_DIR); $(CP) \
  168. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  169. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  170. )
  171. endef
  172. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  173. endef
  174. $(eval $(call GstBuildPlugin,adpcmdec,adpcm decoding support,audio,,))
  175. $(eval $(call GstBuildPlugin,adpcmenc,adpcm encoding support,audio,,))
  176. $(eval $(call GstBuildPlugin,aiff,aiff support,audio tag,,))
  177. $(eval $(call GstBuildPlugin,asfmux,asf muxing support,rtp,,))
  178. $(eval $(call GstBuildPlugin,autoconvert,autoconvert support,,,))
  179. $(eval $(call GstBuildPlugin,bayer,bayer support,video,,))
  180. $(eval $(call GstBuildPlugin,camerabin2,camerabin support,basecamerabinsrc photography tag pbutils app,,))
  181. $(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
  182. $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
  183. $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
  184. $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
  185. $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
  186. $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
  187. $(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,))
  188. $(eval $(call GstBuildPlugin,liveadder,liveadder support,audio,,))
  189. $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils tag,,))
  190. $(eval $(call GstBuildPlugin,mpegpsmux,mpegpsmux support,,,))
  191. #$(eval $(call GstBuildPlugin,mpegtsdemux,mpegtsdemux support,mpegts pbutils tag,,))
  192. #$(eval $(call GstBuildPlugin,mpegtsmux,mpegtsmux support,video,,))
  193. $(eval $(call GstBuildPlugin,mxf,mxf support,audio video,,))
  194. $(eval $(call GstBuildPlugin,pcapparse,pcapparse support,,,))
  195. $(eval $(call GstBuildPlugin,pnm,pnm support,video,,))
  196. $(eval $(call GstBuildPlugin,rawparse,rawparse support,audio video,,))
  197. $(eval $(call GstBuildPlugin,rfbsrc,librfb support,video,,))
  198. $(eval $(call GstBuildPlugin,sdpelem,sdp support,rtp sdp,,))
  199. $(eval $(call GstBuildPlugin,segmentclip,segmentclip support,audio,,))
  200. $(eval $(call GstBuildPlugin,siren,siren support,audio rtp,,))
  201. $(eval $(call GstBuildPlugin,speed,speed support,audio,,))
  202. $(eval $(call GstBuildPlugin,subenc,subenc support,controller,,))
  203. $(eval $(call BuildPackage,gst1-plugins-bad))