summaryrefslogtreecommitdiff
path: root/net-p2p/libtorrent
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2007-02-01 14:59:39 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2007-02-01 14:59:39 +0000
commita0765952e2d927a22714897950e88cac01ec0137 (patch)
tree12b840abd379f14d00fcfacdfe0fd1f3ae43ca56 /net-p2p/libtorrent
parentUpdate to 1.4.3 (diff)
Fix build with OpenSSL from base.
Reported by: kris, itetcu, ...
Notes
Notes: svn path=/head/; revision=183867
Diffstat (limited to 'net-p2p/libtorrent')
-rw-r--r--net-p2p/libtorrent/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile
index 0549dda83e13..8c61b0131cfe 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 <bsd.port.pre.mk>
CONFIGURE_ARGS+= --disable-debug --with-openssl=${OPENSSLBASE}