ports/devel/cmocka/Makefile

31 lines
559 B
Makefile

COMMENT = elegant unit testing framework for C
DISTNAME = cmocka-1.1.5
SHARED_LIBS += cmocka 0.4 # 0.5
CATEGORIES = devel
HOMEPAGE = https://cmocka.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# Apache License v2
PERMIT_PACKAGE = Yes
SITES = https://cmocka.org/files/1.1/
EXTRACT_SUFX = .tar.xz
MODULES = devel/cmake
CONFIGURE_ARGS += -DUNIT_TESTING=ON
# evertyhing except tests
ALL_TARGET = cmocka
# build whatever is left (ca. 64 C test files)
pre-test:
@${MODCMAKE_BUILD_TARGET}
.include <bsd.port.mk>