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.

89 lines
2.4 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.2
  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:=791b89289781272c001545931a8f58f499d14e46e038a9caa82dfe2494301afd
  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.3
  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.3
  57. for p in $(3); do \
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  59. done
  60. endef
  61. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  62. endef
  63. $(eval $(call BuildPackage,grilo-plugins))
  64. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  65. $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  66. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  67. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  68. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  69. $(eval $(call BuildPlugin,opensubtitles,Openi subtitles provider,opensubtitles,,30))
  70. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  71. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))