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.

102 lines
2.9 KiB

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