1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/audio/liblastfm/Makefile
Jason E. Hale 19cdda7e62 - Fix LICENSE
- Pare down dependencies to the options that require them
- Add TEST_TARGET to actually run the tests
- Support symbol visibility with clang
- Silence a few warnings
2017-01-06 11:09:18 +00:00

42 lines
1.0 KiB
Makefile

# Created by: Matt Tosto <datahead4@gmail.com>
# $FreeBSD$
PORTNAME= liblastfm
PORTVERSION= 1.0.9
PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= jhale@FreeBSD.org
COMMENT= Qt C++ library for the Last.fm webservices
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= lastfm
USES= cmake pkgconfig
USE_LDCONFIG= yes
USE_QT4= corelib dbus network sql xml \
moc_build qmake_build rcc_build
CMAKE_ARGS= -DBUILD_WITH_QT4:BOOL=ON
OPTIONS_DEFINE= FINGERPRINT TEST
OPTIONS_DEFAULT= FINGERPRINT
OPTIONS_SUB= yes
FINGERPRINT_DESC= Build the lastfm-fingerprint library
FINGERPRINT_LIB_DEPENDS=libsamplerate.so:audio/libsamplerate \
libfftw3f.so:math/fftw3-float
FINGERPRINT_CMAKE_BOOL= BUILD_FINGERPRINT
# We only need fftw3.h from math/fftw3; no need to install
FINGERPRINT_BUILD_DEPENDS= ${NONEXISTENT}:math/fftw3:patch
FINGERPRINT_CMAKE_ON= -DLIBFFTW3_INCLUDE_DIR:PATH=`${MAKE} -C ${PORTSDIR}/math/fftw3 -VWRKSRC`/api
TEST_USE= QT4=qtestlib_build
TEST_CMAKE_BOOL= BUILD_TESTS
TEST_TARGET= test
.include <bsd.port.mk>