blob: a791b9d10ceca0d83a9658d155ace143a5127393 (
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
61
62
63
64
|
# Created by: Doug Barton <dougb@FreeBSD.org>
# $FreeBSD$
PORTNAME= qbittorrent
DISTVERSION= 4.1.4
PORTREVISION= 2
CATEGORIES= net-p2p ipv6
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Bittorrent client using Qt4/5 and libtorrent-rasterbar
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
libboost_system.so:devel/boost-libs
FLAVORS= default nox
FLAVOR?= ${FLAVORS:[1]}
default_LIB_DEPENDS= libGeoIP.so:net/GeoIP
nox_PKGNAMESUFFIX= -nox
nox_PLIST= ${NONEXISTENT}
USES= compiler:c++11-lib pkgconfig qmake:no_env qt:5 tar:xz
GNU_CONFIGURE= yes
USE_QT= core network xml buildtools_build linguisttools_build qmake_build
CONFIGURE_ARGS= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
DESTDIRNAME= INSTALL_ROOT
.if ${FLAVOR} == default
USES+= desktop-file-utils gl
USE_QT+= concurrent gui svg widgets
USE_GL= gl
.endif
.if ${FLAVOR} == nox
SUFFIX= -nox
COMMENT+= (web UI version)
CONFIGURE_ARGS+= --disable-gui
PLIST_FILES= bin/qbittorrent${SUFFIX} \
man/man1/qbittorrent${SUFFIX}.1.gz
.endif
OPTIONS_DEFINE= DBUS DEBUG DOCS
OPTIONS_DEFAULT= DBUS
DEBUG_CONFIGURE_ENABLE= debug
DBUS_CONFIGURE_ENABLE= qt-dbus
DBUS_USE= qt=dbus
PORTDOCS= AUTHORS Changelog README.md
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbittorrent${SUFFIX}
${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent${SUFFIX}.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/
@${RM} -r ${STAGEDIR}${PREFIX}/share/man
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|