2013-12-03 15:52:52 +01:00
|
|
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
2010-04-04 03:22:23 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= clementine
|
2013-12-04 16:33:33 +01:00
|
|
|
PORTVERSION= 1.2.1
|
2014-01-01 23:55:58 +01:00
|
|
|
PORTREVISION= 3
|
2010-04-04 03:22:23 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
PKGNAMESUFFIX= -player
|
|
|
|
|
2013-09-26 22:08:38 +02:00
|
|
|
MAINTAINER= vg@FreeBSD.org
|
2013-02-07 20:48:45 +01:00
|
|
|
COMMENT= Cross-platform music player based on Amarok 1.4
|
2010-04-04 03:22:23 +02:00
|
|
|
|
2011-12-21 05:24:01 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
libtag.so:${PORTSDIR}/audio/taglib \
|
|
|
|
libchromaprint.so:${PORTSDIR}/audio/chromaprint \
|
|
|
|
libprotobuf.so:${PORTSDIR}/devel/protobuf \
|
2014-01-01 23:55:58 +01:00
|
|
|
libqca.so:${PORTSDIR}/devel/qca \
|
2013-12-11 15:35:36 +01:00
|
|
|
libqjson.so:${PORTSDIR}/devel/qjson \
|
|
|
|
libfftw3.so:${PORTSDIR}/math/fftw3
|
2013-11-30 04:54:16 +01:00
|
|
|
|
2012-01-13 04:38:22 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
2010-04-04 03:22:23 +02:00
|
|
|
|
2013-02-11 13:41:31 +01:00
|
|
|
# avoid clash with x11-wm/clementine
|
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
2010-04-04 20:12:05 +02:00
|
|
|
PROJECTHOST= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
2013-12-07 19:00:44 +01:00
|
|
|
USES= compiler:c++11-lib cmake pkgconfig
|
2010-07-23 20:02:22 +02:00
|
|
|
USE_GL= glew
|
2013-02-11 13:41:31 +01:00
|
|
|
USE_QT4= dbus gui xml qmake_build uic_build moc_build rcc_build \
|
2013-02-07 20:48:45 +01:00
|
|
|
linguist_build network sql opengl qtestlib corelib webkit
|
2010-04-04 03:22:23 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2011-12-21 05:24:01 +01:00
|
|
|
USE_GSTREAMER= gio ogg mp3 flac soup vorbis
|
2013-08-10 17:08:22 +02:00
|
|
|
CONFLICTS_BUILD= qt-3.*
|
2010-04-04 20:12:05 +02:00
|
|
|
|
2013-08-25 11:07:50 +02:00
|
|
|
CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib" \
|
2014-01-01 20:54:44 +01:00
|
|
|
-DENABLE_DBUS=ON -DENABLE_SPARKLE=OFF \
|
|
|
|
-DENABLE_SOUNDMENU=OFF -DENABLE_SPOTIFY_BLOB=OFF \
|
|
|
|
-DENABLE_UBUNTU_ONE=OFF -DENABLE_SKYDRIVE=OFF
|
2012-01-06 00:41:22 +01:00
|
|
|
|
2014-01-01 20:54:44 +01:00
|
|
|
OPTIONS_DEFINE= AUDIOCD BREAKPAD DEVICEKIT DROPBOX BOX GIO GOOGLE_DRIVE \
|
|
|
|
GPOD LASTFM MTP VISUALISATION WIIMOTEDEV MOODBAR
|
2010-07-23 20:02:22 +02:00
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
AUDIOCD_DESC= Devices: Audio CD support
|
|
|
|
BREAKPAD_DESC= Crash reporting
|
2014-01-01 20:54:44 +01:00
|
|
|
BOX_DESC= Box Drive support
|
2013-01-08 17:18:15 +01:00
|
|
|
DEVICEKIT_DESC= Devices: DeviceKit backend
|
2014-01-01 20:54:44 +01:00
|
|
|
DROPBOX_DESC= Dropbox Support
|
2013-01-08 17:18:15 +01:00
|
|
|
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
|
|
|
|
VISUALISATION_DESC= Visualisations from projectM
|
|
|
|
WIIMOTEDEV_DESC= Wiimote support
|
2013-11-30 04:54:16 +01:00
|
|
|
MOODBAR_DESC= Moodbar Support
|
2010-07-23 20:02:22 +02:00
|
|
|
|
2014-01-01 20:54:44 +01:00
|
|
|
OPTIONS_DEFAULT= AUDIOCD BOX DEVICEKIT DROPBOX GIO GOOGLE_DRIVE GPOD \
|
|
|
|
LASTFM MTP VISUALISATION WIIMOTEDEV MOODBAR
|
2013-01-08 17:18:15 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-01-01 20:54:44 +01:00
|
|
|
.if ${PORT_OPTIONS:MDROPBOX}
|
|
|
|
CMAKE_ARGS+= -DENABLE_DROPBOX=ON
|
2013-11-30 04:54:16 +01:00
|
|
|
.else
|
2014-01-01 20:54:44 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_DROPBOX=OFF
|
2013-11-30 04:54:16 +01:00
|
|
|
.endif
|
|
|
|
|
2014-01-01 20:54:44 +01:00
|
|
|
.if ${PORT_OPTIONS:MMOODBAR}
|
|
|
|
CMAKE_ARGS+= -DENABLE_MOODBAR=ON
|
2013-11-30 04:54:16 +01:00
|
|
|
.else
|
2014-01-01 20:54:44 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_MOODBAR=OFF
|
2013-11-30 04:54:16 +01:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MAUDIOCD}
|
|
|
|
CMAKE_ARGS+= -DENABLE_AUDIOCD=ON
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libcdio.so:${PORTSDIR}/sysutils/libcdio
|
2010-07-23 20:02:22 +02:00
|
|
|
.else
|
2013-01-08 17:18:15 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_AUDIOCD=OFF
|
|
|
|
.endif
|
|
|
|
|
2014-01-01 20:54:44 +01:00
|
|
|
.if ${PORT_OPTIONS:MBOX}
|
|
|
|
CMAKE_ARGS+= -DENABLE_BOX=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_BOX=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.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
|
2010-07-23 20:02:22 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MGIO}
|
|
|
|
CMAKE_ARGS+= -DENABLE_GIO=ON
|
|
|
|
USE_GNOME= glib20
|
2012-01-16 20:11:28 +01:00
|
|
|
.else
|
2013-01-08 17:18:15 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_GIO=OFF
|
2011-12-23 11:16:53 +01:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MGOOGLE_DRIVE}
|
|
|
|
CMAKE_ARGS+= -DENABLE_GOOGLE_DRIVE=ON
|
2013-02-11 13:41:31 +01:00
|
|
|
BUILD_DEPENDS+= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
|
2012-01-16 20:11:28 +01:00
|
|
|
.else
|
2013-01-08 17:18:15 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_GOOGLE_DRIVE=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGPOD}
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBGPOD=ON
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libgpod.so:${PORTSDIR}/audio/libgpod
|
2013-01-08 17:18:15 +01:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBGPOD=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MLASTFM}
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBLASTFM=ON
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= liblastfm.so:${PORTSDIR}/audio/liblastfm
|
2013-01-08 17:18:15 +01:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBLASTFM=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMTP}
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBMTP=ON
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libmtp.so:${PORTSDIR}/audio/libmtp
|
2013-01-08 17:18:15 +01:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_LIBMTP=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MVISUALISATION}
|
|
|
|
CMAKE_ARGS+= -DENABLE_VISUALISATIONS=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_VISUALISATIONS=OFF
|
2012-01-13 04:38:22 +01:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MWIIMOTEDEV}
|
2013-12-02 04:39:33 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_WIIMOTEDEV=ON
|
2012-01-16 20:11:28 +01:00
|
|
|
.else
|
2013-01-08 17:18:15 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_WIIMOTEDEV=OFF
|
2012-01-13 04:38:22 +01:00
|
|
|
.endif
|
2012-01-06 00:41:22 +01:00
|
|
|
|
2013-01-08 17:18:15 +01:00
|
|
|
.include <bsd.port.mk>
|