diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-03 07:35:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 07:35:06 -0700 |
commit | 5d300938682a689ca3aa086767c61f64502248a3 (patch) | |
tree | 29fcbd069d95525d1c744818b2b95f43ca4d415f /libs | |
parent | ce21a8b488655e88b883a388f3be70f90b9eae17 (diff) | |
parent | af9bc693a8c0f258a3c59a3aead74db3ee43b964 (diff) |
Merge pull request #12255 from neheb/libconfig
libconfig: import from base
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libconfig/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libs/libconfig/Makefile b/libs/libconfig/Makefile new file mode 100644 index 000000000..fe7c5f573 --- /dev/null +++ b/libs/libconfig/Makefile @@ -0,0 +1,61 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libconfig +PKG_VERSION:=1.7.2 +PKG_RELEASE:=3 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://hyperrealm.github.io/libconfig/dist/ +PKG_HASH:=7c3c7a9c73ff3302084386e96f903eb62ce06953bb1666235fac74363a16fad9 + +PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> +PKG_LICENSE:=LGPL-2.1-or-later +PKG_LICENSE_FILES:=COPYING.LIB + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libconfig + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Configuration File Library + URL:=https://hyperrealm.github.io/libconfig/ + ABI_VERSION:=11 +endef + +define Package/libconfig/description + Libconfig is a simple library for manipulating structured configuration + files. This file format is more compact and more readable than XML. And + unlike XML, it is type-aware, so it is not necessary to do string + parsing in application code. + + Libconfig is very compact -- just 38K for the stripped C shared + library (less than one-fourth the size of the expat XML parser library) + and 66K for the stripped C++ shared library. This makes it well-suited + for memory-constrained systems like handheld devices. +endef + +CONFIGURE_ARGS += \ + --enable-shared \ + --disable-static \ + --disable-cxx + +define Build/InstallDev + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +define Package/libconfig/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libconfig)) |