pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/chromaprint



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jul 30 08:11:49 UTC 2023

Modified Files:
        pkgsrc/audio/chromaprint: Makefile
Added Files:
        pkgsrc/audio/chromaprint: options.mk

Log Message:
chromaprint: Optionize building tests to avoid requiring a newer compiler
for a vendored googletest for tests that never get installed.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/audio/chromaprint/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/chromaprint/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/chromaprint/Makefile
diff -u pkgsrc/audio/chromaprint/Makefile:1.36 pkgsrc/audio/chromaprint/Makefile:1.37
--- pkgsrc/audio/chromaprint/Makefile:1.36      Thu Jun  8 07:05:17 2023
+++ pkgsrc/audio/chromaprint/Makefile   Sun Jul 30 08:11:49 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2023/06/08 07:05:17 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2023/07/30 08:11:49 nia Exp $
 
 DISTNAME=      chromaprint-1.5.1
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    audio
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=acoustid/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -16,6 +16,8 @@ USE_LANGUAGES=        c c++
 CMAKE_ARGS+=   -DBUILD_TOOLS=ON
 CMAKE_ARGS+=   -DFFT_LIB=fftw3
 
+USE_CXX_FEATURES+=     c++11
+
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "Darwin"
@@ -31,6 +33,7 @@ CMAKE_ARGS+=  -DFFMPEG_LIB${lib}_LIBRARIE
 
 PKGCONFIG_OVERRIDE=    libchromaprint.pc.cmake
 
+.include "options.mk"
 .include "../../devel/cmake/build.mk"
 .include "../../math/fftw/buildlink3.mk"
 # On Darwin, chromaprint uses Accelerate.framework, but fpcalc still needs FFmpeg

Added files:

Index: pkgsrc/audio/chromaprint/options.mk
diff -u /dev/null pkgsrc/audio/chromaprint/options.mk:1.1
--- /dev/null   Sun Jul 30 08:11:49 2023
+++ pkgsrc/audio/chromaprint/options.mk Sun Jul 30 08:11:49 2023
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2023/07/30 08:11:49 nia Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.chromaprint
+
+# Tests are not installed, so default off.
+PKG_SUPPORTED_OPTIONS= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+# googletest requires at least C++14. It bundles its own copy.
+USE_CXX_FEATURES+=     c++14
+TEST_TARGET=           check
+CMAKE_ARGS+=           -DBUILD_TESTS=ON
+.else
+CMAKE_ARGS+=           -DBUILD_TESTS=OFF
+.endif



Home | Main Index | Thread Index | Old Index