File:  [cvs.NetBSD.org] / pkgsrc / audio / amarok / Makefile
Revision 1.199: download - view: text, annotated - select for diffs
Fri May 22 10:55:53 2020 UTC (4 years, 6 months ago) by adam
Branches: MAIN
CVS tags: HEAD
revbump after updating security/nettle

# $NetBSD: Makefile,v 1.199 2020/05/22 10:55:53 adam Exp $

DISTNAME=	amarok-${VERS}
VERS=		2.8.0
PKGREVISION=	55
CATEGORIES=	audio multimedia
MASTER_SITES=	${MASTER_SITE_KDE:=amarok/${VERS}/src/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://amarok.kde.org/
COMMENT=	KDE4 audio player
LICENSE=	gnu-gpl-v2 AND gnu-fdl-v1.2 AND gnu-lgpl-v2.1

BUILD_DEPENDS+=	automoc4>=0.9.83:../../devel/automoc4
DEPENDS+=	moodbar-[0-9]*:../../audio/moodbar

USE_LANGUAGES=	c c++
USE_TOOLS+=	msgfmt pkg-config perl:run

CMAKE_ARGS+=	-DMYSQL_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.mysql-client}/include/mysql
CMAKE_ARGS+=	-DMYSQL_EMBEDDED_LIBRARIES:PATH=${BUILDLINK_PREFIX.mysql-server}/lib/mysql/libmysqld.a
CMAKE_ARGS+=	-DMYSQL_EMBEDDED_FOUND:BOOL=TRUE
CMAKE_ARGS+=	-DHAVE_MYSQL_OPT_EMBEDDED_CONNECTION:BOOL=TRUE
CMAKE_ARGS+=	-DMYSQL_LIBRARIES:PATH=${BUILDLINK_PREFIX.mysql-client}/lib/mysql/libmysqlclient.so
CMAKE_ARGS+=	-DWITH_NepomukCore:BOOL=OFF
CMAKE_ARGS+=	-DWITH_Soprano:BOOL=OFF
CMAKE_ARGS+=	-DKDE4_BUILD_TESTS:BOOL=OFF

REPLACE_PERL+=	src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl

SUBST_CLASSES+=		mysql
SUBST_STAGE.mysql=	pre-configure
SUBST_MESSAGE.mysql=	Fixup paths for MySQL embedded
SUBST_FILES.mysql=	cmake/modules/FindMySQLAmarok.cmake
SUBST_FILES.mysql+=	src/core-impl/collections/db/sql/mysqlecollection/CMakeLists.txt
SUBST_SED.mysql=	-e s:/opt/mysqle/:${BUILDLINK_PREFIX.mysql-server}:
# Additional SUBST_SED.mysql added later based on mysql server version

.include "options.mk"

MYSQL_VERSIONS_ACCEPTED=	56 55

.include "../../mk/mysql.buildlink3.mk"
.if ${_MYSQL_VERSION} == "56"
.include "../../databases/mysql56-server/buildlink3.mk"
SUBST_SED.mysql+=	-e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib:
.elif ${_MYSQL_VERSION} == "55"
.include "../../databases/mysql55-server/buildlink3.mk"
SUBST_SED.mysql+=	-e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib:
.else
PKG_FAIL_REASON+=	"Unknown mysql version: ${_MYSQL_VERSION}"
.endif

.include "../../audio/liblastfm/buildlink3.mk"
.include "../../audio/libofa/buildlink3.mk"
BUILDLINK_API_DEPENDS.taglib+=	taglib>=1.6nb1
.include "../../audio/taglib/buildlink3.mk"
.include "../../audio/taglib-extras/buildlink3.mk"
.include "../../devel/qjson/buildlink3.mk"
.include "../../devel/qtscriptgenerator/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../meta-pkgs/kde4/kde4.mk"
#.include "../../misc/nepomuk-core/buildlink3.mk"
.include "../../multimedia/ffmpeg3/buildlink3.mk"
.include "../../multimedia/libkcompactdisc/buildlink3.mk"
.include "../../security/qca2/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
# for plasma
.include "../../x11/kde-runtime4/buildlink3.mk"
BUILDLINK_API_DEPENDS.kdelibs+=	kdelibs4>=4.5.0
.include "../../x11/kdelibs4/buildlink3.mk"
BUILDLINK_DEPMETHOD.qt4-tools=	full
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>