summaryrefslogtreecommitdiffstats
path: root/lib/libucl
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-03-11 13:06:09 +0000
committerbapt <bapt@FreeBSD.org>2014-03-11 13:06:09 +0000
commitf5e5e1abc374123d2b581f2b35426177552eeb6a (patch)
treeb257b9b6742cb9db068c00d02be3cc1a2b786480 /lib/libucl
parenta8ce2796e7e1065757e29a768cc1ecf19436be4a (diff)
downloadFreeBSD-src-f5e5e1abc374123d2b581f2b35426177552eeb6a.zip
FreeBSD-src-f5e5e1abc374123d2b581f2b35426177552eeb6a.tar.gz
MFC: r262398,r262399,r262410,r262975
Import libucl into head UCL is heavily infused by nginx configuration as the example of a convenient configuration system. However, UCL is fully compatible with JSON format and is able to parse json files. UCL is used by pkg(8) for its configuration file as well for the manifest format in packages, it will be used in base for the pkg boostrap (signature checking and configuration file parsing.) libucl has been developped and is maintained by vsevolod@
Diffstat (limited to 'lib/libucl')
-rw-r--r--lib/libucl/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libucl/Makefile b/lib/libucl/Makefile
new file mode 100644
index 0000000..1bb076d
--- /dev/null
+++ b/lib/libucl/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+LIBUCL= ${.CURDIR}/../../contrib/libucl
+
+LIB= ucl
+PRIVATELIB= true
+SHLIB_MAJOR= 1
+SRCS= ucl_emitter.c \
+ ucl_hash.c \
+ ucl_parser.c \
+ ucl_util.c \
+ xxhash.c
+
+.PATH: ${LIBUCL}/src
+
+WARNS= 1
+CFLAGS+= -I${LIBUCL}/include \
+ -I${LIBUCL}/src \
+ -I${LIBUCL}/uthash
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud