2001-04-02 01:04:50 +00:00
|
|
|
# New ports collection makefile for: emacs-w3m
|
|
|
|
# Date Created: 24 Mar 2001
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= emacs-w3m
|
2001-05-24 02:30:11 +00:00
|
|
|
PORTVERSION= 1.0
|
2001-04-02 01:04:50 +00:00
|
|
|
CATEGORIES= www elisp
|
|
|
|
MASTER_SITES= http://namazu.org/~tsuchiya/emacs-w3m/
|
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
|
|
DISTNAME= w3m_el-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= nobutaka@nobutaka.com
|
|
|
|
|
|
|
|
EMACS_PORT_NAME?= emacs20
|
2001-04-11 04:11:40 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS?= --with-emacs=${EMACS_CMD}
|
|
|
|
LISPDIR?= ${EMACS_LIBDIR}/site-lisp/w3m
|
|
|
|
ETCDIR?= share/w3m
|
|
|
|
PKGINFODIR?= "@comment "
|
2001-04-02 01:04:50 +00:00
|
|
|
|
|
|
|
USE_AUTOCONF= yes
|
|
|
|
ALL_TARGET= default
|
|
|
|
|
2001-04-11 04:11:40 +00:00
|
|
|
PLIST_SUB+= EMACS_NAME=${EMACS_NAME} \
|
|
|
|
XEMACS_ONLY=${XEMACS_ONLY} \
|
|
|
|
EMACS_ONLY=${EMACS_ONLY} \
|
|
|
|
LISPDIR=${LISPDIR} \
|
|
|
|
ETCDIR=${ETCDIR} \
|
2001-05-24 02:30:11 +00:00
|
|
|
PKGINFODIR=${PKGINFODIR} \
|
|
|
|
SHIMBUN=${SHIMBUN}
|
2001-04-02 01:04:50 +00:00
|
|
|
|
|
|
|
DOCS= README
|
|
|
|
DOCS_JA= README.ja TIPS.ja
|
|
|
|
|
2001-04-11 04:11:40 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
|
|
|
|
DOCSDIR_JA= ${PREFIX}/share/doc/ja/${PORTNAME}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${EMACS_NAME} == xemacs
|
|
|
|
XEMACS_ONLY?= ""
|
|
|
|
EMACS_ONLY?= "@comment "
|
2001-05-24 02:30:11 +00:00
|
|
|
SEMI_FILE= ${LOCALBASE}/${EMACS_PACKAGESDIR}/lisp/semi/mime-setup.el
|
2001-04-11 04:11:40 +00:00
|
|
|
.else
|
|
|
|
XEMACS_ONLY?= "@comment "
|
|
|
|
EMACS_ONLY?= ""
|
2001-05-24 02:30:11 +00:00
|
|
|
SEMI_FILE= ${LOCALBASE}/${EMACS_LIBDIR}/site-lisp/semi/mime-setup.el
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SHIMBUN)
|
|
|
|
HAVE_SEMI=yes
|
|
|
|
SHIMBUN= ""
|
|
|
|
.else
|
|
|
|
.if exists(${SEMI_FILE})
|
|
|
|
HAVE_SEMI=yes
|
|
|
|
SHIMBUN= ""
|
|
|
|
.else
|
|
|
|
SHIMBUN= "@comment "
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(HAVE_SEMI)
|
|
|
|
BUILD_DEPENDS+= ${SEMI_FILE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
|
|
|
|
RUN_DEPENDS+= ${SEMI_FILE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(HAVE_SEMI)
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "NOTE: You can have shimbun support by adding \"WITH_SHIMBUN=yes\" to argument of make."
|
|
|
|
@${ECHO_MSG}
|
2001-04-11 04:11:40 +00:00
|
|
|
.endif
|
2001-04-02 01:04:50 +00:00
|
|
|
|
2001-04-11 04:11:40 +00:00
|
|
|
post-extract:
|
2001-04-02 01:04:50 +00:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
|
|
|
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${MKDIR} ${DOCSDIR_JA}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for i in ${DOCS_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR_JA}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2001-04-11 04:11:40 +00:00
|
|
|
.include <bsd.port.post.mk>
|