View | Details | Raw Unified | Return to bug 209132 | Differences between
and this patch

Collapse All | Expand All

(-)net-p2p/qbittorrent/Makefile (-48 / +30 lines)
Lines 2-87 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	qbittorrent
4
PORTNAME=	qbittorrent
5
PORTVERSION=	3.3.3
5
PORTVERSION=	3.3.7
6
DISTVERSIONPREFIX=	release-
7
CATEGORIES=	net-p2p ipv6
6
CATEGORIES=	net-p2p ipv6
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
8
8
9
MAINTAINER=	yuri@rawbw.com
9
MAINTAINER=	yuri@rawbw.com
10
COMMENT?=	Bittorrent client using Qt4 and libtorrent-rasterbar
10
COMMENT?=	Bittorrent client using Qt4/5 and libtorrent-rasterbar
11
11
12
LICENSE=	GPLv2
12
LICENSE=	GPLv2
13
13
14
BROKEN=		fails to build
15
16
# ABI versions specified on purpose for libtorrent-rasterbar
17
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
14
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
18
		libboost_system.so:devel/boost-libs
15
		libboost_system.so:devel/boost-libs
19
16
20
USE_GITHUB=	yes
17
USES=		compiler:c++11-lib execinfo pkgconfig tar:xz
21
GH_ACCOUNT=	qBittorrent
18
QT4_USE=	QT4=corelib,network,xml,qmake_build,linguisttools_build,moc_build,rcc_build,uic_build
22
GH_PROJECT=	qBittorrent
19
QT5_USE=	QT5=core,network,xml,qmake_build,buildtools_build,linguisttools_build
23
24
USES=		compiler:c++11-lang execinfo pkgconfig tar:xz
25
QT4_USE=	QT4=corelib,network,qmake_build,linguisttools_build,moc_build,rcc_build,uic_build
26
QT5_USE=	QT5=core,concurrent,network,widgets,qmake_build,buildtools_build,linguisttools_build
27
QT_NONSTANDARD=	yes
20
QT_NONSTANDARD=	yes
28
DESTDIRNAME=	INSTALL_ROOT
21
DESTDIRNAME=	INSTALL_ROOT
22
GNU_CONFIGURE=	yes
29
23
30
.if !defined(SLAVE_PORT)
31
LIB_DEPENDS+=	libGeoIP.so:net/GeoIP
32
USES+=		desktop-file-utils
33
QT4_USE+=	QT4=gui,xml
34
QT5_USE+=	QT5=gui,xml
35
INSTALLS_ICONS=	yes
36
OPTIONS_DEFINE=	DBUS
37
.endif
38
39
PORTDOCS=	AUTHORS Changelog README.md
24
PORTDOCS=	AUTHORS Changelog README.md
40
25
41
OPTIONS_DEFINE=		DEBUG DOCS DBUS
26
OPTIONS_DEFINE=		DBUS DEBUG DOCS
42
OPTIONS_RADIO=		QT
27
OPTIONS_SINGLE=		QT
43
OPTIONS_RADIO_QT=	QT4 QT5
28
OPTIONS_SINGLE_QT=	QT4 QT5
44
OPTIONS_DEFAULT=	QT4
29
OPTIONS_DEFAULT=	QT5
45
OPTION_QT=		${SELECTED_OPTIONS:MQT*}
30
OPTION_QT=		${SELECTED_OPTIONS:MQT*}
46
31
47
DEBUG_CONFIGURE_ENABLE=	debug
32
DEBUG_CONFIGURE_ENABLE=	debug
48
DBUS_CONFIGURE_ENABLE=	qt-dbus
33
DBUS_CONFIGURE_ENABLE=	qt-dbus
34
QT4_CONFIGURE_ON=	--with-qt4
49
35
36
.if defined(SLAVE_PORT) && ${SLAVE_PORT:tl} != "no"
37
CONFIGURE_ARGS+=	--disable-gui
38
.else
39
LIB_DEPENDS+=		libGeoIP.so:net/GeoIP
40
USES+=			desktop-file-utils
41
QT4_USE+=		QT4=gui
42
QT5_USE+=		QT5=concurrent,gui,widgets GL=gl
43
OPTIONS_DEFAULT+=	DBUS
44
.endif
45
46
BROKEN_FreeBSD_9=	needs more C++11 support than 9.x offers
47
50
.include <bsd.port.options.mk>
48
.include <bsd.port.options.mk>
51
49
52
# Qt4 fails to detect base clang features, this section corrects it
53
.if ${PORT_OPTIONS:MQT4}
54
CXXFLAGS+=		-DQ_COMPILER_INITIALIZER_LISTS
55
.endif
56
57
.if ${PORT_OPTIONS:MDBUS}
50
.if ${PORT_OPTIONS:MDBUS}
58
USE_${OPTION_QT}+=	dbus
51
USE_${OPTION_QT}+=	dbus
59
.endif
52
.endif
60
53
61
CXXFLAGS+=		-DBOOST_ASIO_DYN_LINK
54
CONFIGURE_ARGS+=	CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
62
CONFIGURE_ENV+=		zlib_CFLAGS=-I/usr/include
63
CONFIGURE_ENV+=		zlib_LIBS=-lz
64
CONFIGURE_ARGS+=	CXXFLAGS="${CXXFLAGS}"
65
CONFIGURE_ARGS+=	--with-${OPTION_QT:tl}
66
55
67
GNU_CONFIGURE=	yes
68
USE_OPENSSL=	yes
69
70
post-patch:
56
post-patch:
71
.if ${PORT_OPTIONS:MQT4}
57
.if ${PORT_OPTIONS:MQT4}
72
	${REINPLACE_CMD} 's,^\$$QT_QMAKE,${LOCALBASE}/bin/qmake-qt4,'	\
