freebsd-ports/mail/mew/Makefile
Hiroki Sato d0570c134e Fix the following rough edges:
- Fix MASTER_SITES.
- Remove redundant DOCSDIR and CONFIGURE_TARGET.
- Use EMACS_LIBDIR for non-lisp files for consistency.
- Use --with-elispdir for EMACS_SITE_LISPDIR.
- Separate the Japanese info files by using NOPORTDOCS.
- The mew-icon-directory variable is set automatically
  even in XEmacs now.

Approved by:	Hiroto Kagotani (maintainer)
PR:		ports/107438
2007-01-05 06:15:12 +00:00

59 lines
1.3 KiB
Makefile

# New ports collection makefile for: Mew
# Date created: 21 November 1997
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
# Hiroto Kagotani <hiroto.kagotani@gmail.com>
#
# $FreeBSD$
#
PORTNAME= mew
PORTVERSION= 5.1
PORTREVISION= 1
CATEGORIES= mail elisp
MASTER_SITES= http://www.Mew.org/Release/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= hiroto.kagotani@gmail.com
COMMENT?= Messaging in the Emacs World for emacs
# emacs port setup
USE_EMACS= yes
EMACS_PORT_NAME?= emacs21
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-elispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}/mew \
--with-etcdir=${LOCALBASE}/${EMACS_LIBDIR}/etc/mew
# target name for make build and install
ALL_TARGET= all info
INSTALL_TARGET= install
.if !defined(NOPORTDOCS)
ALL_TARGET+= jinfo
INSTALL_TARGET+=install-jinfo
.endif
# manuals
MAN1= mewcat.1 mewdecode.1 mewencode.1 mewl.1 incm.1
INFO= mew
.if !defined(NOPORTDOCS)
INFO+= mew.jis
.endif
pre-build:
${REINPLACE_CMD} -e \
's,%%MEWICONDIR%%,${LOCALBASE}/${EMACS_LIBDIR}/etc/mew,' \
${WRKSRC}/mew-key.el
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} ; \
${INSTALL_DATA} 00* mew.dot.* ${DOCSDIR}/ ; \
for dir in contrib; do \
${CP} -R $${dir} ${DOCSDIR}/ ; \
done)
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>