diff options
-rw-r--r-- | mail/libesmtp/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mail/libesmtp/Makefile b/mail/libesmtp/Makefile index 6fbe3867d94..13e18b6faca 100644 --- a/mail/libesmtp/Makefile +++ b/mail/libesmtp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2003/07/28 14:51:35 drochner Exp $ +# $NetBSD: Makefile,v 1.6 2003/07/28 18:05:52 drochner Exp $ DISTNAME= libesmtp-1.0 CATEGORIES= mail devel @@ -19,6 +19,22 @@ CONFIGURE_ARGS+= --disable-isoc USE_LIBTOOL= yes LIBTOOL_OVERRIDE= ${WRKSRC}/libtool +# XXX Evil hack to deal with the openssl/des.h interface change +# between 0.96 and 0.97 +# This pkg needs the old API. It includes <des.h> (by patch). +# We assume 2 cases: +# a) We are on NetBSD-current which has a non-backward-compatible +# openssl-0.97, but a <des.h> providing the old interface. +# So the pkg sees the backward-compatibility header. +# b) Everything else - we have an old openssl or a pkg version +# which is backward-compatible. Create a symlink to find +# <openssl/des.h> as <des.h>. +post-buildlink: + if [ ! -f /usr/include/des.h ]; then \ + ${LN} -s ${BUILDLINK_DIR}/include/openssl/des.h \ + ${BUILDLINK_DIR}/include; \ + fi + .include "../../mk/pthread.buildlink2.mk" .include "../../security/openssl/buildlink2.mk" .include "../../mk/bsd.pkg.mk" |