summaryrefslogtreecommitdiff
path: root/audio/chromaprint/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/chromaprint/Makefile')
-rw-r--r--audio/chromaprint/Makefile27
1 files changed, 10 insertions, 17 deletions
diff --git a/audio/chromaprint/Makefile b/audio/chromaprint/Makefile
index a0e6a0f1c863..5d80a0100ab3 100644
--- a/audio/chromaprint/Makefile
+++ b/audio/chromaprint/Makefile
@@ -1,8 +1,7 @@
PORTNAME= chromaprint
-DISTVERSION= 1.5.1.20221217
-PORTREVISION= 1
+DISTVERSION= 1.6.0
CATEGORIES= audio
-#MASTER_SITES= https://github.com/acoustid/${PORTNAME}/releases/download/v${DISTVERSION}/
+MASTER_SITES= https://github.com/acoustid/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= jhale@FreeBSD.org
COMMENT= AcoustID audio fingerprinting library
@@ -14,27 +13,21 @@ LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
-USES= cmake compiler:c++11-lib pathfix
-USE_GITHUB= yes
-GH_ACCOUNT= acoustid
-GH_TAGNAME= aa67c95
+USES= cmake:testing compiler:c++14-lang
USE_LDCONFIG= yes
-CMAKE_ARGS= -DBUILD_TOOLS:BOOL=true \
- -DAUDIO_PROCESSOR_LIB=swresample \
- -DFFT_LIB:STRING=avfft
+CMAKE_ARGS= -DAUDIO_PROCESSOR_LIB:STRING=swresample \
+ -DFFT_LIB:STRING=`if [ -f ${LOCALBASE}/include/libavcodec/avfft.h ]; then ${ECHO_CMD} avfft; else ${ECHO_CMD} avtx; fi`
+CMAKE_ON= BUILD_TOOLS
+CMAKE_OFF= BUILD_TESTS
+CMAKE_TESTING_ON= BUILD_TESTS
-OPTIONS_DEFINE= DOCS DOXYGEN TEST
+OPTIONS_DEFINE= DOCS DOXYGEN
+DOXYGEN_IMPLIES= DOCS
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \
dot:graphics/graphviz
DOXYGEN_PORTDOCS= *
-DOXYGEN_IMPLIES= DOCS
-
-TEST_BUILD_DEPENDS= ${NONEXISTENT}:devel/googletest:patch
-TEST_CMAKE_BOOL= BUILD_TESTS
-TEST_CMAKE_ON= -DGTEST_ROOT:PATH=`${MAKE} -C ${PORTSDIR}/devel/googletest -VWRKSRC`/googletest
-TEST_TARGET= check
do-build-DOXYGEN-on:
@(cd ${BUILD_WRKSRC}; ${DO_MAKE_BUILD} docs)