diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-09-08 01:59:41 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-09-08 01:59:41 +0000 |
commit | 41c535febae7eb58a5750d170fc9eda973b0dee3 (patch) | |
tree | b913240075e37109e4f8bd1fb8809837c9eea49b /mail/cclient/Makefile | |
parent | ff142f97f3d3751d6017fff4326436277615d123 (diff) | |
download | ports-41c535febae7eb58a5750d170fc9eda973b0dee3.tar.gz ports-41c535febae7eb58a5750d170fc9eda973b0dee3.zip |
Notes
Diffstat (limited to 'mail/cclient/Makefile')
-rw-r--r-- | mail/cclient/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile index 686e0bb075d3..ddfd28ec21d5 100644 --- a/mail/cclient/Makefile +++ b/mail/cclient/Makefile @@ -26,6 +26,12 @@ OPTIONS= SSL "Compile with SSL support" on \ MAKE_JOBS_UNSAFE= yes +.include <bsd.port.options.mk> + +.if ! defined(WITHOUT_SSL) +USE_OPENSSL= yes +.endif + .include <bsd.port.pre.mk> USE_LDCONFIG= yes @@ -33,11 +39,10 @@ ALL_TARGET= bsf .if defined(WITHOUT_SSL) MAKE_ARGS+= SSLTYPE=none SSLDIR=${OPENSSLBASE} .else -USE_OPENSSL= yes .if defined(WITH_SSL_AND_PLAINTEXT) -MAKE_ARGS+= SSLTYPE=unix +MAKE_ARGS+= SSLTYPE=unix SSLDIR=${OPENSSLDIR} .else -MAKE_ARGS+= SSLTYPE=unix.nopwd +MAKE_ARGS+= SSLTYPE=unix.nopwd SSLDIR=${OPENSSLDIR} .endif .endif @@ -46,7 +51,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME} SHLIBBASE= c-client4 SHLIBMAJ= 9 SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ} -MAKE_ENV= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} +MAKE_ENV+= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} post-patch: @@ -55,6 +60,11 @@ post-patch: .endfor @${REINPLACE_CMD} -e "s:/etc/ssl/certs:${PREFIX}/certs:g; \ s:/etc/ssl/private:${PREFIX}/certs:g" ${WRKSRC}/Makefile +.if ! defined(WITHOUT_SSL) + @${REINPLACE_CMD} -e " \ + s:SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib:SSLINCLUDE=${OPENSSLINC} SSLLIB=${OPENSSLLIB}: \ + " ${WRKSRC}/Makefile +.endif .if !defined(WITHOUT_IPV6) @${REINPLACE_CMD} -e "s|^IP=4|IP=6|" ${WRKSRC}/Makefile \ ${WRKSRC}/src/osdep/unix/Makefile |