c7383780db
might incur ncurses dependencies on some platforms, and ncurses just bumped its shlib. Some packages were bumped twice now, sorry for that.
101 lines
2.4 KiB
Makefile
101 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.87 2015/08/18 07:31:11 wiz Exp $
|
|
|
|
DISTNAME= nmh-1.6
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://savannah.nongnu.org/download/nmh/
|
|
PKGREVISION= 2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.nongnu.org/nmh/
|
|
COMMENT= Cleaned up MH mailer suite
|
|
LICENSE= modified-bsd
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
CONFLICTS= ja-mh-[0-9]*
|
|
CONFLICTS+= ja-mh6-[0-9]*
|
|
|
|
USE_TOOLS+= lex
|
|
|
|
# We choose DOT_LOCKING in our patches because ".lock" files are
|
|
# the most common locking mechanism supported by mail software.
|
|
# It also works well over NFS.
|
|
|
|
# Locks supported by `mail.local' are ".lock" and flock(2).
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
|
|
.if !empty(PKGSRC_COMPILER:Mgcc*)
|
|
CFLAGS+= -O1
|
|
.endif
|
|
|
|
.include "options.mk"
|
|
|
|
# Mail Transport Agent - either "smtp" or "sendmail"
|
|
NMH_MTA?= smtp
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
GNU_CONFIGURE_LIBDIR= ${PREFIX}/libexec/nmh
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-mts=${NMH_MTA:Q}
|
|
|
|
DOCDIR= share/doc/nmh
|
|
EGDIR= ${PREFIX}/share/examples/nmh
|
|
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
|
|
|
|
BUILD_DEFS+= NMH_MTA NMH_EDITOR NMH_PAGER NMH_HASH_BACKUP
|
|
|
|
PKG_SYSCONFSUBDIR= nmh
|
|
CONF_FILES= # empty
|
|
.for f in MailAliases \
|
|
components \
|
|
digestcomps \
|
|
distcomps \
|
|
forwcomps \
|
|
mhl.body \
|
|
mhl.digest \
|
|
mhl.format \
|
|
mhl.forward \
|
|
mhl.headers \
|
|
mhl.reply \
|
|
mhn.defaults \
|
|
mts.conf \
|
|
rcvdistcomps \
|
|
rcvdistcomps.outbox \
|
|
replcomps \
|
|
replgroupcomps \
|
|
scan.MMDDYY \
|
|
scan.YYYYMMDD \
|
|
scan.default \
|
|
scan.mailx \
|
|
scan.nomime \
|
|
scan.size \
|
|
scan.time \
|
|
scan.timely \
|
|
scan.unseen
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
# The configure script checks for arc4random(), but the program uses
|
|
# arc4random_buf(); netbsd-5 (and presumably earlier) has the one but
|
|
# not the other. Just disable it, because all it's using the
|
|
# randomness for is message-ids.
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
|
|
CONFIGURE_ENV+= ac_cv_func_arc4random=no
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist \
|
|
${DESTDIR}${EGDIR}/mhn.defaults
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
.include "../../databases/gdbm_compat/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-ndbm='gdbm_compat -lgdbm'
|
|
CONFIGURE_ARGS+= --with-ndbmheader=ndbm.h
|
|
.endif
|
|
|
|
.include "../../mk/terminfo.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|