mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
bcd99d9283
The last upstream release supporting KDE4 was 10 months ago, https://www.kde.org/announcements/announce-applications-17.08.3.php , and the kde@ team for FreeBSD has supported modern KDE (i.e. KDE Frameworks, Plasma 5 and KDE Applications) for 4 months. Give a 4 month deprecation period to allow users to switch over. Not marked deprecated: audio/kid3-kde4, that's not ours, and it supports Qt5 and KF5 as well despite its name.
87 lines
2.8 KiB
Makefile
87 lines
2.8 KiB
Makefile
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= amarok
|
|
PORTVERSION= 2.8.0
|
|
PORTREVISION= 16
|
|
CATEGORIES= audio kde
|
|
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= KDE music player
|
|
|
|
DEPRECATED= KDE4 is EOL upstream
|
|
EXPIRATION_DATE= 2018-12-31
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libtag.so:audio/taglib \
|
|
libtag-extras.so:audio/taglib-extras \
|
|
liblastfm.so:audio/liblastfm \
|
|
libqjson.so:devel/qjson@qt4 \
|
|
libqca.so:devel/qca@qt4 \
|
|
libdbus-1.so:devel/dbus
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:devel/qtscriptgenerator
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:devel/qtscriptgenerator \
|
|
${KDE_PREFIX}/lib/kde4/kio_upnp_ms.so:net/kio-upnp-ms
|
|
|
|
USES= cmake:outsource kde:4 mysql:client,embedded pkgconfig \
|
|
qt:4 shared-mime-info shebangfix ssl tar:bzip2
|
|
USE_GL= gl
|
|
USE_KDE= automoc4 kdelibs libkcddb libkcompactdisc \
|
|
nepomuk-core runtime soprano strigi
|
|
USE_QT= corelib dbus designer gui network opengl \
|
|
phonon script sql svg webkit xml \
|
|
qmake_build moc_build rcc_build uic_build
|
|
USE_XORG= ice sm x11 xau xdmcp xext xft xpm
|
|
SHEBANG_FILES= src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS= -DWITH_FFmpeg:BOOL=off -DOPENSSL_ROOT_DIR=${OPENSSLBASE}
|
|
|
|
BROKEN_sparc64= does not build (GCC-related error)
|
|
|
|
OPTIONS_DEFINE= IPOD MP3TUNES MTP NLS
|
|
OPTIONS_DEFAULT=IPOD MP3TUNES MTP
|
|
OPTIONS_SUB= yes
|
|
|
|
IPOD_DESC= Apple iPod support
|
|
IPOD_LIB_DEPENDS= libgpod.so:audio/libgpod \
|
|
libimobiledevice.so:comms/libimobiledevice \
|
|
libplist.so:devel/libplist
|
|
IPOD_USE= GNOME=gdkpixbuf2,glib20
|
|
IPOD_CMAKE_OFF= -DWITH_IPOD:BOOL=Off
|
|
|
|
MP3TUNES_DESC= MP3tunes support
|
|
MP3TUNES_LIB_DEPENDS= libloudmouth-1.so:net-im/loudmouth \
|
|
libcurl.so:ftp/curl
|
|
MP3TUNES_USE= GNOME=glib20,libxml2
|
|
MP3TUNES_USES= ssl
|
|
MP3TUNES_CMAKE_ON= -DWITH_MP3Tunes:BOOL=ON \
|
|
-DWITH_Libgcrypt:BOOL=OFF
|
|
MP3TUNES_CMAKE_OFF= -DWITH_MP3Tunes:BOOL=Off
|
|
|
|
MTP_LIB_DEPENDS= libmtp.so:multimedia/libmtp
|
|
MTP_CMAKE_OFF= -DWITH_Mtp:BOOL=Off
|
|
|
|
NLS_USES= gettext
|
|
NLS_CMAKE_OFF= -DBUILD_po:BOOL=Off
|
|
|
|
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:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
|
|
${INSTALL_DATA} ${WRKSRC}/utilities/amzdownloader/amzdownloader.xml \
|
|
${STAGEDIR}${PREFIX}/share/mime/packages
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utilities/amzdownloader/amzdownloader.desktop \
|
|
${STAGEDIR}${PREFIX}/share/applications/kde4
|
|
|
|
.include <bsd.port.mk>
|