From 241e42f9a7121576a1ce5cb97d17d65d630bd3a9 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Mon, 15 Jul 2013 12:56:17 +0000 Subject: 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" --- net/socat/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net') 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 +.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 -- cgit