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.

107 lines
3.5 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.14
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
  11. PKG_HASH:=686844b34ec73b24931ff6cc4f6033f0072947a6db60acdc7fb3eaf157a581c8
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. include $(INCLUDE_DIR)/meson.mk
  19. define Package/grilo-plugins/Default
  20. SECTION:=multimedia
  21. CATEGORY:=Multimedia
  22. TITLE:=grilo-plugins
  23. URL:=https://wiki.gnome.org/Projects/Grilo
  24. endef
  25. define Package/grilo-plugins
  26. $(call Package/grilo-plugins/Default)
  27. MENU:=1
  28. DEPENDS:=+grilo $(ICONV_DEPENDS) $(INTL_DEPENDS)
  29. TITLE:=Plugins for the Grilo framework
  30. endef
  31. define Package/grilo/decription
  32. Grilo is a framework that provides access to different sources of
  33. multimedia content, using a pluggable system. This package contains
  34. plugins to get information from a number of sources.
  35. endef
  36. MESON_ARGS += \
  37. -Denable-bookmarks=no \
  38. -Denable-chromaprint=$(if $(CONFIG_PACKAGE_grilo-plugins-chromaprint),yes,no) \
  39. -Denable-dleyna=$(if $(CONFIG_PACKAGE_grilo-plugins-dleyna),yes,no) \
  40. -Denable-dmap=$(if $(CONFIG_PACKAGE_grilo-plugins-dmap),yes,no) \
  41. -Denable-filesystem=no \
  42. -Denable-flickr=no \
  43. -Denable-freebox=no \
  44. -Denable-gravatar=$(if $(CONFIG_PACKAGE_grilo-plugins-gravatar),yes,no) \
  45. -Dhelp=no \
  46. -Denable-local-metadata=no \
  47. -Denable-lua-factory=no \
  48. -Denable-magnatune=$(if $(CONFIG_PACKAGE_grilo-plugins-magnatune),yes,no) \
  49. -Denable-metadata-store=$(if $(CONFIG_PACKAGE_grilo-plugins-metadata-store),yes,no) \
  50. -Denable-opensubtitles=$(if $(CONFIG_PACKAGE_grilo-plugins-opensubtitles),yes,no) \
  51. -Denable-optical-media=no \
  52. -Denable-podcasts=no \
  53. -Denable-raitv=$(if $(CONFIG_PACKAGE_grilo-plugins-raitv),yes,no) \
  54. -Denable-shoutcast=$(if $(CONFIG_PACKAGE_grilo-plugins-shoutcast),yes,no) \
  55. -Denable-thetvdb=no \
  56. -Denable-tmdb=$(if $(CONFIG_PACKAGE_grilo-plugins-tmdb),yes,no) \
  57. -Denable-tracker=no \
  58. -Denable-tracker3=no \
  59. -Denable-youtube=no \
  60. --wrap-mode=nodownload
  61. define Package/grilo-plugins/install
  62. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  63. endef
  64. define BuildPlugin
  65. define Package/grilo-plugins-$(1)
  66. $(call Package/grilo-plugins/Default)
  67. DEPENDS:=grilo-plugins
  68. ifneq ($(4),)
  69. DEPENDS+= $(4)
  70. endif
  71. TITLE:=$(2) plugin
  72. endef
  73. define Package/grilo-plugins-$(1)/install
  74. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  75. for p in $(3); do \
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  77. done
  78. endef
  79. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  80. endef
  81. $(eval $(call BuildPackage,grilo-plugins))
  82. $(eval $(call BuildPlugin,chromaprint,Chromaprint,chromaprint,+libgstreamer1,30))
  83. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  84. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  85. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  86. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  87. $(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
  88. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  89. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  90. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
  91. $(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))