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.10
  8. PKG_RELEASE:=1
  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:=7e44b2e74c31ed24eb97e43265a9e41effe8660287b02295111805c7bda7f1e8
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=meson/host vala/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include ../../devel/meson/meson.mk
  21. define Package/grilo
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. TITLE:=grilo
  25. URL:=https://wiki.gnome.org/Projects/Grilo
  26. DEPENDS:=+glib2 +libsoup +libxml2
  27. endef
  28. define Package/grilo/decription
  29. Grilo is a framework that provides access to different sources of
  30. multimedia content, using a pluggable system.
  31. endef
  32. MESON_ARGS += \
  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))