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.

84 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2009-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=grilo
  9. PKG_VERSION:=0.3.6
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPLv2.1
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_SOURCE_URL:=@GNOME/grilo/0.3/
  16. PKG_HASH:=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91
  17. PKG_BUILD_DEPENDS:=glib2 libsoup libxml2
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. TARGET_LDFLAGS+= \
  23. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  24. define Package/grilo
  25. SECTION:=multimedia
  26. CATEGORY:=Multimedia
  27. TITLE:=grilo
  28. URL:=https://wiki.gnome.org/Projects/Grilo
  29. DEPENDS:=+glib2 +libsoup +libxml2
  30. endef
  31. define Package/grilo/decription
  32. Grilo is a framework that provides access to different sources of
  33. multimedia content, using a pluggable system.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --disable-compile-warnings \
  37. --disable-debug \
  38. --disable-gtk-doc-html \
  39. --disable-introspection \
  40. --disable-test-ui \
  41. --disable-vala
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include/
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \
  46. $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib/
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  50. $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  52. $(INSTALL_DATA) \
  53. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  54. $(1)/usr/lib/pkgconfig/
  55. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
  56. # Note: this are compiled elsewhere because grilo refuses to
  57. # generate VAPI files unless gobject-introspection exists;
  58. # OpenWrt does not yet have a gobject-introspection package.
  59. $(INSTALL_DATA) \
  60. ./files/*.vapi \
  61. $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
  62. endef
  63. define Package/grilo/install
  64. $(INSTALL_DIR) $(1)/usr/lib/
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  67. $(1)/usr/lib/
  68. endef
  69. $(eval $(call BuildPackage,grilo))