# $NetBSD: Makefile,v 1.24 2006/03/04 21:29:59 jlam Exp $ DISTNAME= elm-2.4ME+93 PKGNAME= elm-me-2.4.93 PKGREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.ozone.fmi.fi/KEH/ \ ftp://ftp.funet.fi/pub/unix/mail/elm/elm-2.4ME+/ \ ftp://ftp.ibp.fr/pub/unix/mail/elm-me/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.instinct.org/elm/ COMMENT= ELM Mail User Agent with ME extensions CONFLICTS= elm-[0-9]* WRKSRC= ${WRKDIR}/elm2.4.ME+.93 HAS_CONFIGURE= YES CONFIGURE_SCRIPT= ksh ./Configure CONFIGURE_ENV+= PREFIX=${PREFIX:Q} RUN_AS_BATCH=yes CONFIGURE_ARGS+= -S INSTALL_DIRS= ${WRKSRC} ${WRKSRC}/nls CONF_FILES= ${PREFIX}/lib/elm.mimetypes-dist \ ${PREFIX}/lib/elm.mimetypes USE_TOOLS+= ksh 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 \ ${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"