diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2006-01-09 18:59:31 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2006-01-09 18:59:31 +0000 |
commit | bebba81071b7663d38d9d8aaf4e457af1a2e29d8 (patch) | |
tree | 9f95568c91b734e5a7b778db7c3b0cefa31ac514 /sysutils | |
parent | - Update to 2.6.4 (diff) |
make it possible to use openssl from ports when no openssl is in base
PR: ports/91563
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=153151
Diffstat (limited to 'sysutils')
-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: |