mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
641f2150c3
- Use nepomuk-core component instead of explicit dependency. - Remove update-mime-database command. - Bump PORTREVISION. PR: 176735
108 lines
2.9 KiB
Makefile
108 lines
2.9 KiB
Makefile
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= amarok
|
|
PORTVERSION= 2.7.0
|
|
PORTREVISION= 1
|
|
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:${PORTSDIR}/audio/taglib \
|
|
tag-extras:${PORTSDIR}/audio/taglib-extras \
|
|
lastfm:${PORTSDIR}/audio/liblastfm \
|
|
ofa:${PORTSDIR}/audio/libofa \
|
|
avcodec:${PORTSDIR}/multimedia/ffmpeg \
|
|
qjson:${PORTSDIR}/devel/qjson \
|
|
qca:${PORTSDIR}/devel/qca \
|
|
dbus-1:${PORTSDIR}/devel/dbus
|
|
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_KDE4= kdehier kdelibs kdeprefix libkcddb libkcompactdisc \
|
|
nepomuk-core runtime automoc4 sharedmime strigi
|
|
USE_MYSQL= embedded
|
|
USE_QT4= dbus designer gui network opengl \
|
|
phonon script sql svg webkit xml \
|
|
qmake_build moc_build rcc_build uic_build
|
|
USE_XORG= x11
|
|
USE_BZIP2= yes
|
|
USES= cmake
|
|
MAKE_JOBS_SAFE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= AMAZON IPOD MP3TUNES MTP
|
|
OPTIONS_DEFAULT=IPOD MP3TUNES MTP
|
|
|
|
AMAZON_DESC= Amazon MP3 store support via clamz
|
|
IPOD_DESC= Apple iPod support
|
|
MP3TUNES_DESC= MP3tunes support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= does not build on sparc64 (GCC-related error)
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MAMAZON}
|
|
RUN_DEPENDS+= clamz:${PORTSDIR}/net/clamz
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIPOD}
|
|
LIB_DEPENDS+= gpod:${PORTSDIR}/audio/libgpod
|
|
USE_GNOME+= gdkpixbuf2 glib20
|
|
PLIST_SUB+= IPOD=""
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_IPOD:BOOL=Off
|
|
PLIST_SUB+= IPOD="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMP3TUNES}
|
|
LIB_DEPENDS+= loudmouth-1:${PORTSDIR}/net-im/loudmouth \
|
|
curl:${PORTSDIR}/ftp/curl
|
|
USE_GNOME+= glib20 libxml2
|
|
PLIST_SUB+= MP3TUNES=""
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_MP3tunes:BOOL=Off
|
|
PLIST_SUB+= MP3TUNES="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMTP}
|
|
LIB_DEPENDS+= mtp:${PORTSDIR}/audio/libmtp
|
|
PLIST_SUB+= MTP=""
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_Mtp:BOOL=Off
|
|
PLIST_SUB+= MTP="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CMAKE_ARGS+= -DBUILD_po:BOOL=Off
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${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
|
|
# Avoid installing MIME types prior to install stage.
|
|
@${REINPLACE_CMD} -e '/XDG.*EXECUTABLE/ d' \
|
|
${WRKSRC}/utilities/amzdownloader/CMakeLists.txt
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/utilities/amzdownloader/amzdownloader.xml \
|
|
${PREFIX}/share/mime/packages
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utilities/amzdownloader/amzdownloader.desktop \
|
|
${PREFIX}/share/applications/kde4
|
|
|
|
.include <bsd.port.mk>
|