From d5cf0707ece3f10c7cae428db95183eacc327281 Mon Sep 17 00:00:00 2001 From: flz Date: Thu, 1 Feb 2007 14:59:39 +0000 Subject: Fix build with OpenSSL from base. Reported by: kris, itetcu, ... --- net-p2p/libtorrent/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'net-p2p') diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile index 0549dda83e1..8c61b0131cf 100644 --- a/net-p2p/libtorrent/Makefile +++ b/net-p2p/libtorrent/Makefile @@ -32,6 +32,13 @@ EXTRA_PATCHES?= ${.CURDIR}/files/stable-* OPTIONS= KQUEUE "Use kqueue(2) support" on +.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 + .include CONFIGURE_ARGS+= --disable-debug --with-openssl=${OPENSSLBASE} -- cgit