-
Notifications
You must be signed in to change notification settings - Fork 160
/
Makefile
40 lines (35 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.6 2003/07/28 18:05:52 drochner Exp $
DISTNAME= libesmtp-1.0
CATEGORIES= mail devel
MASTER_SITES= http://www.stafford.uklinux.net/libesmtp/ \
http://www.tobez.org/download/port-mirrors/mail/libesmtp/ \
http://www.borgsdemons.com/distfiles/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= [email protected]
HOMEPAGE= http://www.stafford.uklinux.net/libesmtp/
COMMENT= Library to manage posting of electronic mail
USE_BUILDLINK2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-all
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"