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.

142 lines
3.5 KiB

  1. #
  2. # Copyright (C) 2009-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-ugly
  9. PKG_VERSION:=1.2.3
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2
  13. PKG_LICENSE_FILE:=COPYING
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION)
  15. PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz
  16. PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
  17. PKG_MD5SUM:=7ae60e2f759f58f32af5fcdc3c9193c4
  18. PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_PACKAGE_gst1-mod-asf \
  21. CONFIG_PACKAGE_gst1-mod-lame \
  22. CONFIG_PACKAGE_gst1-mod-mad \
  23. CONFIG_PACKAGE_gst1-mod-mpeg2dec \
  24. PKG_FIXUP:=autoreconf
  25. PKG_INSTALL:=1
  26. include $(INCLUDE_DIR)/package.mk
  27. include $(INCLUDE_DIR)/nls.mk
  28. define Package/gstreamer1/Default
  29. CATEGORY:=Multimedia
  30. SECTION:=multimedia
  31. TITLE:=GStreamer
  32. URL:=http://gstreamer.freedesktop.org/
  33. DEPENDS:= $(ICONV_DEPENDS)
  34. endef
  35. define Package/gstreamer1/description/Default
  36. GStreamer open source multimedia framework
  37. endef
  38. define Package/gst1-plugins-ugly
  39. $(call Package/gstreamer1/Default)
  40. TITLE+= plugins collection (ugly)
  41. DEPENDS+= $(GST_DEPENDS)
  42. endef
  43. define Package/gts-plugins-ugly/description
  44. $(call Package/gstreamer1/description/Default)
  45. .
  46. This meta package contains only dependencies to the other plugins from
  47. the ugly plugins collection.
  48. endef
  49. GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1))
  50. GST_VERSION:=1.0
  51. CONFIGURE_ARGS += \
  52. --disable-debug \
  53. --disable-examples \
  54. \
  55. --disable-a52dec \
  56. --disable-amrnb \
  57. --disable-amrwb \
  58. $(call GST_COND_SELECT,asf) \
  59. --disable-cdio \
  60. --disable-dvdlpcmdec \
  61. --disable-dvdread \
  62. --disable-dvdsub \
  63. --disable-iec958 \
  64. $(call GST_COND_SELECT,lame) \
  65. $(call GST_COND_SELECT,mad) \
  66. $(call GST_COND_SELECT,mpeg2dec) \
  67. --disable-mpegaudioparse \
  68. --disable-mpegstream \
  69. --disable-realmedia \
  70. --disable-sidplay \
  71. --disable-synaesthesia \
  72. --disable-twolame \
  73. --disable-x264 \
  74. \
  75. --without-libiconv-prefix \
  76. --without-libintl-prefix \
  77. EXTRA_LDFLAGS+= \
  78. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  79. $(if $(ICONV_FULL),-liconv) \
  80. define Package/gst1-plugins-ugly/install
  81. /bin/true
  82. endef
  83. # 1: short name
  84. # 2: description
  85. # 3: dependencies on other gstreamer libraries (short name)
  86. # 4: dependencies on other gstreamer plugins (short name)
  87. # 5: dependencies on other packages
  88. define GstBuildPlugin
  89. GST_DEPENDS += +gst1-mod-$(1)
  90. define Package/gst1-mod-$(1)
  91. $(call Package/gstreamer1/Default)
  92. TITLE+= $(2) plugin (ugly)
  93. DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  94. endef
  95. define Package/gst1-mod-$(1)/description
  96. $(call Package/gstreamer1/description/Default)
  97. .
  98. This package contains the GStreamer $(2) plugin.
  99. endef
  100. define Package/gst1-mod-$(1)/install
  101. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  102. ( cd $(PKG_INSTALL_DIR); $(CP) \
  103. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  104. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  105. )
  106. endef
  107. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  108. endef
  109. $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,))
  110. $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib))
  111. $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
  112. $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
  113. $(eval $(call BuildPackage,gst1-plugins-ugly))