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.

104 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_DEPENDS:=glib2
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  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. --disable-compile-warnings \
  41. --disable-goa \
  42. --disable-filesystem \
  43. --disable-optical-media \
  44. --disable-youtube \
  45. --disable-flickr \
  46. --disable-podcasts \
  47. --disable-bookmarks \
  48. --disable-lua-factory \
  49. --disable-metadata-store \
  50. --disable-vimeo \
  51. --disable-tracker \
  52. --disable-local-metadata \
  53. --disable-chromaprint \
  54. --disable-thetvdb \
  55. --disable-tmdb \
  56. --disable-freebox
  57. MAKE_FLAGS += \
  58. GLIB_COMPILE_RESOURCES="$(STAGING_DIR_HOSTPKG)/bin/glib-compile-resources"
  59. define Package/grilo-plugins/install
  60. $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
  61. endef
  62. define BuildPlugin
  63. define Package/grilo-plugins-$(1)
  64. $(call Package/grilo-plugins/Default)
  65. DEPENDS:=grilo-plugins
  66. ifneq ($(4),)
  67. DEPENDS+= $(4)
  68. endif
  69. TITLE:=$(2) plugin
  70. endef
  71. define Package/grilo-plugins-$(1)/install
  72. $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
  73. for p in $(3); do \
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
  75. done
  76. endef
  77. $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
  78. endef
  79. $(eval $(call BuildPackage,grilo-plugins))
  80. $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
  81. # This is currently disabled because it won't work with libdmapsharing-4.0.so
  82. #$(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
  83. $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
  84. $(eval $(call BuildPlugin,jamendo,Jamendo sharing,jamendo,,30))
  85. $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
  86. $(eval $(call BuildPlugin,opensubtitles,Open subtitles provider,opensubtitles,,30))
  87. $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
  88. $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))