aboutsummaryrefslogtreecommitdiffstats
path: root/audio/clementine-player/Makefile
blob: cde48e8ce9ac421b82b01b4832b4e6d0154e94ac (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
o Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   clementine
PORTVERSION=    1.2.0
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   GOOGLE_CODE
PKGNAMESUFFIX=  -player

MAINTAINER= vg@FreeBSD.org
COMMENT=    Cross-platform music player based on Amarok 1.4

LICENSE=    GPLv3

LIB_DEPENDS=    execinfo:${PORTSDIR}/devel/libexecinfo \
        tag:${PORTSDIR}/audio/taglib \
        chromaprint:${PORTSDIR}/audio/chromaprint \
        protobuf:${PORTSDIR}/devel/protobuf \
        qjson:${PORTSDIR}/devel/qjson \
        fftw3:${PORTSDIR}/math/fftw3

BUILD_DEPENDS=  ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs

# avoid clash with x11-wm/clementine
LATEST_LINK=    ${PORTNAME}${PKGNAMESUFFIX}
PROJECTHOST=    ${PORTNAME}${PKGNAMESUFFIX}

USES=       cmake pkgconfig
NO_STAGE=   yes
USE_GL=     glew
USE_QT4=    dbus gui xml qmake_build uic_build moc_build rcc_build \
        linguist_build network sql opengl qtestlib corelib webkit
INSTALLS_ICONS= yes
USE_GSTREAMER=  gio ogg mp3 flac soup vorbis
MAKE_JOBS_UNSAFE=   yes
CONFLICTS_BUILD=    qt-3.*

CMAKE_ARGS+=    -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib" \
        -DENABLE_DEBUS=ON -DENABLE_BOX=OFF \
        -DENABLE_IMOBILEDEVICE=OFF -DENABLE_SPARKLE=OFF \
        -DENABLE_SOUNDMENU=OFF -DENABLE_UBUNTU_ONE=OFF \
        -DENABLE_DROPBOX=OFF -DENABLE_SKYDRIVE=OFF

OPTIONS_DEFINE=     AUDIOCD BREAKPAD DEVICEKIT GIO GOOGLE_DRIVE GPOD \
            LASTFM MTP SPOTIFY VISUALISATION WIIMOTEDEV \
            USE_BUILTIN_TAGLIB MOODBAR

AUDIOCD_DESC=       Devices: Audio CD support
BREAKPAD_DESC=      Crash reporting
DEVICEKIT_DESC=     Devices: DeviceKit backend
GIO_DESC=       Devices: GIO device backend
GOOGLE_DRIVE_DESC=  Google Drive support
GPOD_DESC=      iPod support
LASTFM_DESC=        Support Last.fm service (requires ruby)
MTP_DESC=       MTP device support
SPOTIFY_DESC=       Support for Spotify service
VISUALISATION_DESC= Visualisations from projectM
WIIMOTEDEV_DESC=    Wiimote support
MOODBAR_DESC=       Moodbar Support
USE_BUILTIN_TAGLIB= Use Clementine builtin taglib support

OPTIONS_DEFAULT=    AUDIOCD DEVICEKIT GIO LASTFM MTP VISUALISATION \
            WIIMOTEDEV MOODBAR

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMOODBAR}
CMAKE_ARGS+=    -DENABLE_MOODBAR=ON
.else
CMAKE_ARGS+=    -DENABLE_MOODBAR=OFF
.endif

.if ${PORT_OPTIONS:MUSE_BUILTIN_TAGLIB}
CMAKE_ARGS+=    -DENABLE_USE_BUILTIN_TAGLIB=ON
.else
CMAKE_ARGS+=    -DENABLE_USE_BUILTIN_TAGLIB=OFF
.endif

.if ${PORT_OPTIONS:MAUDIOCD}
CMAKE_ARGS+=    -DENABLE_AUDIOCD=ON
LIB_DEPENDS+=   cdio:${PORTSDIR}/sysutils/libcdio
.else
CMAKE_ARGS+=    -DENABLE_AUDIOCD=OFF
.endif

.if ${PORT_OPTIONS:MBREAKPAD}
CMAKE_ARGS+=    -DENABLE_BREAKPAD=ON
.else
CMAKE_ARGS+=    -DENABLE_BREAKPAD=OFF
.endif

.if ${PORT_OPTIONS:MDEVICEKIT}
CMAKE_ARGS+=    -DENABLE_DEVICEKIT=ON
.else
CMAKE_ARGS+=    -DENABLE_DEVICEKIT=OFF
.endif

.if ${PORT_OPTIONS:MGIO}
CMAKE_ARGS+=    -DENABLE_GIO=ON
USE_GNOME=  glib20
.else
CMAKE_ARGS+=    -DENABLE_GIO=OFF
.endif

.if ${PORT_OPTIONS:MGOOGLE_DRIVE}
CMAKE_ARGS+=    -DENABLE_GOOGLE_DRIVE=ON
BUILD_DEPENDS+= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
.else
CMAKE_ARGS+=    -DENABLE_GOOGLE_DRIVE=OFF
.endif

.if ${PORT_OPTIONS:MGPOD}
CMAKE_ARGS+=    -DENABLE_LIBGPOD=ON
LIB_DEPENDS+=   gpod:${PORTSDIR}/audio/libgpod
.else
CMAKE_ARGS+=    -DENABLE_LIBGPOD=OFF
.endif

.if ${PORT_OPTIONS:MLASTFM}
CMAKE_ARGS+=    -DENABLE_LIBLASTFM=ON
LIB_DEPENDS+=   lastfm:${PORTSDIR}/audio/liblastfm
.else
CMAKE_ARGS+=    -DENABLE_LIBLASTFM=OFF
.endif

.if ${PORT_OPTIONS:MMTP}
CMAKE_ARGS+=    -DENABLE_LIBMTP=ON
LIB_DEPENDS+=   mtp:${PORTSDIR}/audio/libmtp
.else
CMAKE_ARGS+=    -DENABLE_LIBMTP=OFF
.endif

.if ${PORT_OPTIONS:MSPOTIFY}
CMAKE_ARGS+=    -DENABLE_SPOTIFY_BLOB=ON
LIB_DEPENDS+=   qca:${PORTSDIR}/devel/qca
.else
CMAKE_ARGS+=    -DENABLE_SPOTIFY_BLOB=OFF
.endif

.if ${PORT_OPTIONS:MVISUALISATION}
CMAKE_ARGS+=    -DENABLE_VISUALISATIONS=ON
.else
CMAKE_ARGS+=    -DENABLE_VISUALISATIONS=OFF
.endif

.if ${PORT_OPTIONS:MWIIMOTEDEV}
CMAKE_ARGS+=    -DENABLE_WIIMOTEDEV=ON
.else
CMAKE_ARGS+=    -DENABLE_WIIMOTEDEV=OFF
.endif

.include <bsd.port.mk>