2016-03-18 23:12:15 +00:00

36 lines
877 B
Makefile

# $OpenBSD: Makefile,v 1.5 2016/03/18 23:12:15 naddy Exp $
COMMENT = audio fingerprint extraction library
DISTNAME = chromaprint-1.1
CATEGORIES = audio devel
HOMEPAGE = https://acoustid.org/chromaprint/
MASTER_SITES = https://bitbucket.org/acoustid/chromaprint/downloads/
SHARED_LIBS = chromaprint 1.0 # 0.1
# LGPL2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += avcodec avformat avutil c m pthread stdc++ swresample
MODULES = devel/cmake
BUILD_DEPENDS = audio/taglib \
devel/boost
LIB_DEPENDS = graphics/ffmpeg
# gtest presence is checked in configure stage, so this cannot be in TEST_DEPENDS
BUILD_DEPENDS += devel/gtest
CONFIGURE_ARGS = -DBUILD_TESTS:Bool=Yes -DBUILD_EXAMPLES=ON
post-patch:
sed -i 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/cmake/modules/FindGTest.cmake
do-test:
cd ${WRKBUILD}/tests && ./all_tests
.include <bsd.port.mk>