openbsd-ports/devel/qjson/Makefile
zhuk 719da6edba QJson is a Qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's
objects will be mapped to QVariantMap.

This is prerequisite of Clementine and many KDE4 ports.

okay landry@
2013-02-05 10:31:01 +00:00

50 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2013/02/05 10:31:01 zhuk Exp $
SHARED_ONLY = Yes
CATEGORIES = devel
COMMENT= Qt-based library that maps JSON data to QVariant objects
DISTNAME = qjson-0.8.1
HOMEPAGE = http://qjson.sourceforge.net/
SHARED_LIBS = qjson 0.0
MODULES = devel/cmake x11/qt4
WANTLIB = m stdc++
MASTER_SITES = https://github.com/downloads/flavio/qjson/
EXTRACT_SUFX = .tar.bz2
TAR = gtar
# LGPLv2
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
BUILD_DEPENDS = devel/doxygen \
archivers/gtar
DOCSDIR = ${PREFIX}/share/doc/qjson
# Test list taken from ${WRKSRC}/tests/CMakeLists.txt
CONFIGURE_ARGS = -DQJSON_BUILD_TESTS:Bool=Yes
UNIT_TESTS = testparser \
testqobjecthelper \
testserializer
post-build:
cd ${WRKSRC}/doc && doxygen
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
cd ${WRKSRC}/doc/html && find . -type d -print0 | \
(cd ${DOCSDIR} && xargs -0 ${INSTALL_DATA_DIR})
find ${WRKSRC}/doc/html -type f -print0 | \
(cd ${DOCSDIR} && xargs -0 -J % ${INSTALL_DATA} % ${DOCSDIR})
do-regress:
.for T in ${UNIT_TESTS}
cd ${WRKBUILD}/tests && ./$T
.endfor
.include <bsd.port.mk>