summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-11 07:25:10 +0000
committerjlam <jlam@pkgsrc.org>2004-03-11 07:25:10 +0000
commit2d2957f72d5cd6c4665e6ab499931e2176234daa (patch)
tree22d6eedcb30880ae763d9375228083e2c67c417a /mail
parent70ffa4a5740336fdc35c70dd6a09eb7e5a173bf2 (diff)
downloadpkgsrc-2d2957f72d5cd6c4665e6ab499931e2176234daa.tar.gz
With buildlink3, native header and libraries aren't symlinked into
${BUILDLINK_DIR}, so ${BUILDLINK_DIR}/include/openssl/des.h may not exist. Instead, refer to ${SSLBASE}/include/openssl/des.h.
Diffstat (limited to 'mail')
-rw-r--r--mail/libesmtp/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/libesmtp/Makefile b/mail/libesmtp/Makefile
index 3d07654322c..06aa307b46b 100644
--- a/mail/libesmtp/Makefile
+++ b/mail/libesmtp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/02/14 17:21:44 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2004/03/11 07:25:10 jlam Exp $
DISTNAME= libesmtp-1.0.1
PKGREVISION= 1
@@ -20,6 +20,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-all
CONFIGURE_ARGS+= --disable-isoc
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
# 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).
@@ -30,12 +33,11 @@ CONFIGURE_ARGS+= --disable-isoc
# 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 \
+ ${LN} -s ${SSLBASE}/include/openssl/des.h \
${BUILDLINK_DIR}/include; \
fi
-.include "../../mk/pthread.buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"