freebsd-ports/net-p2p/libtorrent-rasterbar-16/Makefile
Doug Barton ebc95b3fa4 0.16.3 release
* fix python binding backwards compatibility in replace_trackers
 * fix possible starvation in metadata extension
 * fix crash when creating torrents/optimizing file order with pad files
 * disable support for large MTUs in uTP until it is more reliable
 * expose post_torrent_updates and state_update_alert to python bindings
 * fix incorrect SSL error messages
 * fix race condition causing shutdown hang
2012-09-02 06:33:26 +00:00

81 lines
2.1 KiB
Makefile

# New ports collection makefile for: libtorrent-rasterbar-16
# Date created: 5 May 2012
# Whom: Doug Barton, dougb@FreeBSD.org
#
# $FreeBSD$
PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.16.3
CATEGORIES?= net-p2p ipv6
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= libtorrent
MAINTAINER= dougb@FreeBSD.org
COMMENT?= A C++ library implementing a BitTorrent client
MAKE_JOBS_SAFE= yes
CONFLICTS+= libtorrent-rasterbar-0.1[45789].*
NO_LATEST_LINK= yes
BUILD_DEPENDS= pkgconf>0:${PORTSDIR}/devel/pkgconf
LIB_DEPENDS+= boost_date_time.4:${PORTSDIR}/devel/boost-libs \
GeoIP.5:${PORTSDIR}/net/GeoIP
USE_GNOME= gnomehack
USE_OPENSSL= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-debug \
--disable-static \
--enable-dht \
--enable-encryption \
--enable-pool-allocators \
--enable-deprecated-functions \
--with-boost=${LOCALBASE} \
--with-boost-system=boost_system \
--enable-geoip \
--with-libgeoip \
--with-openssl=${OPENSSLBASE}
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" && defined(USE_PYTHON)
CONFIGURE_ARGS+= --enable-python-binding \
--with-boost-python=boost_python
.else
CONFIGURE_ARGS+= --disable-python-binding
.endif
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
post-patch: slave-post-patch
.else
post-patch:
@${CP} ${WRKSRC}/Jamfile ${WRKSRC}/Jamfile.presed
@${SED} -e 's#<include>/usr/local/include#<include>${LOCALBASE}/include#' \
${WRKSRC}/Jamfile.presed > ${WRKSRC}/Jamfile
${CP} ${WRKSRC}/include/libtorrent/file.hpp ${WRKSRC}/include/libtorrent/file.hpp.presed
${SED} -e "35s,.*,#include <sys/stat.h>," ${WRKSRC}/include/libtorrent/file.hpp.presed > \
${WRKSRC}/include/libtorrent/file.hpp
.endif
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
post-install: slave-post-install
.else
post-install:
.endif
.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}
PORTDOCS= *
.endif
.include <bsd.port.post.mk>