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.

110 lines
3.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.12
  8. PKG_RELEASE:=2
  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:=c6b6df086a164d65c206d70139ce80591f8feca3545612e45b823fb4fe4b2577
  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-bookmarks=no \
  39. -Denable-chromaprint=$(if $(CONFIG_PACKAGE_grilo-plugins-chromaprint),yes,no) \
  40. -Denable-dleyna=$(if $(CONFIG_PACKAGE_grilo-plugins-dleyna),yes,no) \
  41. -Denable-dmap=$(if $(CONFIG_PACKAGE_grilo-plugins-dmap),yes,no) \
  42. -Denable-filesystem=no \
  43. -Denable-flickr=no \
  44. -Denable-freebox=no \
  45. -Denable_gravatar=$(if $(CONFIG_PACKAGE_grilo-plugins-gravatar),yes,no) \
  46. -Denable_jamendo=$(if $(CONFIG_PACKAGE_grilo-plugins-jamendo),yes,no) \
  47. -Denable-local-metadata=no \
  48. -Denable-lua-factory=no \
  49. -Denable-magnatune=$(if $(CONFIG_PACKAGE_grilo-plugins-magnatune),yes,no) \
  50. -Denable-metadata-store=$(if $(CONFIG_PACKAGE_grilo-plugins-metadata-store),yes,no) \
  51. -Denable_opensubtitles=$(if $(CONFIG_PACKAGE_grilo-plugins-opensubtitles),yes,no) \
  52. -Denable-optical-media=no \
  53. -Denable-podcasts=no \
  54. -Denable-raitv=$(if $(CONFIG_PACKAGE_grilo-plugins-raitv),yes,no) \
  55. -Denable-shoutcast=$(if $(CONFIG_PACKAGE_grilo-plugins-shoutcast),yes,no) \
  56. -Denable-thetvdb=no \
  57. -Denable-tmdb=$(if $(CONFIG_PACKAGE_grilo-plugins-tmdb),yes,no) \
  58. -Denable-tracker=no \
  59. -Denable-tracker3=no \
  60. -Denable-vimeo=no \
  61. -Denable-youtube=no \
  62. --wrap-mode=nodownload
  63. define Package/grilo-plugins/install
  64. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  65. endef
  66. define BuildPlugin
  67. define Package/grilo-plugins-$(1)
  68. $(call Package/grilo-plugins/Default)
  69. DEPENDS:=grilo-plugins
  70. ifneq ($(4),)
  71. DEPENDS+= $(4)
  72. endif
  73. TITLE:=$(2) plugin
  74. endef
  75. define Package/grilo-plugins-$(1)/install
  76. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  77. for p in $(3); do \
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  79. done
  80. endef
  81. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  82. endef
  83. $(eval $(call BuildPackage,grilo-plugins))
  84. $(eval $(call BuildPlugin,chromaprint,Chromaprint,chromaprint,+libgstreamer1,30))
  85. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  86. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  87. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  88. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  89. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  90. $(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
  91. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  92. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  93. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
  94. $(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))