pkgsrc/mail/elm/Makefile
jlam 7fa25b2c1f mail/elm: Install manpages into ${PKGMANDIR}.
This project uses a Perl-style Configure script that can use a
custom config.sh to provide default answers to questions that it
asks as part of the configuration process.  Modify the custom
${FILESDIR}/config.sh to allow substituting for @PKGMANDIR@ in the
default location for unformatted manpages.
2017-08-19 00:20:25 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.52 2017/08/19 00:20:25 jlam Exp $
DISTNAME= elm2.5.8
PKGNAME= elm-2.5.8
PKGREVISION= 5
CATEGORIES= mail
MASTER_SITES= http://www.instinct.org/elm/files/tarballs/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.instinct.org/elm/
COMMENT= ELM Mail User Agent (without ME extensions)
MAKE_JOBS_SAFE= no
DEPENDS+= metamail>=2.7:../../mail/metamail
CONFLICTS+= mm-[0-9]*
CONFLICTS+= elm-me-[0-9]*
HAS_CONFIGURE= YES
CONFIGURE_SCRIPT= ./Configure
CONFIGURE_ARGS+= -d
CONFIGURE_ENV+= DESTDIR=${DESTDIR}
USE_TOOLS+= nroff
INSTALLATION_DIRS= share/nls/C
OPSYSVARS+= LIBC
LIBC.Darwin= /usr/lib/libSystem.dylib
LIBC.*= /usr/lib/libc.so
SPECIAL_PERMS+= bin/elm ${REAL_ROOT_USER} mail 2755
pre-configure:
${SED} -e 's:@PREFIX@:${PREFIX}:g' \
-e 's:@DESTDIR@:${DESTDIR}:g' \
-e 's:@LOCALBASE@:${LOCALBASE}:g' \
-e 's:@PKGMANDIR@:${PKGMANDIR}:g' \
-e 's:@LIBC@:${LIBC}:g' \
${FILESDIR}/config.sh > ${WRKSRC}/config.sh
${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
${SED} -e 's:__PREFIX:'${PREFIX}':g' < ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS
post-install:
${LN} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/frm.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nfrm.1
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"