File:  [cvs.NetBSD.org] / pkgsrc / audio / kid3 / Makefile
Revision 1.136: download - view: text, annotated - select for diffs
Tue Jul 18 12:56:05 2023 UTC (16 months, 3 weeks ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, HEAD
audio: Where possible, adapt packages to use USE_(CC|CXX)_FEATURES

# $NetBSD: Makefile,v 1.136 2023/07/18 12:56:05 nia Exp $

DISTNAME=	kid3-3.9.3
PKGREVISION=	5
CATEGORIES=	audio kde
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=kid3/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://kid3.kde.org/
COMMENT=	ID3 tagger for QT
LICENSE=	gnu-gpl-v2

TOOL_DEPENDS+=		libxslt-[0-9]*:../../textproc/libxslt
TOOL_DEPENDS+=		docbook-xsl-[0-9]*:../../textproc/docbook-xsl

USE_LANGUAGES=		c c++
USE_CXX_FEATURES+=	filesystem
USE_TOOLS+=		perl:build pkg-config
CMAKE_ARGS+=		-DQT_QMAKE_EXECUTABLE:PATH=${QTDIR}/bin/qmake
CMAKE_ARGS+=		-DWITH_DOCBOOKDIR:PATH=${PREFIX}/share/xsl/docbook
CMAKE_ARGS+=		-DWITH_APPS:STRING="Qt;CLI"
CMAKE_ARGS+=		-DWITH_MANDIR:STRING=${PKGMANDIR}
# program-specific rpath is ignored since pkgsrc passes
# -DCMAKE_SKIP_RPATH:BOOL=TRUE, so re-add it manually
LDFLAGS+=		${COMPILER_RPATH_FLAG}${PREFIX}/lib/kid3

BUILDLINK_TRANSFORM+=	rm:-fvisibility=hidden

SUBST_CLASSES+=		apple
SUBST_MESSAGE.apple=	Avoiding Mac OS X application bundles
SUBST_STAGE.apple=	pre-configure
SUBST_FILES.apple+=	src/app/cli/CMakeLists.txt
SUBST_FILES.apple+=	src/app/qt/CMakeLists.txt
SUBST_FILES.apple+=	src/plugins/kid3qml/CMakeLists.txt
SUBST_SED.apple=	-e 's,APPLE,ELPPA,g'

.include "options.mk"

.include "../../devel/cmake/build.mk"
.include "../../audio/chromaprint/buildlink3.mk"
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/id3lib/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/taglib/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>