blob: 929395c36154580d57b66759361f0aeca1616f37 (
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
|
# New ports collection makefile for: libtorrent
# Date created: Jan 07 2005
# Whom: Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#
PORTNAME= libtorrent
PORTVERSION= 0.4.9
CATEGORIES= net
MASTER_SITES= http://libtorrent.rakshasa.no/downloads/
MAINTAINER= flz@FreeBSD.org
COMMENT= BitTorrent Library written in C++
LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl \
sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
USE_INC_LIBTOOL_VER= 13
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
USE_GCC= 3.4
.endif
pre-everything::
.if !defined(WITH_CLIENT) && ${OSVERSION} >= 500000
@${ECHO_MSG} '===>'
@${ECHO_MSG} '===> Define WITH_CLIENT to build libtorrent client'
@${ECHO_MSG} '===>'
.endif
post-patch:
@${REINPLACE_CMD} -e "s#\(pkgconfigdir =\).*#\1 ${PREFIX}/libdata/pkgconfig#" \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s#-Wall -O3 -g#${CFLAGS} -fpermissive#" \
${WRKSRC}/client/Makefile2
# uphold CXXFLAGS
@${REINPLACE_CMD} -E \
-e 's#^(CXXFLAGS[[:space:]]*=[[:space:]]*).*-O.*$$#\1${CXXFLAGS}#' \
-e 's#^(CFLAGS[[:space:]]*=[[:space:]]*).*-O.*$$#\1${CFLAGS}#' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITH_CLIENT)
.if ${OSVERSION} < 500000
BROKEN= "Client doesn't compile on 4.x"
.endif
PLIST_FILES= bin/rtorrent
post-build:
@(cd ${WRKSRC}/client; make -f Makefile2)
post-install:
@${INSTALL_PROGRAM} ${WRKSRC}/client/rtorrent ${PREFIX}/bin
.endif
.include <bsd.port.post.mk>
|