58
	${REINPLACE_CMD} 's,^\$$QT_QMAKE,${LOCALBASE}/bin/qmake-qt4,' \
73
	    ${WRKSRC}/${CONFIGURE_SCRIPT}
59
		${WRKSRC}/${CONFIGURE_SCRIPT}
74
.else
60
.else
75
	${REINPLACE_CMD} 's,^\$$QT_QMAKE,${LOCALBASE}/lib/qt5/bin/qmake,'	\
61
	${REINPLACE_CMD} 's,^\$$QT_QMAKE,${LOCALBASE}/lib/qt5/bin/qmake,' \
76
	    ${WRKSRC}/${CONFIGURE_SCRIPT}
62
		${WRKSRC}/${CONFIGURE_SCRIPT}
77
.endif
63
.endif
78
64
79
.if !defined(SLAVE_PORT) || ${SLAVE_PORT:tl} != "no"
80
CONFIGURE_ARGS+=	--disable-gui
81
.endif
82
83
post-install:
65
post-install:
84
.if defined(SLAVE_PORT) && ${SLAVE_PORT:tl} == "no"
66
.if !defined(SLAVE_PORT) || ${SLAVE_PORT:tl} == "no"
85
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbittorrent
67
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbittorrent
86
	${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent.1 \
68
	${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent.1 \
87
		${STAGEDIR}${MAN1PREFIX}/man/man1/
69
		${STAGEDIR}${MAN1PREFIX}/man/man1/
(-)net-p2p/qbittorrent/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (qBittorrent-qBittorrent-release-3.3.3_GH0.tar.gz) = 04f03623be427294238f119d1ab3311e8560a091778f12df03cc9380fad2c6d9
1
TIMESTAMP = 1473733537
2
SIZE (qBittorrent-qBittorrent-release-3.3.3_GH0.tar.gz) = 4984105
2
SHA256 (qbittorrent-3.3.7.tar.xz) = 72dc824a90fadc0825e6be6f1c215e38f976262c7f83b625061d542b2b664c40
3
SIZE (qbittorrent-3.3.7.tar.xz) = 2884792
(-)net-p2p/qbittorrent/files/patch-src_base_utils_string.cpp (+31 lines)
Line 0 Link Here
1
--- src/base/utils/string.cpp.orig	2016-09-23 15:05:18 UTC
2
+++ src/base/utils/string.cpp
3
@@ -37,7 +37,7 @@
4
 #ifdef QBT_USES_QT5
5
 #include <QCollator>
6
 #endif
7
-#ifdef Q_OS_MAC
8
+#if defined(Q_OS_MAC) || (defined(__FreeBSD__) && __FreeBSD_version < 1003506)
9
 #include <QThreadStorage>
10
 #endif
11
 
12
@@ -146,7 +146,8 @@ bool Utils::String::naturalCompareCaseSe
13
 {
14
     // provide a single `NaturalCompare` instance for easy use
15
     // https://doc.qt.io/qt-5/threads-reentrancy.html
16
-#ifdef Q_OS_MAC  // workaround for Apple xcode: https://stackoverflow.com/a/29929949
17
+#if defined(Q_OS_MAC) || (defined(__FreeBSD__) && __FreeBSD_version < 1003506)
18
+// workaround for Apple xcode: https://stackoverflow.com/a/29929949
19
     static QThreadStorage<NaturalCompare> nCmp;
20
     if (!nCmp.hasLocalData()) nCmp.setLocalData(NaturalCompare(true));
21
     return (nCmp.localData())(left, right);
22
@@ -160,7 +161,8 @@ bool Utils::String::naturalCompareCaseIn
23
 {
24
     // provide a single `NaturalCompare` instance for easy use
25
     // https://doc.qt.io/qt-5/threads-reentrancy.html
26
-#ifdef Q_OS_MAC  // workaround for Apple xcode: https://stackoverflow.com/a/29929949
27
+#if defined(Q_OS_MAC) || (defined(__FreeBSD__) && __FreeBSD_version < 1003506)
28
+// workaround for Apple xcode: https://stackoverflow.com/a/29929949
29
     static QThreadStorage<NaturalCompare> nCmp;
30
     if (!nCmp.hasLocalData()) nCmp.setLocalData(NaturalCompare(false));
31
     return (nCmp.localData())(left, right);

Return to bug 209132