diff options
author | drochner <drochner> | 2003-07-28 18:05:52 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-07-28 18:05:52 +0000 |
commit | fd8a0a10d4ff75ff4cfba2892b7d5da44ce20a6f (patch) | |
tree | a2eac75c4f2d37cd5f6ca2854e50f3ce3b656e89 /mail | |
parent | 75e7c9b31238b5a9e4de107084d2c96b5b2f6bbc (diff) | |
download | pkgsrc-fd8a0a10d4ff75ff4cfba2892b7d5da44ce20a6f.tar.gz |
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 <des.h>.
Diffstat (limited to 'mail')
-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" |