aboutsummaryrefslogtreecommitdiff
path: root/mail/mew/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2007-01-05 06:15:12 +0000
committerHiroki Sato <hrs@FreeBSD.org>2007-01-05 06:15:12 +0000
commitd0570c134e050f9d5f054067ef2507303396f27c (patch)
treebcd754ae9658f612846d3ecc3774245fa34190b2 /mail/mew/Makefile
parentecb9730a70c7b03dbbcf14c901318b3397ca2259 (diff)
downloadports-d0570c134e050f9d5f054067ef2507303396f27c.tar.gz
ports-d0570c134e050f9d5f054067ef2507303396f27c.zip
Notes
Diffstat (limited to 'mail/mew/Makefile')
-rw-r--r--mail/mew/Makefile38
1 files changed, 23 insertions, 15 deletions
diff --git a/mail/mew/Makefile b/mail/mew/Makefile
index da0e86342bd3..f24a32ed491d 100644
--- a/mail/mew/Makefile
+++ b/mail/mew/Makefile
@@ -8,44 +8,52 @@
PORTNAME= mew
PORTVERSION= 5.1
+PORTREVISION= 1
CATEGORIES= mail elisp
-MASTER_SITES= http://www.Mew.org/Release/ \
- ${MASTER_SITE_PORTS_JP}
+MASTER_SITES= http://www.Mew.org/Release/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER?= hiroto.kagotani@gmail.com
COMMENT?= Messaging in the Emacs World for emacs
-# document install directory by install-doc target
-DOCSDIR= share/doc/${PORTNAME}
-
# emacs port setup
USE_EMACS= yes
EMACS_PORT_NAME?= emacs21
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-MAKE_ARGS+= EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR}
+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 jinfo
-INSTALL_TARGET?= install install-jinfo
+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 mew.jis
+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} ${PREFIX}/${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} ; \
- ${INSTALL_DATA} 00* mew.dot.* ${PREFIX}/${DOCSDIR}/ ; \
+ ${INSTALL_DATA} 00* mew.dot.* ${DOCSDIR}/ ; \
for dir in contrib; do \
- ${CP} -R $${dir} ${PREFIX}/${DOCSDIR}/ ; \
+ ${CP} -R $${dir} ${DOCSDIR}/ ; \
done)
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DOCSDIR}
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
-
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>