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.

99 lines
2.8 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.10
  8. PKG_RELEASE:=1
  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:=803b360fdb6d5fde1e647bdc40c16de3031b1a95b347b48b65fe4fc27a548d4a
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=meson/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include ../../devel/meson/meson.mk
  21. define Package/grilo-plugins/Default
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. TITLE:=grilo-plugins
  25. URL:=https://wiki.gnome.org/Projects/Grilo
  26. endef
  27. define Package/grilo-plugins
  28. $(call Package/grilo-plugins/Default)
  29. MENU:=1
  30. DEPENDS:=+grilo $(ICONV_DEPENDS) $(INTL_DEPENDS)
  31. TITLE:=Plugins for the Grilo framework
  32. endef
  33. define Package/grilo/decription
  34. Grilo is a framework that provides access to different sources of
  35. multimedia content, using a pluggable system. This package contains
  36. plugins to get information from a number of sources.
  37. endef
  38. MESON_ARGS += \
  39. -Denable-filesystem=no \
  40. -Denable-optical-media=no \
  41. -Denable-youtube=no \
  42. -Denable-flickr=no \
  43. -Denable-podcasts=no \
  44. -Denable-bookmarks=no \
  45. -Denable-lua-factory=no \
  46. -Denable-metadata-store=no \
  47. -Denable-vimeo=no \
  48. -Denable-tracker=no \
  49. -Denable-local-metadata=no \
  50. -Denable-chromaprint=no \
  51. -Denable-thetvdb=no \
  52. -Denable-tmdb=no \
  53. -Denable-freebox=no \
  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. # This is currently disabled because it won't work with libdmapsharing-4.0.so
  77. #$(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  78. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  79. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  80. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  81. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  82. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  83. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))