aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2013-07-15 12:56:17 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2013-07-15 12:56:17 +0000
commit5b8e439847860a07a33d423d74efe3181fe17323 (patch)
tree84ff5484233a4e8f468c22c956e546d2240d2004 /net
parentd1e3b2cc2273d407f5948909abb136fc9d978809 (diff)
Make sure the binaries are linked against the port OpenSSL libraries when
and only when WITH_OPENSSL_PORT is defined. PR: 180395 (based on) Submitted by: "r4721@tormail.org" <r4721@tormail.org>
Notes
Notes: svn path=/head/; revision=323029
Diffstat (limited to 'net')
-rw-r--r--net/socat/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile
index b787ecd55320..eb55cb23c577 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -3,6 +3,7 @@
PORTNAME= socat
PORTVERSION= 1.7.2.2
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.dest-unreach.org/socat/download/ \
CRITICAL
@@ -28,6 +29,11 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
+.if defined(WITH_OPENSSL_PORT)
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.endif
+
.if(${OSVERSION} >= 1000024)
CCISCLANG!= ${CC} --version | ${HEAD} -1 | ${GREP} 'clang'
.endif