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.

75 lines
1.8 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.1
  10. PKG_RELEASE:=1
  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_MD5SUM:=3b6733633e42143ff90fac1fef34cf42
  17. PKG_BUILD_DEPENDS:=glib2 libsoup libxml2
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. TARGET_LDFLAGS+= \
  22. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  23. define Package/grilo
  24. SECTION:=multimedia
  25. CATEGORY:=Multimedia
  26. TITLE:=grilo
  27. URL:=https://wiki.gnome.org/Projects/Grilo
  28. DEPENDS:=+glib2 +libsoup +libxml2
  29. endef
  30. define Package/grilo/decription
  31. Grilo is a framework that provides access to different sources of
  32. multimedia content, using a pluggable system.
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include/
  36. $(CP) \
  37. $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \
  38. $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib/
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  42. $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  44. $(INSTALL_DATA) \
  45. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  46. $(1)/usr/lib/pkgconfig/
  47. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
  48. # Note: this are compiled elsewhere because grilo refuses to
  49. # generate VAPI files unless gobject-introspection exists;
  50. # OpenWrt does not yet have a gobject-introspection package.
  51. $(INSTALL_DATA) \
  52. ./files/*.vapi \
  53. $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
  54. endef
  55. define Package/grilo/install
  56. $(INSTALL_DIR) $(1)/usr/lib/
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  59. $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,grilo))