1999-06-23 19:54:51 +00:00
|
|
|
# New ports collection makefile for: Wanderlust (for emacs)
|
|
|
|
# Date created: 7 Apr 1999
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1999-06-23 19:54:51 +00:00
|
|
|
#
|
|
|
|
|
2000-04-19 06:52:38 +00:00
|
|
|
PORTNAME= wanderlust
|
2000-07-10 02:03:31 +00:00
|
|
|
PORTVERSION= 1.1.1
|
1999-06-23 19:54:51 +00:00
|
|
|
CATEGORIES= mail elisp
|
|
|
|
MASTER_SITES= ftp://ftp.gohome.org/wl/stable/ \
|
2000-07-10 02:03:31 +00:00
|
|
|
ftp://ftp.ring.gr.jp/pub/text/elisp/wl/stable/ \
|
|
|
|
ftp://ftp.jaist.ac.jp/pub/GNU/elisp/ftp.gohome.org/wl/stable/ \
|
|
|
|
ftp://daidai.kuis.kyoto-u.ac.jp/pub/mirror/ftp.gohome.org/pub/elisp/wl/stable/
|
2000-04-19 06:52:38 +00:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
2000-04-13 20:01:08 +00:00
|
|
|
DISTNAME= wl-${PORTVERSION}
|
1999-06-23 19:54:51 +00:00
|
|
|
|
|
|
|
MAINTAINER= nobutaka@nobutaka.com
|
|
|
|
|
2000-07-10 02:03:31 +00:00
|
|
|
MIMEUI_PRODUCT?= semi
|
|
|
|
MIMEUI_VERSION?= 1.13.7
|
|
|
|
MIMEUI_PORT_NAME?= ${MIMEUI_PRODUCT}-${EMACS_PORT_NAME}-current
|
|
|
|
MIMEUI_COOKIE= ${MIMEUI_PRODUCT}-${EMACS_PORT_NAME}-${MIMEUI_VERSION}.FreeBSD-packages
|
2000-01-19 16:53:46 +00:00
|
|
|
|
1999-06-23 19:54:51 +00:00
|
|
|
.if !defined (IS_SLAVE)
|
|
|
|
# for emacs19
|
2000-04-19 06:52:38 +00:00
|
|
|
EMACS_PORT_NAME= emacs
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
|
|
|
|
2000-07-10 02:03:31 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs20" || ${EMACS_PORT_NAME} == "mule" || \
|
|
|
|
${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
WITH_MULE=yes
|
1999-08-14 22:41:13 +00:00
|
|
|
.else
|
2000-07-10 02:03:31 +00:00
|
|
|
WITHOUT_MULE=yes
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
2000-07-10 02:03:31 +00:00
|
|
|
|
1999-06-23 19:54:51 +00:00
|
|
|
# depends on semi
|
2000-07-10 02:03:31 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:${PORTSDIR}/editors/${MIMEUI_PORT_NAME}
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:${PORTSDIR}/editors/${MIMEUI_PORT_NAME}
|
1999-06-23 19:54:51 +00:00
|
|
|
|
2000-07-10 02:03:31 +00:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
2000-01-19 16:53:46 +00:00
|
|
|
ALL_TARGET= package
|
|
|
|
INSTALL_TARGET= install-package
|
2000-07-10 02:03:31 +00:00
|
|
|
UTILSDIR= ${EMACS_PACKAGESDIR}/lisp/wl
|
|
|
|
STARTUPDIR= ${EMACS_PACKAGESDIR}/lisp/wl
|
|
|
|
.else
|
1999-06-23 19:54:51 +00:00
|
|
|
ALL_TARGET= all info
|
2000-07-10 02:03:31 +00:00
|
|
|
INSTALL_TARGET= install install-info
|
|
|
|
INFODIR= ${PREFIX}/info
|
|
|
|
UTILSDIR= ${EMACS_SITE_LISPDIR}/wl
|
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs20")
|
|
|
|
STARTUPDIR= ${EMACS_SITE_LISPDIR}
|
|
|
|
.else
|
|
|
|
STARTUPDIR= ${EMACS_VERSION_SITE_LISPDIR}
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
2000-04-19 06:52:38 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-19 16:53:46 +00:00
|
|
|
DIRSECTION= "The Emacs editor and associated tools"
|
2000-07-10 02:03:31 +00:00
|
|
|
PORTDOCDIR= share/doc/wanderlust
|
|
|
|
DOCS= README README.ja ChangeLog BUGS BUGS.ja \
|
|
|
|
NEWS NEWS.ja doc/wl-ja.texi doc/wl.texi
|
|
|
|
SAMPLESDIR= share/examples/wanderlust
|
|
|
|
SAMPLESLANG= en ja
|
|
|
|
SAMPLES= dot.addresses dot.folders dot.wl
|
|
|
|
UTILS= bbdb-wl.el im-wl.el ssl.el
|
|
|
|
|
|
|
|
PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
|
|
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
|
|
|
|
DIRSECTION=${DIRSECTION}
|
|
|
|
|
|
|
|
PLIST= ${PKGDIR}/PLIST.${EMACS_PORT_NAME}
|
|
|
|
MAKE_ARGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD} \
|
|
|
|
LISPDIR=${PREFIX}/${EMACS_SITE_LISPDIR} \
|
2000-01-19 16:53:46 +00:00
|
|
|
FLAGS="-batch -q -no-site-file -l ${WRKDIR}/wanderlust-startup.el"
|
2000-07-10 02:03:31 +00:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
2000-01-19 16:53:46 +00:00
|
|
|
MAKE_ARGS+= PACKAGEDIR=${PREFIX}/${EMACS_PACKAGESDIR}
|
|
|
|
.else
|
2000-07-10 02:03:31 +00:00
|
|
|
MAKE_ARGS+= INFODIR=${INFODIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/WL-CFG ${WRKSRC}
|
|
|
|
.if defined(WITH_MULE) && !defined(WITHOUT_MULE)
|
|
|
|
@${ECHO} '(setq wl-info-lang (list "en" "ja"))' >> ${WRKSRC}/WL-CFG
|
|
|
|
.else
|
|
|
|
@${ECHO} '(setq wl-info-lang "en")' >> ${WRKSRC}/WL-CFG
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
1999-06-23 19:54:51 +00:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${SED} \
|
|
|
|
-e "s,%%PREFIX%%,${PREFIX},g" \
|
|
|
|
-e "s,%%EMACS_LIBDIR%%,${EMACS_LIBDIR},g" \
|
2000-01-19 16:53:46 +00:00
|
|
|
-e "s,%%EMACS_LIBDIR_WITH_VER%%,${EMACS_LIBDIR_WITH_VER},g" \
|
|
|
|
-e "s,%%EMACS_PACKAGESDIR%%,${EMACS_PACKAGESDIR},g" \
|
2000-04-19 06:52:38 +00:00
|
|
|
< ${FILESDIR}/wanderlust-startup.${EMACS_PORT_NAME}.el.tmpl > ${WRKDIR}/wanderlust-startup.el
|
1999-06-23 19:54:51 +00:00
|
|
|
|
2000-01-19 16:53:46 +00:00
|
|
|
pre-build:
|
2000-07-10 02:03:31 +00:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
2000-04-19 06:52:38 +00:00
|
|
|
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
|
|
|
|
1999-06-23 19:54:51 +00:00
|
|
|
post-install:
|
2000-07-10 02:03:31 +00:00
|
|
|
.if !defined(EMACS_PACKAGESDIR)
|
2000-01-19 16:53:46 +00:00
|
|
|
@${MAKE} install-info
|
2000-07-10 02:03:31 +00:00
|
|
|
.endif
|
2000-01-19 16:53:46 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MAKE} install-docs
|
|
|
|
.endif
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs20")
|
2000-01-19 16:53:46 +00:00
|
|
|
@${MAKE} install-icons
|
|
|
|
.endif
|
|
|
|
@${MAKE} install-samples
|
|
|
|
@${MAKE} install-utils
|
2000-07-10 02:03:31 +00:00
|
|
|
.if defined(EMACS_PACKAGESDIR)
|
2000-01-19 16:53:46 +00:00
|
|
|
@${MAKE} install-manifest
|
|
|
|
.endif
|
2000-07-10 02:03:31 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
# local targets
|
|
|
|
install-info:
|
2000-07-10 02:03:31 +00:00
|
|
|
@install-info --section=${DIRSECTION} ${WRKSRC}/doc/wl.info ${INFODIR}/dir
|
|
|
|
.if defined(WITH_MULE) && !defined(WITHOUT_MULE)
|
|
|
|
@install-info --section=${DIRSECTION} ${WRKSRC}/doc/wl-ja.info ${INFODIR}/dir
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-docs:
|
2000-07-10 02:03:31 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${PORTDOCDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${PORTDOCDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/elmo/ChangeLog ${PREFIX}/${PORTDOCDIR}/ChangeLog.elmo
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wl/ChangeLog ${PREFIX}/${PORTDOCDIR}/ChangeLog.wl
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-icons:
|
2000-04-19 06:52:38 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/etc/wl
|
2000-07-10 02:03:31 +00:00
|
|
|
cd ${WRKSRC}/etc/icons ; \
|
2000-04-19 06:52:38 +00:00
|
|
|
for i in *.xpm ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/${EMACS_LIBDIR}/etc/wl ; \
|
2000-07-10 02:03:31 +00:00
|
|
|
done
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-samples:
|
2000-07-10 02:03:31 +00:00
|
|
|
.for l in ${SAMPLESLANG}
|
|
|
|
${MKDIR} ${PREFIX}/${SAMPLESDIR}/$l
|
|
|
|
for i in ${SAMPLES} ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/$l/$$i ${PREFIX}/${SAMPLESDIR}/$l; \
|
2000-01-19 16:53:46 +00:00
|
|
|
done
|
2000-07-10 02:03:31 +00:00
|
|
|
.endfor
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-utils:
|
2000-07-10 02:03:31 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${UTILSDIR}
|
|
|
|
.for i in ${UTILS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/${i} ${PREFIX}/${UTILSDIR}
|
|
|
|
.endfor
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs")
|
2000-07-10 02:03:31 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/wl/wl-mule.el ${PREFIX}/${EMACS_SITE_LISPDIR}/wl
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
2000-07-10 02:03:31 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${STARTUPDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${STARTUPDIR}
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-manifest:
|
2000-04-19 06:52:38 +00:00
|
|
|
@${CAT} ${PKGDIR}/PLIST.${EMACS_PORT_NAME} | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
|
2000-01-19 16:53:46 +00:00
|
|
|
${SED} -e "s!^%%EMACS_PACKAGESDIR%%!!" > ${WRKDIR}/${MANIFEST}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} ${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
|
2000-04-19 06:52:38 +00:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/_pkg.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
1999-06-23 19:54:51 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|