freebsd-ports/net-p2p/libtorrent-rasterbar-16/Makefile
Marcus von Appen a3a0715f38 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	zeising
2013-04-27 11:59:28 +00:00

75 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.16.7
PORTREVISION?= 2
CATEGORIES?= net-p2p ipv6
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= libtorrent
MAINTAINER= ports@FreeBSD.org
COMMENT?= C++ library implementing a BitTorrent client
MAKE_JOBS_SAFE= yes
CONFLICTS+= libtorrent-rasterbar-0.1[45789].*
NO_LATEST_LINK= yes
LIB_DEPENDS+= boost_date_time:${PORTSDIR}/devel/boost-libs \
GeoIP:${PORTSDIR}/net/GeoIP
GNU_CONFIGURE= yes
USES= pathfix pkgconfig iconv
USE_LDCONFIG= yes
USE_OPENSSL= 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-libiconv \
--with-openssl=${OPENSSLBASE}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.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:
@${REINPLACE_CMD} -e 's|<include>/usr/local/include|<include>${PREFIX}/include|' \
${WRKSRC}/Jamfile
.endif
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L} == "yes"
post-install: slave-post-install
.else
post-install:
.endif
.if ${PORT_OPTIONS:MDOCS}
@${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
.include <bsd.port.post.mk>