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/ |