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.

108 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.13
  8. PKG_RELEASE:=$(AUTORELEASE)
  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:=1c4305d67364a930543836cc1982f30e946973b8ff6af3efe31d87709ab520f8
  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-vimeo=no \
  60. -Denable-youtube=no \
  61. --wrap-mode=nodownload
  62. define Package/grilo-plugins/install
  63. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  64. endef
  65. define BuildPlugin
  66. define Package/grilo-plugins-$(1)
  67. $(call Package/grilo-plugins/Default)
  68. DEPENDS:=grilo-plugins
  69. ifneq ($(4),)
  70. DEPENDS+= $(4)
  71. endif
  72. TITLE:=$(2) plugin
  73. endef
  74. define Package/grilo-plugins-$(1)/install
  75. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  76. for p in $(3); do \
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  78. done
  79. endef
  80. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  81. endef
  82. $(eval $(call BuildPackage,grilo-plugins))
  83. $(eval $(call BuildPlugin,chromaprint,Chromaprint,chromaprint,+libgstreamer1,30))
  84. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  85. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  86. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  87. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  88. $(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
  89. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  90. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  91. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
  92. $(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))