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.

173 lines
4.1 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.15.2
  10. PKG_RELEASE:=2
  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:=6e802c63680ac24b6970a35b3001e5c96e57f1b19814cd3916d52a32d33123b2
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_PACKAGE_gst1-mod-asf \
  21. CONFIG_PACKAGE_gst1-mod-mpeg2dec \
  22. PKG_FIXUP:=autoreconf
  23. PKG_BUILD_PARALLEL:=1
  24. PKG_INSTALL:=1
  25. include $(INCLUDE_DIR)/package.mk
  26. include $(INCLUDE_DIR)/nls.mk
  27. GST_UGLY_MODULES:=
  28. define Package/gstreamer1-ugly/Default
  29. CATEGORY:=Multimedia
  30. SECTION:=multimedia
  31. TITLE:=GStreamer
  32. URL:=https://gstreamer.freedesktop.org/
  33. DEPENDS:= +libgstreamer1 $(ICONV_DEPENDS)
  34. endef
  35. define Package/gstreamer1-ugly/description/Default
  36. GStreamer open source multimedia framework
  37. endef
  38. define Package/gst1-plugins-ugly
  39. $(call Package/gstreamer1-ugly/Default)
  40. TITLE+= plugins collection (ugly)
  41. DEPENDS+= $(GST_DEPENDS)
  42. HIDDEN:=1
  43. endef
  44. define Package/gts-plugins-ugly/description
  45. $(call Package/gstreamer1-ugly/description/Default)
  46. .
  47. This meta package contains only dependencies to the other plugins from
  48. the ugly plugins collection.
  49. endef
  50. define Package/gstreamer1-plugins-ugly
  51. $(call Package/gstreamer1-ugly/Default)
  52. TITLE+= plugins collection (ugly)
  53. DEPENDS:=+ALL:gst1-plugins-ugly +gstreamer1-plugins-base
  54. endef
  55. define Package/gstreamer1-plugins-ugly/config
  56. menu "Select GStreamer ugly modules"
  57. depends on PACKAGE_gstreamer1-plugins-ugly
  58. config gst1-plugins-ugly-all
  59. bool "Include all GStreamer ugly plugins"
  60. select PACKAGE_gst1-plugins-ugly
  61. comment "Modules"
  62. $(foreach mod,$(GST_UGLY_MODULES), \
  63. config PACKAGE_gst1-mod-$(mod)
  64. prompt "GStreamer $(mod) module"
  65. )
  66. endmenu
  67. endef
  68. GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1))
  69. GST_VERSION:=1.0
  70. CONFIGURE_ARGS += \
  71. --disable-debug \
  72. --disable-examples \
  73. --disable-fatal-warnings \
  74. --disable-glib-asserts \
  75. --disable-gobject-cast-checks \
  76. --disable-gtk-doc-html \
  77. --disable-valgrind \
  78. --disable-rpath \
  79. \
  80. --disable-a52dec \
  81. --disable-amrnb \
  82. --disable-amrwb \
  83. $(call GST_COND_SELECT,asf) \
  84. --disable-cdio \
  85. --disable-dvdlpcmdec \
  86. --disable-dvdread \
  87. --disable-dvdsub \
  88. --disable-iec958 \
  89. $(call GST_COND_SELECT,mpeg2dec) \
  90. --disable-mpegaudioparse \
  91. --disable-mpegstream \
  92. --disable-realmedia \
  93. --disable-sidplay \
  94. --disable-synaesthesia \
  95. --disable-twolame \
  96. --disable-x264 \
  97. \
  98. --without-libiconv-prefix \
  99. --without-libintl-prefix \
  100. --with-pic
  101. define Package/gst1-plugins-ugly/install
  102. /bin/true
  103. endef
  104. # 1: short name
  105. # 2: description
  106. # 3: dependencies on other gstreamer libraries (short name)
  107. # 4: dependencies on other gstreamer plugins (short name)
  108. # 5: dependencies on other packages
  109. define GstBuildPlugin
  110. GST_DEPENDS += +gst1-mod-$(1)
  111. GST_UGLY_MODULES+= $(1)
  112. define Package/gst1-mod-$(1)
  113. $(call Package/gstreamer1-ugly/Default)
  114. TITLE+= $(2) plugin (ugly)
  115. DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  116. HIDDEN:=1
  117. endef
  118. define Package/gst1-mod-$(1)/description
  119. $(call Package/gstreamer1-ugly/description/Default)
  120. .
  121. This package contains the GStreamer $(2) plugin.
  122. endef
  123. define Package/gst1-mod-$(1)/install
  124. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  125. ( cd $(PKG_INSTALL_DIR); $(CP) \
  126. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  127. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  128. )
  129. endef
  130. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  131. endef
  132. $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio video riff rtp rtsp sdp tag,,))
  133. $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
  134. $(eval $(call BuildPackage,gstreamer1-plugins-ugly))
  135. $(eval $(call BuildPackage,gst1-plugins-ugly))