# New ports collection makefile for: rblibtorrent # Date created: 5 February 2006 # Whom: Johan Ström # # $FreeBSD: ports/net-p2p/rblibtorrent-devel/Makefile,v 1.12 2007/12/12 05:45:37 alepulver Exp $ # PORTNAME= libtorrent DISTVERSION= 0.13svn.r1806b CATEGORIES= net-p2p MASTER_SITES= SF/qbittorrent PKGNAMEPREFIX= rb PKGNAMESUFFIX= -devel MAINTAINER= alepulver@FreeBSD.org COMMENT= A C++ library implementing a BitTorrent client (devel version) LIB_DEPENDS= boost_date_time.4:${PORTSDIR}/devel/boost GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --disable-debug CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFLICTS= libtorrent-[0-9]* \ libtorrent-devel-[0-9]* \ rblibtorrent-[0-9]* .include .if ${OSVERSION} < 600000 BROKEN= does not build on FreeBSD 5.x .endif post-install: @cd ${PREFIX}/lib && ${MV} libtorrent-0.13.so libtorrent.so.1 && \ ${LN} -sf libtorrent.so.1 libtorrent.so @${REINPLACE_CMD} -i '' -e 's|libtorrent-0.13.so|libtorrent.so.1|g' \ ${PREFIX}/lib/libtorrent.la .include