2013-11-06 12:59:17 +01:00
|
|
|
# Created by: Doug Barton <dougb@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libtorrent-rasterbar
|
2014-11-29 08:57:13 +01:00
|
|
|
PORTVERSION= 0.16.17
|
|
|
|
PORTREVISION= 1
|
2013-11-06 12:59:17 +01:00
|
|
|
CATEGORIES?= net-p2p ipv6
|
2014-02-03 23:43:37 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME:S/-rasterbar//}/${PORTNAME:S/-rasterbar//}/
|
2013-11-06 12:59:17 +01:00
|
|
|
|
2014-11-23 09:34:04 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-11-06 12:59:17 +01:00
|
|
|
COMMENT?= C++ library implementing a BitTorrent client
|
|
|
|
|
2014-02-03 23:43:37 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2013-11-06 12:59:17 +01:00
|
|
|
|
2014-01-14 19:32:32 +01:00
|
|
|
LIB_DEPENDS?= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
|
2013-11-06 12:59:17 +01:00
|
|
|
libGeoIP.so:${PORTSDIR}/net/GeoIP
|
|
|
|
|
2015-01-06 14:59:35 +01:00
|
|
|
USES+= compiler:c++11-lang libtool pathfix pkgconfig iconv
|
2013-11-06 12:59:17 +01:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2014-02-13 23:58:14 +01:00
|
|
|
CONFIGURE_ARGS= --disable-static \
|
2013-11-06 12:59:17 +01:00
|
|
|
--enable-dht \
|
|
|
|
--enable-encryption \
|
|
|
|
--enable-pool-allocators \
|
|
|
|
--enable-deprecated-functions \
|
|
|
|
--with-boost=${LOCALBASE} \
|
|
|
|
--with-boost-system=boost_system \
|
|
|
|
--enable-geoip \
|
|
|
|
--with-libgeoip \
|
|
|
|
--with-libiconv \
|
|
|
|
--with-openssl=${OPENSSLBASE}
|
|
|
|
|
2014-02-03 23:43:37 +01:00
|
|
|
SHLIB_VER= 7
|
|
|
|
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
|
2013-11-06 12:59:17 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
2014-03-25 12:10:59 +01:00
|
|
|
DOC_FILES1= AUTHORS ChangeLog README
|
2013-11-06 12:59:17 +01:00
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/docs
|
|
|
|
DOCSDIR2= ${DOCSDIR}/docs
|
2014-03-25 12:10:59 +01:00
|
|
|
DOC_FILES2= *
|
2013-11-06 12:59:17 +01:00
|
|
|
|
|
|
|
PORTEXAMPLES= *.cpp
|
|
|
|
|
2014-02-13 23:58:14 +01:00
|
|
|
OPTIONS_DEFINE= DEBUG DOCS EXAMPLES STRIP
|
2014-02-03 23:43:37 +01:00
|
|
|
OPTIONS_DEFAULT= STRIP
|
2013-11-06 12:59:17 +01:00
|
|
|
|
2014-02-13 23:58:14 +01:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
|
|
|
2013-12-30 16:54:51 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-11-22 20:29:20 +01:00
|
|
|
# Restrict to stable (even) versions, indicated by the second component.
|
|
|
|
# With Versions 1.x not build yet net-p2p/qbittorrent
|
|
|
|
PORTSCOUT= limit:^0.16\..*
|
|
|
|
|
2014-05-05 11:45:36 +02:00
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT:tl} == "yes" && defined(USE_PYTHON)
|
2013-11-06 12:59:17 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-python-binding \
|
|
|
|
--with-boost-python=boost_python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python-binding
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \
|
|
|
|
${WRKSRC}/Jamfile
|
|
|
|
|
|
|
|
post-install:
|
2014-02-03 23:43:37 +01:00
|
|
|
.if ${PORT_OPTIONS:MSTRIP}
|
|
|
|
${STRIP_CMD} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.${SHLIB_VER}
|
|
|
|
.else
|
|
|
|
${STRIP_CMD} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/site-packages/libtorrent.so
|
|
|
|
.endif
|
|
|
|
|
2014-03-25 12:10:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR2}
|
2013-11-06 12:59:17 +01:00
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
2014-03-25 12:10:59 +01:00
|
|
|
.endif
|
2013-11-06 12:59:17 +01:00
|
|
|
|
2014-03-25 12:10:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2013-11-06 12:59:17 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-01-14 19:32:32 +01:00
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
2014-03-25 12:10:59 +01:00
|
|
|
.endif
|
2013-11-06 12:59:17 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|