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.

172 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:=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:=6e802c63680ac24b6970a35b3001e5c96e57f1b19814cd3916d52a32d33123b2
  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. TARGET_CFLAGS += -Wno-format-nonliteral
  94. EXTRA_LDFLAGS+= \
  95. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  96. $(if $(ICONV_FULL),-liconv) \
  97. define Package/gst1-plugins-ugly/install
  98. /bin/true
  99. endef
  100. # 1: short name
  101. # 2: description
  102. # 3: dependencies on other gstreamer libraries (short name)
  103. # 4: dependencies on other gstreamer plugins (short name)
  104. # 5: dependencies on other packages
  105. define GstBuildPlugin
  106. GST_DEPENDS += +gst1-mod-$(1)
  107. GST_UGLY_MODULES+= $(1)
  108. define Package/gst1-mod-$(1)
  109. $(call Package/gstreamer1-ugly/Default)
  110. TITLE+= $(2) plugin (ugly)
  111. DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5)
  112. HIDDEN:=1
  113. endef
  114. define Package/gst1-mod-$(1)/description
  115. $(call Package/gstreamer1-ugly/description/Default)
  116. .
  117. This package contains the GStreamer $(2) plugin.
  118. endef
  119. define Package/gst1-mod-$(1)/install
  120. $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
  121. ( cd $(PKG_INSTALL_DIR); $(CP) \
  122. ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
  123. $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
  124. )
  125. endef
  126. $$(eval $$(call BuildPackage,gst1-mod-$(1)))
  127. endef
  128. $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio video riff rtp rtsp sdp tag,,))
  129. $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2))
  130. $(eval $(call BuildPackage,gstreamer1-plugins-ugly))
  131. $(eval $(call BuildPackage,gst1-plugins-ugly))