pkgsrc/mail/nmh/Makefile

113 lines
2.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.80 2013/02/06 23:22:46 jperkin Exp $
DISTNAME= nmh-1.5
PKGREVISION= 3
CATEGORIES= mail
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!). - many bug fixes - MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded headers and convert to current locale. - various MIME improvements - Take maintainership (ok'd by kim@). - Replace DESCR with text from web site. - Support user-destdir. - Use --with-hash-backup instead of hacking config.h post-configure. - Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck and IRIX bits in Makefile. - A tmac.h conf file (wtf?) is no longer installed. - Update what's installed to share/doc/nmh. - Update PLIST for added/removed/renamed files. - Patches: - Update patch-ca and patch-cd. - Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad, patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as, patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba, patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh, patch-bi - patch-aa also had a patch for some fgetstr problem on NetBSD which no longer seems to happen. - Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H is already elsewhere in config.h, and sys/param.h is included in nmh.h. - Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in uip/sortm.c r1.7). - Remove patch-ci (fixed in uip/show.c r1.6). - Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems were fixed (differently) in 2000. - Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
MASTER_SITES= http://savannah.nongnu.org/download/nmh/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nongnu.org/nmh/
COMMENT= Cleaned up MH mailer suite
LICENSE= modified-bsd
1998-07-12 23:29:46 +02:00
2008-08-19 21:22:46 +02:00
MAKE_JOBS_SAFE= no
CONFLICTS= ja-mh-[0-9]*
CONFLICTS+= ja-mh6-[0-9]*
1999-10-29 21:19:41 +02:00
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"
2006-12-16 14:18:54 +01:00
# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
.if !empty(PKGSRC_COMPILER:Mgcc*)
CFLAGS+= -O1
.endif
2005-09-23 00:00:41 +02:00
.include "options.mk"
1998-02-09 01:00:57 +01:00
# Mail Transport Agent - either "smtp" or "sendmail"
NMH_MTA?= smtp
2005-09-23 00:00:41 +02:00
GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBDIR= ${PREFIX}/libexec/nmh
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --enable-nmh-pop
CONFIGURE_ARGS+= --with-mts=${NMH_MTA:Q}
.if defined(NMH_EDITOR)
CONFIGURE_ARGS+= --with-editor=${NMH_EDITOR:Q}
.endif
.if defined(NMH_PAGER)
CONFIGURE_ARGS+= --with-pager=${NMH_PAGER:Q}
.endif
2001-03-04 04:26:50 +01:00
.if defined(KERBEROS)
PKG_USE_KERBEROS= yes
.if ${OPSYS} == "NetBSD"
LIBS+= -lroken -lcrypt -lcom_err
.endif
CONFIGURE_ARGS+= --with-krb4
.else
CONFIGURE_ARGS+= --without-krb4
1999-03-04 10:12:39 +01:00
.endif
DOCDIR= share/doc/nmh
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!). - many bug fixes - MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded headers and convert to current locale. - various MIME improvements - Take maintainership (ok'd by kim@). - Replace DESCR with text from web site. - Support user-destdir. - Use --with-hash-backup instead of hacking config.h post-configure. - Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck and IRIX bits in Makefile. - A tmac.h conf file (wtf?) is no longer installed. - Update what's installed to share/doc/nmh. - Update PLIST for added/removed/renamed files. - Patches: - Update patch-ca and patch-cd. - Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad, patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as, patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba, patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh, patch-bi - patch-aa also had a patch for some fgetstr problem on NetBSD which no longer seems to happen. - Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H is already elsewhere in config.h, and sys/param.h is included in nmh.h. - Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in uip/sortm.c r1.7). - Remove patch-ci (fixed in uip/show.c r1.6). - Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems were fixed (differently) in 2000. - Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
EGDIR= ${PREFIX}/share/examples/nmh
2008-08-21 22:35:36 +02:00
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
1999-03-04 10:12:39 +01:00
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 \
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!). - many bug fixes - MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded headers and convert to current locale. - various MIME improvements - Take maintainership (ok'd by kim@). - Replace DESCR with text from web site. - Support user-destdir. - Use --with-hash-backup instead of hacking config.h post-configure. - Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck and IRIX bits in Makefile. - A tmac.h conf file (wtf?) is no longer installed. - Update what's installed to share/doc/nmh. - Update PLIST for added/removed/renamed files. - Patches: - Update patch-ca and patch-cd. - Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad, patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as, patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba, patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh, patch-bi - patch-aa also had a patch for some fgetstr problem on NetBSD which no longer seems to happen. - Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H is already elsewhere in config.h, and sys/param.h is included in nmh.h. - Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in uip/sortm.c r1.7). - Remove patch-ci (fixed in uip/show.c r1.6). - Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems were fixed (differently) in 2000. - Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
scan.unseen
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
post-install:
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!). - many bug fixes - MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded headers and convert to current locale. - various MIME improvements - Take maintainership (ok'd by kim@). - Replace DESCR with text from web site. - Support user-destdir. - Use --with-hash-backup instead of hacking config.h post-configure. - Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck and IRIX bits in Makefile. - A tmac.h conf file (wtf?) is no longer installed. - Update what's installed to share/doc/nmh. - Update PLIST for added/removed/renamed files. - Patches: - Update patch-ca and patch-cd. - Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad, patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as, patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba, patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh, patch-bi - patch-aa also had a patch for some fgetstr problem on NetBSD which no longer seems to happen. - Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H is already elsewhere in config.h, and sys/param.h is included in nmh.h. - Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in uip/sortm.c r1.7). - Remove patch-ci (fixed in uip/show.c r1.6). - Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems were fixed (differently) in 2000. - Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
${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/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"