jsoncpp-1.8.4 introduced a requirement on C++11 in its installed headers, breaking for eg cmake on non-clang architectures. Instead of forcing consumers to use ports-gcc or ports-clang on those architectures, backport an #ifdef fix from upstream. Reported by at least landry@, upstream fix pointed out by rsadowski@, ok rsadowski@
34 lines
722 B
Makefile
34 lines
722 B
Makefile
# $OpenBSD: Makefile,v 1.26 2018/02/18 20:50:25 jca Exp $
|
|
|
|
COMMENT = JSON parsing C++ API
|
|
|
|
GH_ACCOUNT = open-source-parsers
|
|
GH_PROJECT = jsoncpp
|
|
GH_TAGNAME = 1.8.4
|
|
REVISION = 0
|
|
|
|
# no upstream revision
|
|
SHARED_LIBS = jsoncpp 4.0
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/open-source-parsers/jsoncpp/wiki
|
|
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
|
|
|
# Public Domain / MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB = m ${COMPILER_LIBCXX}
|
|
|
|
MODULES = devel/meson
|
|
|
|
TEST_ENV += LD_PRELOAD=${WRKBUILD}/libjsoncpp.so.${LIBjsoncpp_VERSION}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jsoncpp
|
|
${INSTALL_DATA} ${WRKSRC}/{AUTHORS,LICENSE,README.md} \
|
|
${PREFIX}/share/doc/jsoncpp/
|
|
|
|
.include <bsd.port.mk>
|