# New ports collection makefile for:	libtorrent
# Date created:				Jan 07 2005
# Whom:					Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD: ports/net/libtorrent/Makefile,v 1.16 2005/08/01 09:13:24 flz Exp $
#

PORTNAME=	libtorrent
PORTVERSION=	0.7.0.1
CATEGORIES=	net
MASTER_SITES=	http://libtorrent.rakshasa.no/downloads/
DISTNAME=	${PORTNAME}-0.7.0-1

MAINTAINER=	flz@FreeBSD.org
COMMENT=	BitTorrent Library written in C++

LIB_DEPENDS=	sigc-2.0.0:${PORTSDIR}/devel/libsigc++20

USE_GCC=	3.4
USE_GNOME=	pkgconfig gnomehack
USE_REINPLACE=	yes
INSTALLS_SHLIB=	yes
USE_INC_LIBTOOL_VER=	13
CONFIGURE_ARGS=	--disable-debug
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}

post-patch:
	@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure

.include <bsd.port.mk>
