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.

105 lines
3.0 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:=2
  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. MAKE_FLAGS += \
  59. GLIB_COMPILE_RESOURCES="$(STAGING_DIR_HOSTPKG)/bin/glib-compile-resources"
  60. define Package/grilo-plugins/install
  61. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  62. endef
  63. define BuildPlugin
  64. define Package/grilo-plugins-$(1)
  65. $(call Package/grilo-plugins/Default)
  66. DEPENDS:=grilo-plugins
  67. ifneq ($(4),)
  68. DEPENDS+= $(4)
  69. endif
  70. TITLE:=$(2) plugin
  71. endef
  72. define Package/grilo-plugins-$(1)/install
  73. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  74. for p in $(3); do \
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  76. done
  77. endef
  78. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  79. endef
  80. $(eval $(call BuildPackage,grilo-plugins))
  81. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  82. # This is currently disabled because it won't work with libdmapsharing-4.0.so
  83. #$(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  84. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  85. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  86. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  87. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  88. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  89. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))