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.

77 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.13
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@GNOME/grilo/0.3/
  11. PKG_HASH:=d14837f22341943ed8a189d9f0827a17016b802d18d0ed080e1413de0fdc927b
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. PKG_BUILD_DEPENDS:=vala/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include ../../devel/meson/meson.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. MESON_ARGS += \
  32. -Denable-grl-net=true \
  33. -Denable-grl-pls=false \
  34. -Denable-gtk-doc=false \
  35. -Denable-introspection=false \
  36. -Denable-test-ui=false \
  37. -Denable-vala=false
  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))