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.

61 lines
1.6 KiB

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