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.

98 lines
2.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=grilo-plugins
  7. PKG_VERSION:=0.3.11
  8. PKG_RELEASE:=3
  9. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  10. PKG_LICENSE:=LGPLv2.1
  11. PKG_LICENSE_FILES:=COPYING
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
  14. PKG_HASH:=dde2e605b1994341c6bf012493e056b406b08571834dea3b3c671d5b8b1dcd73
  15. PKG_INSTALL:=1
  16. PKG_BUILD_DEPENDS:=meson/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include ../../devel/meson/meson.mk
  20. define Package/grilo-plugins/Default
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=grilo-plugins
  24. URL:=https://wiki.gnome.org/Projects/Grilo
  25. endef
  26. define Package/grilo-plugins
  27. $(call Package/grilo-plugins/Default)
  28. MENU:=1
  29. DEPENDS:=+grilo $(ICONV_DEPENDS) $(INTL_DEPENDS)
  30. TITLE:=Plugins for the Grilo framework
  31. endef
  32. define Package/grilo/decription
  33. Grilo is a framework that provides access to different sources of
  34. multimedia content, using a pluggable system. This package contains
  35. plugins to get information from a number of sources.
  36. endef
  37. MESON_ARGS += \
  38. -Denable-filesystem=no \
  39. -Denable-optical-media=no \
  40. -Denable-youtube=no \
  41. -Denable-flickr=no \
  42. -Denable-podcasts=no \
  43. -Denable-bookmarks=no \
  44. -Denable-lua-factory=no \
  45. -Denable-metadata-store=no \
  46. -Denable-vimeo=no \
  47. -Denable-tracker=no \
  48. -Denable-local-metadata=no \
  49. -Denable-chromaprint=no \
  50. -Denable-thetvdb=no \
  51. -Denable-tmdb=no \
  52. -Denable-freebox=no \
  53. --wrap-mode=nodownload
  54. define Package/grilo-plugins/install
  55. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  56. endef
  57. define BuildPlugin
  58. define Package/grilo-plugins-$(1)
  59. $(call Package/grilo-plugins/Default)
  60. DEPENDS:=grilo-plugins
  61. ifneq ($(4),)
  62. DEPENDS+= $(4)
  63. endif
  64. TITLE:=$(2) plugin
  65. endef
  66. define Package/grilo-plugins-$(1)/install
  67. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  68. for p in $(3); do \
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  70. done
  71. endef
  72. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  73. endef
  74. $(eval $(call BuildPackage,grilo-plugins))
  75. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  76. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  77. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  78. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  79. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  80. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  81. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  82. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))