blob: 3439dc75532af0f9b8861b85d62e2550282a6776 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile.common,v 1.63 2015/07/11 10:08:32 jnemeth Exp $
#
# used by mail/libmilter/Makefile
# used by mail/sendmail/Makefile
# used by mail/sendmail-qtool/Makefile
# used by mail/sendmail-cidrexpand/Makefile
#
DISTNAME= sendmail.${DIST_VERS}
CATEGORIES= mail
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \
ftp://ftp.sendmail.org/pub/sendmail/past-releases/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/sendmail/
OWNER?= jnemeth@NetBSD.org
HOMEPAGE= http://www.sendmail.org/
LICENSE= sendmail-license
DISTINFO_FILE= ${.CURDIR}/../../mail/sendmail/distinfo
FILESDIR= ${.CURDIR}/../../mail/sendmail/files
PATCHDIR= ${.CURDIR}/../../mail/sendmail/patches
USE_LANGUAGES= c99
DIST_VERS= 8.15.2
MAKE_ENV+= BSD_BINOWN=${BINOWN} BSD_BINGRP=${BINGRP} \
BSD_MANOWN=${MANOWN} BSD_MANGRP=${MANGRP} \
BUILDLINK_DIR=${BUILDLINK_DIR} \
SMRSH_CMDDIR=${SMRSH_CMDDIR}
SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4
BUILD_DEFS+= SMRSH_CMDDIR
WRKSRC= ${WRKDIR}/sendmail-${DIST_VERS}
USE_TOOLS+= gm4
MAKE_ENV+= M4=${TOOLS_M4}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" && exists(/usr/include/paths.h)
CFLAGS+= -DSOLARIS_HAS_PATHS_H
.endif
pre-configure:
cp ${FILESDIR}/sm_os_netbsd.h ${WRKSRC}/include/sm/os/sm_os_netbsd.h
.PHONY: make-sendmail-siteconfig
make-sendmail-siteconfig:
${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
${CHMOD} +w ${SITECONFIG}
.if !empty(PKG_OPTIONS:Minet6)
${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG}
. if (${OPSYS} != "SunOS") && (${OPSYS} != "BSDOS") && \
(${OPSYS} != "DragonFly") && (${OPSYS} != "FreeBSD")
${CAT} ${FILESDIR}/site.config.m4-v6-not-solaris >>${SITECONFIG}
. endif
.endif
${CAT} ${FILESDIR}/site.config.m4-milter >>${SITECONFIG}
.if ${OPSYS} == "SunOS"
${CAT} ${FILESDIR}/site.config.m4-libresolv >>${SITECONFIG}
. if exists(/usr/include/stdbool.h)
${CAT} ${FILESDIR}/site.config.m4-stdbool >>${SITECONFIG}
. endif
.endif
|