summaryrefslogtreecommitdiff
path: root/net/libktorrent/Makefile
blob: 09f746138bc437b2a2d7cc223bae0f4b98351c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.4 2012/10/02 17:11:47 tron Exp $

DISTNAME=	libktorrent-${LIBKTORRENT_VER}
PKGREVISION=	3
CATEGORIES=	net kde
MASTER_SITES=	http://ktorrent.org/downloads/${KTORRENT_VER}/
DISTFILES=	libktorrent-${LIBKTORRENT_FILEVER}.tar.bz2

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

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

PKG_DESTDIR_SUPPORT=	user-destdir
PKG_OPTIONS_VAR=	PKG_OPTIONS.libktorrent
PKG_SUPPORTED_OPTIONS=	docs
PLIST_VARS+=		docs

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

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

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

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

post-install:
.if !empty(PKG_OPTIONS:Mdocs)
	${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"