pkgsrc/mail/mew/Makefile
uebayasi 34004f51e0 Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users.  Be DEPENDS to it.  This should
address pkg/37146 by Aleksey Cheusov.

While here convert some emacs lisp packages to user-destdir.
2008-10-11 09:31:54 +00:00

52 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.75 2008/10/11 09:31:57 uebayasi Exp $
DISTNAME= mew-5.2
PKGREVISION= 1
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
CATEGORIES= mail
MASTER_SITES= http://www.mew.org/Release/
MAINTAINER= uebayasi@NetBSD.org
HOMEPAGE= http://www.mew.org/
COMMENT= Messaging in the Emacs World
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= ${MEW_CONTRIB_DIR:C|^${PREFIX}/||}
CONFLICTS+= mew-xemacs-[0-9]* incm-[0-9]*
INFO_FILES= yes
HAS_CONFIGURE= yes
EMACS_VERSIONS_ACCEPTED= emacs22 emacs22nox emacs21 emacs21nox emacs20 xemacs214 xemacs215
EMACS_MODULES+= base
MEW_CONTRIB_DIR=${EMACS_LISPPREFIX}/mew/contrib
MAKE_FLAGS+= DESTDIR=${DESTDIR:Q}
MAKE_FLAGS+= prefix=${PREFIX:Q}
MAKE_FLAGS+= exec_prefix=${PREFIX:Q}
MAKE_FLAGS+= EMACS=${EMACS_BIN:Q}
MAKE_FLAGS+= elispdir=${EMACS_LISPPREFIX:Q}/mew
MAKE_FLAGS+= etcdir=${EMACS_ETCPREFIX:Q}/mew
MAKE_FLAGS+= infodir=${EMACS_INFOPREFIX:Q}
MAKE_FLAGS+= mandir=${PREFIX:Q}/${PKGMANDIR:Q}/man1
CONFIGURE_ARGS+= --with-etcdir=${EMACS_ETCPREFIX}/mew
SUBST_CLASSES+= local
SUBST_STAGE.local= post-configure
SUBST_FILES.local= Makefile bin/configure info/Makefile
SUBST_SED.local= -e 's|/usr/local|${PREFIX}|g'
post-configure:
${MV} ${WRKSRC}/mew-key.el ${WRKSRC}/mew-key.el.1
${SED} -e 's|@ICONDIR@|${EMACS_ETCPREFIX}/mew|g' \
${WRKSRC}/mew-key.el.1 > ${WRKSRC}/mew-key.el
post-install:
${INSTALL_DATA} ${WRKSRC}/contrib/* ${DESTDIR}${MEW_CONTRIB_DIR}
.include "../../devel/zlib/buildlink3.mk"
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"