2010-02-22 01:53:10 +01:00
|
|
|
# New ports collection makefile for: libtorrent-rasterbar-15
|
|
|
|
# Date created: 14 February 2010
|
|
|
|
# Whom: dougb@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libtorrent-rasterbar
|
2011-04-16 21:02:14 +02:00
|
|
|
PORTVERSION= 0.15.6
|
2010-07-01 09:16:03 +02:00
|
|
|
PORTREVISION?= 0
|
|
|
|
CATEGORIES?= net-p2p ipv6
|
2010-04-06 08:28:28 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
PROJECTHOST= libtorrent
|
2010-02-22 01:53:10 +01:00
|
|
|
|
|
|
|
MAINTAINER= dougb@FreeBSD.org
|
2010-07-01 09:16:03 +02:00
|
|
|
COMMENT?= A C++ library implementing a BitTorrent client
|
2010-02-22 01:53:10 +01:00
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2010-07-01 09:16:03 +02:00
|
|
|
CONFLICTS+= libtorrent-rasterbar-0.14.*
|
2010-02-22 01:53:10 +01:00
|
|
|
|
2010-04-06 19:50:07 +02:00
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
2010-07-01 09:16:03 +02:00
|
|
|
LIB_DEPENDS+= boost_date_time.4:${PORTSDIR}/devel/boost-libs \
|
2010-02-22 01:53:10 +01:00
|
|
|
GeoIP.5:${PORTSDIR}/net/GeoIP
|
|
|
|
|
|
|
|
USE_GNOME= gnomehack
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2010-07-01 09:16:03 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS+= --disable-debug \
|
|
|
|
--disable-static \
|
2010-02-22 01:53:10 +01:00
|
|
|
--enable-dht \
|
|
|
|
--enable-encryption \
|
|
|
|
--enable-pool-allocators \
|
2010-07-01 09:16:03 +02:00
|
|
|
--enable-deprecated-functions \
|
|
|
|
--with-boost=${LOCALBASE} \
|
2010-02-22 01:53:10 +01:00
|
|
|
--with-boost-system=boost_system \
|
|
|
|
--with-boost-filesystem=boost_filesystem \
|
|
|
|
--with-boost-thread=boost_thread \
|
|
|
|
--enable-geoip \
|
|
|
|
--with-libgeoip \
|
2010-07-01 09:16:03 +02:00
|
|
|
--with-zlib=system
|
2010-02-22 01:53:10 +01:00
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2010-03-16 19:02:30 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-07-01 09:16:03 +02:00
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" && defined(USE_PYTHON)
|
|
|
|
CONFIGURE_ARGS+= --enable-python-binding \
|
2010-07-01 10:46:24 +02:00
|
|
|
--with-boost-python=boost_python
|
2010-07-01 09:16:03 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python-binding
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
|
|
|
|
post-patch: slave-post-patch
|
|
|
|
.else
|
|
|
|
post-patch:
|
2011-01-08 08:56:08 +01:00
|
|
|
${MV} ${WRKSRC}/include/libtorrent/alloca.hpp \
|
|
|
|
${WRKSRC}/include/libtorrent/alloca.hpp.Dist
|
|
|
|
${SED} -e 's#alloca.h#stdlib.h#g' \
|
|
|
|
${WRKSRC}/include/libtorrent/alloca.hpp.Dist > \
|
|
|
|
${WRKSRC}/include/libtorrent/alloca.hpp
|
2010-07-01 09:16:03 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
|
|
|
|
post-install: slave-post-install
|
|
|
|
.else
|
2010-02-22 01:53:10 +01:00
|
|
|
post-install:
|
2010-07-01 09:16:03 +02:00
|
|
|
.endif
|
2010-02-22 01:53:10 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.css ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.png ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2010-03-16 19:02:30 +01:00
|
|
|
.include <bsd.port.post.mk>
|