1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/mail/wanderlust/Makefile
2017-09-12 15:38:56 +00:00

121 lines
3.6 KiB
Makefile

# Created by: MANTANI Nobutaka <nobutaka@nobutaka.com>
# $FreeBSD$
PORTNAME= wanderlust
PORTVERSION= 2.14.0
PORTREVISION= 19
CATEGORIES= mail elisp
MASTER_SITES= ftp://ftp.gohome.org/wl/stable/ \
http://www.jpl.org/elips/wl/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= wl-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT?= Yet another message interface on Emacsen
USE_EMACS= yes
NO_ARCH= yes
CONFLICTS= wanderlust-*-2.15.*
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
EMACS_W3M_PORT_NAME?= emacs-w3m
EMACS_W3M_LISP_FILE?= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/w3m/shimbun.el
MIMEUI_PORT_NAME?= ${MIMEUI_PRODUCT}
MIMEUI_PRODUCT= semi
MIMEUI_VERSION= 1.14
MIMEUI_COOKIE= ${MIMEUI_PRODUCT}-${EMACS_PORT_NAME}-${MIMEUI_VERSION}.FreeBSD-packages
BUILD_DEPENDS= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:editors/${MIMEUI_PORT_NAME}
RUN_DEPENDS= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:editors/${MIMEUI_PORT_NAME}
.if (${EMACS_NAME} == "emacs") && (${EMACS_MAJOR_VER} == 23)
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/x-face-e21.el:mail/x-face-e21
.endif
.if exists(${EMACS_W3M_LISP_FILE})
BUILD_DEPENDS+= ${EMACS_W3M_LISP_FILE}:www/${EMACS_W3M_PORT_NAME}
RUN_DEPENDS+= ${EMACS_W3M_LISP_FILE}:www/${EMACS_W3M_PORT_NAME}
SHIMBUN= ""
.else
SHIMBUN= "@comment "
.endif
ALL_TARGET?= all info
INSTALL_TARGET?= install install-info
INFODIR= ${PREFIX}/info
UTILSDIR?= ${EMACS_VERSION_SITE_LISPDIR}/wl
WL_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/wl
WL_ICONDIR= ${EMACS_LIBDIR_WITH_VER}/etc/wl/icons
STARTUPDIR?= ${EMACS_VERSION_SITE_LISPDIR}
DIRSECTION= "The Emacs editor and associated tools"
PORTDOCDIR= share/doc/wanderlust
PORTDOCDIR_JA= share/doc/ja/wanderlust
DOCS= README NEWS doc/wl.texi
DOCS_JA= README.ja NEWS.ja doc/wl-ja.texi
SAMPLESDIR= share/examples/wanderlust
SAMPLESLANG= en ja
SAMPLES= dot.addresses dot.folders dot.wl
UTILS= bbdb-wl.el
PLIST_SUB+= EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
DIRSECTION=${DIRSECTION} \
STARTUPDIR=${STARTUPDIR} \
WL_LISPDIR=${WL_LISPDIR} \
WL_ICONDIR=${WL_ICONDIR} \
SHIMBUN=${SHIMBUN}
WRK_STARTUP_FILE= ${WRKDIR}/wanderlust-startup.el
MAKE_ARGS+= EMACS=${EMACS_CMD} \
LISPDIR=${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} \
FLAGS="-batch -q -no-site-file"
INFO= wl wl-ja
PLIST= ${PKGDIR}/pkg-plist.emacs
MAKE_ARGS+= INFODIR=${STAGEDIR}${INFODIR} \
PIXMAPDIR=${STAGEDIR}${PREFIX}/${EMACS_LIBDIR_WITH_VER}/etc/wl/icons
post-extract:
@${CP} ${FILESDIR}/WL-CFG ${WRKSRC}
post-install:
.if !exists(${EMACS_W3M_LISP_FILE})
${INSTALL_DATA} ${WRKSRC}/elmo/elmo-shimbun.el ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/wl
.endif
${MAKE} install-samples
${MAKE} install-utils
# local targets
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTDOCDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTDOCDIR_JA}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/${PORTDOCDIR}
.endfor
.for i in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/${PORTDOCDIR_JA}
.endfor
install-samples:
.for l in ${SAMPLESLANG}
${MKDIR} ${STAGEDIR}${PREFIX}/${SAMPLESDIR}/$l
for i in ${SAMPLES} ; do \
${INSTALL_DATA} ${WRKSRC}/samples/$l/$$i ${STAGEDIR}${PREFIX}/${SAMPLESDIR}/$l; \
done
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/share/wanderlust
${INSTALL_DATA} ${WRKSRC}/etc/ja.Emacs ${STAGEDIR}${PREFIX}/share/wanderlust
install-utils:
${MKDIR} ${STAGEDIR}${PREFIX}/${UTILSDIR}
.for i in ${UTILS}
${INSTALL_DATA} ${WRKSRC}/utils/${i} ${STAGEDIR}${PREFIX}/${UTILSDIR}
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/${STARTUPDIR}
${INSTALL_DATA} ${FILESDIR}/wanderlust-startup.el ${STAGEDIR}${PREFIX}/${STARTUPDIR}
.include <bsd.port.post.mk>