pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libdecaf: Add support for test
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Tue May 7 12:23:38 2019 +0200
Changeset: 2fa8cc27123a8cb52498a44f1667d462f0c34c6e
Modified Files:
libdecaf/Makefile
Log Message:
libdecaf: Add support for test
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2fa8cc27123a8cb52498a44f1667d462f0c34c6e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libdecaf/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diffs:
diff --git a/libdecaf/Makefile b/libdecaf/Makefile
index 0b578598eb..a3abcef98a 100644
--- a/libdecaf/Makefile
+++ b/libdecaf/Makefile
@@ -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
Home |
Main Index |
Thread Index |
Old Index