summaryrefslogtreecommitdiffstats
path: root/net-p2p/ktorrent/Makefile
blob: a4a522fe4b6f704d0ea53e7999d1545a9c1680f3 (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
# Created by: Markus Brueffer <markus@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ktorrent
DISTVERSION=	4.3.1
PORTREVISION=	6
CATEGORIES=	net-p2p kde
MASTER_SITES=	http://ktorrent.org/downloads/${DISTVERSION}/

MAINTAINER=	kde@FreeBSD.org
COMMENT=	BitTorrent client for KDE

BUILD_DEPENDS=	${LOCALBASE}/include/boost/bind.hpp:devel/boost-libs
LIB_DEPENDS=	libtag.so:audio/taglib \
		libgmp.so:math/gmp \
		libktorrent.so:net-p2p/libktorrent

USES=		cmake:outsource gettext kde:4 tar:bzip2
USE_KDE=	kdelibs automoc4 pimlibs workspace
USE_QT4=	corelib gui network qt3support qtestlib webkit \
		qmake_build moc_build rcc_build uic_build
USE_LDCONFIG=	yes

CONFLICTS_BUILD=	ktorrent-2*

SHLIB_VER=	15.0.0
PLIST_SUB+=	SHLIB_VER=${SHLIB_VER} \
		SHLIB_SHVER=${SHLIB_VER:R:R}

CMAKE_ARGS+=	-DENABLE_KIO_MAGNET=1

post-patch:
	${REINPLACE_CMD} -e 's,ktorrent,$${LIBKTORRENT_LIBRARIES},' \
		${WRKSRC}/plugins/ipfilter/tests/CMakeLists.txt

.include <bsd.port.mk>
OpenPOWER on IntegriCloud