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.

78 lines
2.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
  7. PKG_VERSION:=0.3.6
  8. PKG_RELEASE:=4
  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/0.3/
  14. PKG_HASH:=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=vala/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/grilo
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=grilo
  24. URL:=https://wiki.gnome.org/Projects/Grilo
  25. DEPENDS:=+glib2 +libsoup +libxml2
  26. endef
  27. define Package/grilo/decription
  28. Grilo is a framework that provides access to different sources of
  29. multimedia content, using a pluggable system.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --disable-compile-warnings \
  33. --disable-debug \
  34. --disable-gtk-doc-html \
  35. --disable-introspection \
  36. --disable-test-ui \
  37. --disable-vala
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \
  42. $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib/
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  48. $(INSTALL_DATA) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi/
  52. # Note: this are compiled elsewhere because grilo refuses to
  53. # generate VAPI files unless gobject-introspection exists;
  54. # OpenWrt does not yet have a gobject-introspection package.
  55. $(INSTALL_DATA) \
  56. ./files/*.vapi \
  57. $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi
  58. endef
  59. define Package/grilo/install
  60. $(INSTALL_DIR) $(1)/usr/lib/
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  63. $(1)/usr/lib/
  64. endef
  65. $(eval $(call BuildPackage,grilo))