Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2008-2012 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:=libconfig
  9. PKG_VERSION:=1.7.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://hyperrealm.github.io/libconfig/dist/
  13. PKG_HASH:=7c3c7a9c73ff3302084386e96f903eb62ce06953bb1666235fac74363a16fad9
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  17. PKG_LICENSE:=LGPL-2.1+
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libconfig
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Configuration File Library
  23. URL:=http://www.hyperrealm.com/libconfig/
  24. ABI_VERSION:=11
  25. endef
  26. define Package/libconfig/description
  27. Libconfig is a simple library for manipulating structured configuration
  28. files. This file format is more compact and more readable than XML. And
  29. unlike XML, it is type-aware, so it is not necessary to do string
  30. parsing in application code.
  31. Libconfig is very compact -- just 38K for the stripped C shared
  32. library (less than one-fourth the size of the expat XML parser library)
  33. and 66K for the stripped C++ shared library. This makes it well-suited
  34. for memory-constrained systems like handheld devices.
  35. endef
  36. CONFIGURE_ARGS += \
  37. --enable-shared \
  38. --disable-static \
  39. --disable-cxx
  40. define Build/InstallDev
  41. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  42. endef
  43. define Package/libconfig/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libconfig))