aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/qbittorrent/Makefile
blob: cdab4e4ad3bec66e35d469bb028493f470eebe95 (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
# $FreeBSD$

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

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

LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo \
		torrent-rasterbar.7:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16

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

MAKE_JOBS_SAFE=	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

.include <bsd.port.pre.mk>

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

post-patch:
	@${REINPLACE_CMD} -e 's,qputenv,!&,' ${WRKSRC}/src/main.cpp

post-install:
.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.post.mk>