Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-p2p/libtorrent-rasterbar-14/Makefile,v retrieving revision 1.37 diff -d -u -u -r1.37 Makefile --- Makefile 21 Mar 2010 00:02:47 -0000 1.37 +++ Makefile 15 Jun 2010 10:13:27 -0000 @@ -12,22 +12,22 @@ PROJECTHOST= libtorrent MAINTAINER= dougb@FreeBSD.org -COMMENT= A C++ library implementing a BitTorrent client +COMMENT?= A C++ library implementing a BitTorrent client -LIB_DEPENDS= boost_date_time.4:${PORTSDIR}/devel/boost-libs \ +BUILD_DEPENDS+= boost-libs>=1.41_1:${PORTSDIR}/devel/boost-libs +LIB_DEPENDS+= boost_date_time.4:${PORTSDIR}/devel/boost-libs \ GeoIP.5:${PORTSDIR}/net/GeoIP MAKE_JOBS_SAFE= yes -CONFLICTS= rblibtorrent-[0-9]* libtorrent-rasterbar*-0.15.* +CONFLICTS+= rblibtorrent-[0-9]* libtorrent-rasterbar*-0.15.* USE_GNOME= gnomehack USE_OPENSSL= yes USE_AUTOTOOLS= aclocal:110 automake:110 autoconf:262 libtool:22 ACLOCAL_ARGS= -I m4 -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS= --disable-debug \ - --disable-python-binding \ +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ARGS+= --disable-debug \ --with-boost=${LOCALBASE} \ --with-boost-asio=boost_system \ --with-boost-system=boost_system \ @@ -41,8 +41,8 @@ --with-zlib=system USE_LDCONFIG= yes -CPPFLAGS= ${PTHREAD_CFLAGS} -LDFLAGS= ${PTHREAD_LIBS} +CPPFLAGS+= ${PTHREAD_CFLAGS} +LDFLAGS+= ${PTHREAD_LIBS} .if !defined(NOPORTDOCS) PORTDOCS= * @@ -50,17 +50,32 @@ .include +.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 ${OSVERSION} < 700000 BROKEN= does not compile on FreeBSD versions prior to 7.x .endif +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" +post-patch: slave-post-patch +.else post-patch: +.endif @${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|g' \ ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g' \ ${WRKSRC}/src/Makefile.am +.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}