summaryrefslogtreecommitdiff
path: root/net-p2p/qbittorrent/Makefile
blob: 623d4b3e1b64f996a9cc2401db2c07179cd8c6e1 (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
60
# Created by: Doug Barton <dougb@FreeBSD.org>
# $FreeBSD$

PORTNAME=	qbittorrent
PORTVERSION=	3.0.10
PORTREVISION?=	1
CATEGORIES=	net-p2p ipv6
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/

MAINTAINER=	nemysis@gmx.ch
COMMENT?=	Bittorrent client using Qt4 and libtorrent-rasterbar

LICENSE=	GPLv2

# ABI versions specified on purpose for libtorrent-rasterbar
LIB_DEPENDS=	torrent-rasterbar.7:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16 \
		execinfo:${PORTSDIR}/devel/libexecinfo \

USES=		pkgconfig
HAS_CONFIGURE=	yes
USE_QT4=	corelib network qmake_build moc_build rcc_build
QT_NONSTANDARD=	yes

MAN1?=		qbittorrent.1

.if !defined(QB_NOX_SLAVE)
LIB_DEPENDS+=	GeoIP:${PORTSDIR}/net/GeoIP
USE_QT4+=	gui xml uic_build
INSTALLS_ICONS=	yes
OPTIONS_DEFINE=	DBUS
.else
CONFIGURE_ARGS+=	--disable-gui
.endif

PORTDOCS=	AUTHORS Changelog README TODO

OPTIONS_DEFINE=	DOCS DBUS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDBUS}
USE_QT4+=	dbus
.else
CONFIGURE_ARGS+=	--disable-qt-dbus
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.if !defined(QB_NOX_SLAVE)
	@${STRIP_CMD} ${PREFIX}/bin/qbittorrent
.else
	@${STRIP_CMD} ${PREFIX}/bin/qbittorrent-nox
	${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent-nox.1 ${MAN1PREFIX}/man/man1
.endif

.include <bsd.port.mk>