pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/snappy
Module Name: pkgsrc
Committed By: tnn
Date: Sun Jun 27 11:45:54 UTC 2021
Modified Files:
pkgsrc/devel/snappy: Makefile
Log Message:
snappy: Conditionalise googletest dependency. Bump.
Only build unit tests (and depend on googletest) if the user wants
to run tests.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/snappy/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/snappy/Makefile
diff -u pkgsrc/devel/snappy/Makefile:1.14 pkgsrc/devel/snappy/Makefile:1.15
--- pkgsrc/devel/snappy/Makefile:1.14 Sat Jan 18 23:30:41 2020
+++ pkgsrc/devel/snappy/Makefile Sun Jun 27 11:45:54 2021
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2020/01/18 23:30:41 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2021/06/27 11:45:54 tnn Exp $
+GITHUB_TAG= ${PKGVERSION_NOREV}
DISTNAME= snappy-1.1.8
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
@@ -9,7 +11,6 @@ HOMEPAGE= https://google.github.io/snapp
COMMENT= General purpose data compression library
LICENSE= apache-2.0
-GITHUB_TAG= ${PKGVERSION_NOREV}
USE_CMAKE= yes
USE_LANGUAGES= c c++
@@ -18,7 +19,15 @@ TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
-.include "../../archivers/lzo/buildlink3.mk"
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
+CMAKE_ARGS+= -DSNAPPY_BUILD_TESTS=ON
.include "../../devel/googletest/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DSNAPPY_BUILD_TESTS=OFF
+.endif
+
+.include "../../archivers/lzo/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index