summaryrefslogtreecommitdiff
path: root/www/apache13-modssl/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-05-08 05:53:18 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-05-08 05:53:18 +0000
commitef8f6234a11294faf35b940f0105f2d0d535dc19 (patch)
treec4bb7c8606b45feaa81246869a6b09d24ed4f44d /www/apache13-modssl/Makefile
parentAllow suck build with SSL in the base if its new enouth, (diff)
- make it work with newer SSL
( same hack as in suck, openssh and openssh-portable ) USE_OPENSSL should be improved, see PR: ports/36080 PR: 36080
Notes
Notes: svn path=/head/; revision=58689
Diffstat (limited to '')
-rw-r--r--www/apache13-modssl/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/www/apache13-modssl/Makefile b/www/apache13-modssl/Makefile
index d39c61eab371..d7061df626b8 100644
--- a/www/apache13-modssl/Makefile
+++ b/www/apache13-modssl/Makefile
@@ -78,9 +78,19 @@ CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
-fexpensive-optimizations -ffast-math
.endif
+.if ${OSVERSION} < 430000 || exists(${LOCALBASE}/lib/libcrypto.so.3)
+OPENSSLBASE= ${LOCALBASE}
+OPENSSLDIR= ${OPENSSLBASE}/openssl
+LIB_DEPENDS+= crypto.3:${PORTSDIR}/security/openssl
+OPENSSLLIB= ${OPENSSLBASE}/lib
+OPENSSLINC= ${OPENSSLBASE}/include
+MAKE_ENV+= OPENSSLLIB=${OPENSSLLIB} OPENSSLINC=${OPENSSLINC} \
+ OPENSSLBASE=${OPENSSLBASE} OPENSSLDIR=${OPENSSLDIR}
+.endif
+
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
OPTIM='${OPTIM}' \
- SSL_BASE='SYSTEM' \
+ SSL_BASE='${OPENSSLBASE}' \
EAPI_MM='SYSTEM' \
PATH="${PREFIX}/bin:${PATH}"