aboutsummaryrefslogtreecommitdiff
path: root/audio/amarok-kde4/Makefile
blob: 96297371de50ee9f6cd268aa7191faabc65aa37c (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# New ports collection makefile for:	amarok
# Date created:			Tue Feb 24 02:21:14 CET 2004
# Whom:				Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	amarok
PORTVERSION=	2.5.0
PORTREVISION=	2
CATEGORIES=	audio kde
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	stable/${PORTNAME}/${PORTVERSION}/src

MAINTAINER=	kde@FreeBSD.org
COMMENT=	KDE music player

LIB_DEPENDS=	tag.1:${PORTSDIR}/audio/taglib \
		tag-extras.1:${PORTSDIR}/audio/taglib-extras \
		lastfm.0:${PORTSDIR}/audio/liblastfm \
		ofa:${PORTSDIR}/audio/libofa \
		avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
		qjson.0:${PORTSDIR}/devel/qjson \
		qca.2:${PORTSDIR}/devel/qca

BUILD_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator

RUN_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator \
		${KDE4_PREFIX}/lib/kde4/kio_upnp_ms.so:${PORTSDIR}/net/kio-upnp-ms

LATEST_LINK=	${PORTNAME}-kde4

USE_GETTEXT=	yes
USE_KDE4=	kdehier kdeprefix kdelibs runtime automoc4
USE_MYSQL=	embedded
USE_QT_VER=	4
QT_COMPONENTS=	gui network opengl phonon script svg webkit \
		qmake_build moc_build rcc_build uic_build
USE_BZIP2=	yes
USE_CMAKE=	yes
MAKE_JOBS_SAFE=	yes
USE_LDCONFIG=	yes

NOT_FOR_ARCHS=	sparc64
NOT_FOR_ARCHS_REASON_sparc64=	"GCC-related build error"

OPTIONS=	GPOD "iPod support" on \
		LOUDMOUTH "Loudmouth support" on \
		MTP "MTP device support" on

.include <bsd.port.options.mk>

.if defined(WITH_GPOD)
LIB_DEPENDS+=	gpod.7:${PORTSDIR}/audio/libgpod
PLIST_SUB+=	GPOD=""
.else
CMAKE_ARGS+=	-DWITH_Ipod:BOOL=Off
PLIST_SUB+=	GPOD="@comment "
.endif

.if defined(WITH_LOUDMOUTH)
LIB_DEPENDS+=	loudmouth-1.0:${PORTSDIR}/net-im/loudmouth
PLIST_SUB+=	LOUDMOUTH=""
.else
CMAKE_ARGS+=	-DWITH_Loudmouth:BOOL=Off
PLIST_SUB+=	LOUDMOUTH="@comment "
.endif

.if defined(WITH_MTP)
LIB_DEPENDS+=	mtp.9:${PORTSDIR}/audio/libmtp
PLIST_SUB+=	MTP=""
.else
CMAKE_ARGS+=	-DWITH_Mtp:BOOL=Off
PLIST_SUB+=	MTP="@comment "
.endif

post-extract:
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/cmake/modules/FindMySQLAmarok.cmake
	${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
		${WRKSRC}/cmake/modules/FindLoudmouth.cmake

.include <bsd.port.mk>