libdecaf: Add support for test

This commit is contained in:
Leonardo Taccari 2019-05-07 12:23:38 +02:00
parent 661994ff71
commit 2fa8cc2712
1 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,7 @@ LICENSE= mit
USE_CMAKE= yes
USE_LANGUAGES= c99 c++11
CMAKE_ARGS+= -DENABLE_TESTS=NO
CMAKE_ARGS+= -DENABLE_TESTS=YES
# These are required to prevent build breakage when tests are enabled
# This is probably due to the auto-generated headers clobbering with
@ -21,6 +21,11 @@ CFLAGS.NetBSD+= -D_NETBSD_SOURCE
PYTHON_FOR_BUILD_ONLY= tool
# XXX: Avoid to pick up possibe installed libdecaf.so
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/src
TEST_TARGET= test
post-install:
${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libdecaf.a