[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / libktorrent

File: [cvs.NetBSD.org] / pkgsrc / net / libktorrent / Makefile (download)

Revision 1.71, Sun Jan 29 21:14:54 2023 UTC (3 months, 3 weeks ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Changes since 1.70: +2 -2 lines

*: Recursive revbup from graphics/freetype2

# $NetBSD: Makefile,v 1.71 2023/01/29 21:14:54 ryoon Exp $

DISTNAME=	libktorrent-${LIBKTORRENT_VER}
PKGREVISION=	41
CATEGORIES=	net kde
#MASTER_SITES=	http://ktorrent.pwsp.net/downloads/${KTORRENT_VER}/
EXTRACT_SUFX=	.tar.bz2


.include "../../net/libktorrent/Makefile.version"

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://ktorrent.pwsp.net/
COMMENT=	Torrent library split from KTorrent
LICENSE=	gnu-gpl-v2

PKG_OPTIONS_VAR=		PKG_OPTIONS.libktorrent
PKG_SUPPORTED_OPTIONS=		doc
PKG_OPTIONS_LEGACY_OPTS=	docs:doc

USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake msgfmt pkg-config perl
USE_CMAKE=		yes
APIDOCS=		share/doc/libktorrent-api
WRKSRC=			${WRKDIR}/libktorrent-${LIBKTORRENT_FILEVER}

BUILD_DEPENDS+=	automoc4>=0.9.87:../../devel/automoc4

.include "../../mk/bsd.options.mk"

PLIST_VARS+=	doc
.if !empty(PKG_OPTIONS:Mdoc)
BUILD_DEPENDS+=	doxygen>=1.8.2:../../devel/doxygen
BUILD_TARGET=	all docs
PLIST.doc=	yes
USE_TOOLS+=	pax
.endif

post-install:
.if !empty(PKG_OPTIONS:Mdoc)
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}${APIDOCS}
	cd ${WRKSRC}/apidocs && ${PAX} -wr * ${DESTDIR}${PREFIX}${APIDOCS}
.endif

.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../security/qca2/buildlink3.mk"
.include "../../x11/kdelibs4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"