blob: fb629d98e6b49fc0ec920a710f0387bbe03beed4 (
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
|
# Created by: Florent Thoumie <flz@FreeBSD.org>
# $FreeBSD$
PORTNAME= libtorrent-devel
PORTVERSION= 0.13.3
PORTREVISION= 0
CATEGORIES= net-p2p
MASTER_SITES= http://libtorrent.rakshasa.no/downloads/
DISTNAME= ${PORTNAME:S/-devel//}-${PORTVERSION}
MAINTAINER= az@FreeBSD.org
COMMENT= BitTorrent Library written in C++ (development version)
LIB_DEPENDS= sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
CONFLICTS= libtorrent-[0-9]* \
rblibtorrent-[0-9]* \
rblibtorrent-devel-[0-9]*
USE_AUTOTOOLS= libtool
USES= pathfix
USE_PKGCONFIG= build
USE_OPENSSL= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
OPTIONS_DEFINE= KQUEUE IPV6
OPTIONS_DEFAULT= KQUEUE
KQUEUE_DESC= Use kqueue(2) support
.include <bsd.port.pre.mk>
.if defined(WITH_OPENSSL_BASE)
# The reason why I use this is cause openssl from base doesn't install a .pc file
# and configure will fail trying to find it. Setting both of those variables to
# a *non-empty* value by-passes the pkg-config check.
CONFIGURE_ENV= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/include"
.endif
CONFIGURE_ARGS+= --disable-debug
post-patch:
@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+= --with-kqueue
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
.include <bsd.port.post.mk>
|