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.

92 lines
2.7 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.2.16
  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:=https://download.gnome.org/sources/grilo-plugins/0.2/
  16. PKG_MD5SUM:=62ecaad877b485a950259eef1ef38c18
  17. PKG_BUILD_DEPENDS:=glib2 grilo
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.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. CONFIGURE_ARGS += \
  39. --enable-static \
  40. --without-libiconv-prefix \
  41. --without-libintl-prefix \
  42. --without-x \
  43. define Package/grilo-plugins/install
  44. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.2
  45. endef
  46. define BuildPlugin
  47. define Package/grilo-plugins-$(1)
  48. $(call Package/grilo-plugins/Default)
  49. DEPENDS:=grilo-plugins
  50. ifneq ($(4),)
  51. DEPENDS+= $(4)
  52. endif
  53. TITLE:=$(2) plugin
  54. endef
  55. define Package/grilo-plugins-$(1)/install
  56. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.2
  57. for p in $(3); do \
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.2/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.2; \
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.2/grl-$$$$$$$${p}.xml $$(1)/usr/lib/grilo-0.2; \
  60. done
  61. endef
  62. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  63. endef
  64. $(eval $(call BuildPackage,grilo-plugins))
  65. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  66. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  67. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  68. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  69. $(eval $(call BuildPlugin,lastfm-albumart,Last.FM album art provider,lastfm-albumart,,30))
  70. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  71. $(eval $(call BuildPlugin,metadata-store,Extra metadata store,metadata-store,,30))
  72. $(eval $(call BuildPlugin,opensubtitles,Openi subtitles provider,opensubtitles,,30))
  73. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  74. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))