summaryrefslogtreecommitdiff
path: root/audio/amarok/Makefile
blob: b6cd4fca6adc8da783d86573193482297c9075f4 (plain)
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

PORTNAME=	amarok
DISTVERSIONPREFIX=	v
DISTVERSION=	2.9.71
CATEGORIES=	audio kde

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

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libdbus-1.so:devel/dbus \
		libfftw3.so:math/fftw3 \
		liblastfm5.so:audio/liblastfm-qt5 \
		libqjson-qt5.so:devel/qjson \
		libtag.so:audio/taglib \
		libtag-extras.so:audio/taglib-extras \
		liblz4.so:archivers/liblz4

USES=		cmake compiler:c++11-lang desktop-file-utils \
		kde:5 mysql:client,embedded pkgconfig qca qt:5 shebangfix ssl xorg

USE_QT=		core concurrent declarative dbus gui location network phonon4 \
		quickcontrols2 script scripttools sql svg webchannel \
		webkit widgets xml \
		buildtools_build qmake_build

USE_KDE=	archive auth attica bookmarks codecs config configwidgets \
		completion coreaddons crash dbusaddons dnssd globalaccel \
		guiaddons i18n iconthemes itemviews jobwidgets kdeclarative \
		kcmutils kio kirigami2 newstuff notifications notifyconfig \
		package parts service solid sonnet texteditor textwidgets \
		threadweaver wallet widgetsaddons windowsystem xmlgui \
		ecm_build
USE_XORG=	ice sm x11 xext
USE_LDCONFIG=	yes

KDE_INVENT=	3e11ccdd1417e70486eaaa84d8475182eec44c20 multimedia

CONFIGURE_ENV=	MYSQL_DIR=${LOCALBASE}

SHEBANG_FILES=	src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl
CMAKE_ARGS=	-DOPENSSL_ROOT_DIR=${OPENSSLBASE}
CMAKE_ON=	WITH_DESKTOP_UI
CMAKE_OFF=	WITH_FFmpeg

BROKEN_sparc64=	does not build (GCC-related error)

OPTIONS_DEFINE=		IPOD MP3TUNES MTP QTWEBENGINE
OPTIONS_DEFAULT=	IPOD MP3TUNES MTP
OPTIONS_DEFAULT_amd64=	QTWEBENGINE
OPTIONS_DEFAULT_i386=	QTWEBENGINE
OPTIONS_SUB=		yes

IPOD_DESC=		Apple iPod support
IPOD_LIB_DEPENDS=	libgpod.so:audio/libgpod \
			libimobiledevice-1.0.so:comms/libimobiledevice \
			libplist-2.0.so:devel/libplist
IPOD_USE=		GNOME=gdkpixbuf2,glib20
IPOD_USES=		gnome
IPOD_CMAKE_BOOL=	WITH_IPOD

MP3TUNES_DESC=		MP3tunes support
MP3TUNES_LIB_DEPENDS=	libloudmouth-1.so:net-im/loudmouth \
			libcurl.so:ftp/curl
MP3TUNES_LIB_DEPENDS_OFF=	libgcrypt.so:security/libgcrypt
MP3TUNES_USE=		GNOME=glib20,libxml2
MP3TUNES_USES=		gnome

MP3TUNES_CMAKE_BOOL=	WITH_MP3Tunes
MP3TUNES_CMAKE_BOOL_OFF=	WITH_Libgcrypt

MTP_LIB_DEPENDS=	libmtp.so:multimedia/libmtp
MTP_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Mtp

QTWEBENGINE_DESC=	Add dependency on qt5-webengine
QTWEBENGINE_USE=	qt=webengine
QTWEBENGINE_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine

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

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MQTWEBENGINE}
DEPRECATED=	Uses EOL Python 2.7 via www/qt5-webengine
EXPIRATION_DATE=2021-06-23
.endif

.include <bsd.port.mk>