diff options
author | oliver <oliver@FreeBSD.org> | 2006-01-10 02:59:31 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2006-01-10 02:59:31 +0800 |
commit | f0e6ff864cf58f6b508cdb2eb7e67f8cddbe8f87 (patch) | |
tree | fadacf7272b835c44be6631d3b56b2a0810df9e0 /sysutils/ucspi-tcp | |
parent | 9489d29a8d0dd3bf7c421b04306bf063eade6694 (diff) | |
download | freebsd-ports-gnome-f0e6ff864cf58f6b508cdb2eb7e67f8cddbe8f87.tar.gz freebsd-ports-gnome-f0e6ff864cf58f6b508cdb2eb7e67f8cddbe8f87.tar.zst freebsd-ports-gnome-f0e6ff864cf58f6b508cdb2eb7e67f8cddbe8f87.zip |
make it possible to use openssl from ports when no openssl is in base
PR: ports/91563
Approved by: maintainer
Diffstat (limited to 'sysutils/ucspi-tcp')
-rw-r--r-- | sysutils/ucspi-tcp/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysutils/ucspi-tcp/Makefile b/sysutils/ucspi-tcp/Makefile index 6923095e81e4..4060a0b64a00 100644 --- a/sysutils/ucspi-tcp/Makefile +++ b/sysutils/ucspi-tcp/Makefile @@ -26,6 +26,10 @@ ALL_TARGET= prog install instcheck SCRIPTS_ENV= BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" \ MANMODE="${MANMODE}" CFLAGS="${CFLAGS}" +.if defined(WITH_SSL) +USE_OPENSSL= yes +.endif + .include <bsd.port.pre.mk> .if !defined(WITHOUT_MAN) @@ -46,6 +50,11 @@ PATCH_DIST_STRIP= -p1 PATCH_SITES+= http://www.nrg4u.com/qmail/ PATCHFILES+= ucspi-tcp-ssl-20050405.patch.gz PATCH_DIST_STRIP= -p1 +USE_REINPLACE= yes + +post-patch: + @${REINPLACE_CMD} -e 's|#INCS=-I/usr/local/include|INCS=-I${OPENSSLBASE}/include|g; \ + s|-lcrypto|-L${OPENSSLBASE}/lib |g' ${WRKSRC}/Makefile .endif post-configure: |