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.

103 lines
3.0 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.7
  8. PKG_RELEASE:=3
  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:=fc2f3bbc319136e53e1efb6659fa65b6af45db114b6621008f9abba64fad6820
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.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. CONFIGURE_ARGS += \
  38. --enable-static \
  39. --disable-compile-warnings \
  40. --disable-goa \
  41. --disable-filesystem \
  42. --disable-optical-media \
  43. --disable-youtube \
  44. --disable-flickr \
  45. --disable-podcasts \
  46. --disable-bookmarks \
  47. --disable-lua-factory \
  48. --disable-metadata-store \
  49. --disable-vimeo \
  50. --disable-tracker \
  51. --disable-local-metadata \
  52. --disable-chromaprint \
  53. --disable-thetvdb \
  54. --disable-tmdb \
  55. --disable-freebox
  56. MAKE_FLAGS += \
  57. GLIB_COMPILE_RESOURCES="$(STAGING_DIR_HOSTPKG)/bin/glib-compile-resources"
  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. # This is currently disabled because it won't work with libdmapsharing-4.0.so
  81. #$(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  82. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  83. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  84. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  85. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  86. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  87. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))