aboutsummaryrefslogtreecommitdiff
path: root/audio/liblastfm/Makefile
blob: dab8d7055694c5dd75b9b93cf414f7d13ac8a4ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Matt Tosto <datahead4@gmail.com>
# $FreeBSD$

PORTNAME=	liblastfm
PORTVERSION=	1.0.6
#PORTREVISION=	0
CATEGORIES=	audio

MAINTAINER=	datahead4@gmail.com
COMMENT=	Qt C++ library for the Last.fm webservices

LICENSE=	GPLv3

LIB_DEPENDS=	fftw3:${PORTSDIR}/math/fftw3 \
		fftw3f:${PORTSDIR}/math/fftw3-float \
		samplerate:${PORTSDIR}/audio/libsamplerate

GH_ACCOUNT=	lastfm
GH_COMMIT=	5826fe6
GH_PROJECT=	liblastfm
GH_TAGNAME=	${PORTVERSION}

MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=		FINGERPRINT TESTS
FINGERPRINT_DESC=	Build the lastfm-fingerprint library
TESTS_DESC=		Build liblastfm tests
OPTIONS_DEFAULT=	FINGERPRINT

USE_CMAKE=	yes
USE_GITHUB=	yes
USE_LDCONFIG=	yes
USE_PKGCONFIG=	build
USE_QT4=	dbus moc_build rcc_build network qmake_build qtestlib sql xml

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFINGERPRINT}
CMAKE_ARGS+=	-DBUILD_FINGERPRINT:BOOL=ON
PLIST_SUB+=	FINGERPRINT=""
.else
CMAKE_ARGS+=	-DBUILD_FINGERPRINT:BOOL=OFF
PLIST_SUB+=	FINGERPRINT="@comment "
.endif

.if ${PORT_OPTIONS:MTESTS}
CMAKE_ARGS+=	-DBUILD_TESTS:BOOL=ON
.else
CMAKE_ARGS+=	-DBUILD_TESTS:BOOL=OFF
.endif

.include <bsd.port.mk>