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.

170 lines
4.0 KiB

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