libdecaf: Add support for test
This commit is contained in:
parent
661994ff71
commit
2fa8cc2712
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue