freebsd-ports/net-p2p/libtorrent/Makefile
Florent Thoumie 6d3eeda668 Only add extra patches if they are present.
PR:		ports/128775 [1], ports/128807 [2], ports/128921 [3]
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> [1]
		Jimmie James <jimmiejaz@gmail.com> [2]
		Falko Richter <xendorphin@gmail.com> [3]
2008-11-16 22:22:06 +00:00

55 lines
1.4 KiB
Makefile

# New ports collection makefile for: libtorrent
# Date created: Jan 07 2005
# Whom: Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#
PORTNAME?= libtorrent
PORTVERSION?= 0.11.9
PORTREVISION?= 0
CATEGORIES= net-p2p
MASTER_SITES= http://libtorrent.rakshasa.no/downloads/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= flz/libtorrent
MAINTAINER?= flz@FreeBSD.org
COMMENT?= BitTorrent Library written in C++
LIB_DEPENDS= sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
CONFLICTS?= libtorrent-devel-[0-9]* \
rblibtorrent-[0-9]* \
rblibtorrent-devel-[0-9]*
USE_AUTOTOOLS= libtool:15
USE_GNOME= pkgconfig gnomehack
USE_OPENSSL= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
.if exists(${.CURDIR}/files/stable-*)
EXTRA_PATCHES?= ${.CURDIR}/files/stable-*
.endif
OPTIONS= KQUEUE "Use kqueue(2) support" on
.include <bsd.port.pre.mk>
.if defined(WITH_OPENSSL_BASE)
# The reason why I use this is cause openssl from base doesn't install a .pc file
# and configure will fail trying to find it. Setting both of those variables to
# a *non-empty* value by-passes the pkg-config check.
CONFIGURE_ENV= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/include"
.endif
CONFIGURE_ARGS+= --disable-debug --with-openssl=${OPENSSLBASE}
post-patch:
@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure
.if !defined(WITHOUT_KQUEUE)
CONFIGURE_ARGS+= --with-kqueue
.endif
.include <bsd.port.post.mk>