aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/qbittorrent/Makefile
blob: ab38fe516aefeb2bda95e1e495b97b5a573b8a3b (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
65
# New ports collection makefile for:    qbittorrent
# Date created:             2007-04-01
# Whom:                 alepulver
#
# $FreeBSD$
#

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

MAINTAINER= dougb@FreeBSD.org
COMMENT=    Bittorrent client using Qt4 and libtorrent-rasterbar

LIB_DEPENDS=    execinfo.1:${PORTSDIR}/devel/libexecinfo \
        GeoIP.5:${PORTSDIR}/net/GeoIP

NO_LATEST_LINK= yes
DEPRECATED= The most recent release version is in net-p2p/qbittorrent-22
EXPIRATION_DATE=    2010-05-01

MAKE_JOBS_SAFE= yes

CONFLICTS=  qbittorrent*-2.2.*

OPTIONS=    NOTIFY "Enable libnotify support" on \
        LT_15 "Use 0.15 (devel) version of libtorrent-rasterbar" off

USE_QT_VER= 4
QT_COMPONENTS=  corelib gui network xml \
        moc_build qmake_build rcc_build uic_build
QT_NONSTANDARD= yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --with-libboost-inc="${LOCALBASE}/include"
INSTALLS_ICONS= yes

MAN1=       qbittorrent.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NOTIFY)
LIB_DEPENDS+=   notify.1:${PORTSDIR}/devel/libnotify
.else
CONFIGURE_ARGS+=    --disable-libnotify
.endif

.if defined(WITH_LT_15)
LIB_DEPENDS+=   torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15
.else
LIB_DEPENDS+=   torrent-rasterbar.5:${PORTSDIR}/net-p2p/libtorrent-rasterbar-14
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|$$$$PREFIX/share/man|${MANPREFIX}/man|' \
        ${WRKSRC}/src/src.pro
    @${ECHO_CMD} "LIBS+= -lexecinfo" >> ${WRKSRC}/src/src.pro
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/configure

post-install:
    @${STRIP_CMD} ${PREFIX}/bin/qbittorrent

.include <bsd.port.post.mk>