Fix libtorrent-devel when WITH_OPENSSL_BASE isn't defined.

This commit is contained in:
Florent Thoumie 2007-02-05 21:40:58 +00:00
parent c78a42b444
commit 9ca8677594
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184315

View File

@ -32,6 +32,8 @@ EXTRA_PATCHES?= ${.CURDIR}/files/stable-*
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
@ -39,8 +41,6 @@ OPTIONS= KQUEUE "Use kqueue(2) support" on
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}
post-patch: