Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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:=libgee
  9. PKG_VERSION:=0.20.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=LGPL-2.1
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_SOURCE_URL:=@GNOME/libgee/0.20/
  16. PKG_HASH:=21308ba3ed77646dda2e724c0e8d5a2f8d101fb05e078975a532d7887223c2bb
  17. PKG_FIXUP:=autoreconf
  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/libgee
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+glib2
  27. TITLE:=libgee
  28. URL:=https://wiki.gnome.org/Libgee
  29. endef
  30. define Package/libgee/decription
  31. Libgee is an utility library providing GObject-based interfaces and classes
  32. endef
  33. CONFIGURE_ARGS += \
  34. --disable-doc
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include/
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/gee-0.8/ \
  39. $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib/
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  43. $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  45. $(INSTALL_DATA) \
  46. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  47. $(1)/usr/lib/pkgconfig/
  48. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
  49. $(INSTALL_DATA) \
  50. $(PKG_INSTALL_DIR)/usr/share/vala/vapi/* \
  51. $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
  52. endef
  53. define Package/libgee/install
  54. $(INSTALL_DIR) $(1)/usr/lib/
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,libgee))