diff options
author | drochner <drochner@pkgsrc.org> | 2003-07-28 18:05:52 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2003-07-28 18:05:52 +0000 |
commit | fa0be284389c26d4d774e8268f7fd6e42d916f8c (patch) | |
tree | a2eac75c4f2d37cd5f6ca2854e50f3ce3b656e89 /mail/libesmtp | |
parent | 3bd7246bcd4b0ac26fc89eb0a2e80f82aebeb498 (diff) | |
download | pkgsrc-fa0be284389c26d4d774e8268f7fd6e42d916f8c.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/libesmtp')
-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" |