[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / elm-me

File: [cvs.NetBSD.org] / pkgsrc / mail / elm-me / Makefile (download)

Revision 1.37, Sat Nov 2 16:25:20 2019 UTC (4 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.36: +2 -2 lines

mail: align variable assignments

pkglint -Wall -F --only aligned -r

No manual corrections.

# $NetBSD: Makefile,v 1.37 2019/11/02 16:25:20 rillig Exp $

DISTNAME=		elm-2.4ME+93
PKGNAME=		elm-me-2.4.93
PKGREVISION=		6
CATEGORIES=		mail
MASTER_SITES=		ftp://ftp.funet.fi/pub/unix/mail/elm/elm-2.4ME+/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.instinct.org/elm/
COMMENT=		ELM Mail User Agent with ME extensions

MAKE_JOBS_SAFE=		no

CONFLICTS=		elm-[0-9]*

WRKSRC=			${WRKDIR}/elm2.4.ME+.93
HAS_CONFIGURE=		YES
CONFIGURE_ENV+=		PREFIX=${PREFIX:Q} RUN_AS_BATCH=yes
CONFIG_SHELL=		ksh
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ARGS+=	-S

INSTALL_DIRS=		${WRKSRC} nls
INSTALLATION_DIRS=	share/nls/C

CONF_FILES=		${PREFIX}/lib/elm.mimetypes-dist		\
			${PREFIX}/lib/elm.mimetypes

USE_TOOLS+=	ksh

SUBST_CLASSES+=		errno
SUBST_STAGE.errno=	pre-configure
SUBST_MESSAGE.errno=	Fixing declaration of errno.
SUBST_FILES.errno=	*/*.c
SUBST_SED.errno=	-e 's,^extern int errno;,\#include <errno.h>,'

# currently not set in files/config.sh
# (should probably be a package option)
#SPECIAL_PERMS+=	bin/elm ${ROOT_USER} mail 2755

pre-configure:
	${CP} ${FILESDIR}/config.sh ${WRKSRC}/
	${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
	${SED} -e 's:__PREFIX:'${PREFIX}':g'< ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS

post-install:
	${INSTALL_DATA} ${FILESDIR}/elm.mimetypes			\
		${DESTDIR}${PREFIX}/lib/elm.mimetypes-dist

post-configure:
	${TOUCH} ${WRKSRC}/config.sh
	${TOUCH} ${WRKSRC}/config.h
	${TOUCH} ${WRKSRC}/Makefile
	${TOUCH} ${WRKSRC}/*/Makefile

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"