From fd8a0a10d4ff75ff4cfba2892b7d5da44ce20a6f Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 28 Jul 2003 18:05:52 +0000 Subject: Introduce an evil hack to let this build on both -current and older systems: if no /usr/include/des.h is present, symlink ${BUILDLINK_DIR}/include/openssl/des.h to ${BUILDLINK_DIR}/include/des.h, so the code can always see the old interface as . --- mail/libesmtp/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'mail') 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 (by patch). +# We assume 2 cases: +# a) We are on NetBSD-current which has a non-backward-compatible +# openssl-0.97, but a 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 +# as . +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" -- cgit v1.2.3