forked from Lainports/freebsd-ports
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format. Main features: - Complete RFC conformance - Robust C99 implementation - Layered architecture offers both control and convenience - Flexible memory management - No shared global state - threading friendly - Proper handling of UTF-8 - Full support for streams & incremental processing - Extensive documentation and test suite - No runtime dependencies, small footprint WWW: http://libcbor.org/
28 lines
596 B
Makefile
28 lines
596 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libcbor
|
|
PORTVERSION= 0.5.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= CBOR protocol implementation for C and others
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
LIB_DEPENDS= libcjson.so:devel/libcjson
|
|
|
|
USES= cmake
|
|
|
|
CMAKE_OFF= CBOR_CUSTOM_ALLOC COVERAGE HUGE_FUZZ PRINT_FUZZ SANE_MALLOC WITH_TESTS
|
|
CMAKE_ON= CBOR_PRETTY_PRINTER
|
|
|
|
GH_ACCOUNT= PJK
|
|
USE_GITHUB= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-flto||; /subdirs(examples)/d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|