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
|
|
|
|
PORTVERSION= 1.1.0
|
1999-06-23 19:54:51 +00:00
|
|
|
CATEGORIES= mail elisp
|
|
|
|
MASTER_SITES= ftp://ftp.gohome.org/wl/stable/ \
|
|
|
|
ftp://ftp.jaist.ac.jp/pub/GNU/elisp/wanderlust/stable/ \
|
|
|
|
ftp://daidai.kuis.kyoto-u.ac.jp/pub/mirror/ftp.gohome.org/pub/elisp/wl/stable/ \
|
|
|
|
ftp://ftp.ring.gr.jp/pub/text/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-04-19 06:52:38 +00:00
|
|
|
SEMI_VER= 1.13.7
|
|
|
|
SEMI_COOKIE= semi-${EMACS_PORT_NAME}-${SEMI_VER}.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-01-19 16:53:46 +00:00
|
|
|
EMACS_NAME= emacs
|
2000-04-19 06:52:38 +00:00
|
|
|
EMACS_PORT_NAME= emacs
|
2000-01-19 16:53:46 +00:00
|
|
|
EMACS_VER= 19.34
|
|
|
|
EMACS_LIBDIR= share/emacs
|
|
|
|
EMACS_LIBDIR_WITH_VER= share/emacs/${EMACS_VER}
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
|
|
|
|
1999-08-18 16:20:24 +00:00
|
|
|
EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
|
1999-06-23 19:54:51 +00:00
|
|
|
|
2000-04-19 06:52:38 +00:00
|
|
|
BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
|
1999-09-09 16:32:14 +00:00
|
|
|
|
1999-06-23 19:54:51 +00:00
|
|
|
.if !defined(HAVE_COMMON_PORT)
|
|
|
|
HAVE_COMMON_PORT= no
|
|
|
|
.endif
|
|
|
|
.if (${HAVE_COMMON_PORT} == "yes")
|
|
|
|
# depends on common port
|
2000-04-19 06:52:38 +00:00
|
|
|
RUN_DEPENDS= ${PKG_DBDIR}/${EMACS_PORT_NAME:S/xemacs21-mule/xemacs-mule/}-common-${MULE_VER}:${PORTSDIR}/editors/${EMACS_PORT_NAME}-common
|
1999-08-14 22:41:13 +00:00
|
|
|
.else
|
2000-04-19 06:52:38 +00:00
|
|
|
RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
|
|
|
# depends on semi
|
2000-04-19 06:52:38 +00:00
|
|
|
BUILD_DEPENDS+= ${PREFIX}/share/semi/${SEMI_COOKIE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
|
|
|
|
RUN_DEPENDS+= ${PREFIX}/share/semi/${SEMI_COOKIE}:${PORTSDIR}/editors/semi-${EMACS_PORT_NAME}-current
|
1999-06-23 19:54:51 +00:00
|
|
|
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
ALL_TARGET= package
|
|
|
|
INSTALL_TARGET= install-package
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs20" || ${EMACS_PORT_NAME} == "mule")
|
1999-06-23 19:54:51 +00:00
|
|
|
ALL_TARGET= all info
|
|
|
|
.endif
|
|
|
|
|
2000-04-19 06:52:38 +00:00
|
|
|
.if !defined(WITH_IM) && exists(${LOCALBASE}/bin/imput)
|
|
|
|
WITH_IM= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IM) && ${WITH_IM} == yes
|
|
|
|
BUILD_DEPENDS+= imput:${PORTSDIR}/mail/im
|
|
|
|
RUN_DEPENDS+= imput:${PORTSDIR}/mail/im
|
|
|
|
.endif
|
|
|
|
|
2000-01-19 16:53:46 +00:00
|
|
|
DIRSECTION= "The Emacs editor and associated tools"
|
1999-06-23 19:54:51 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/wanderlust
|
1999-08-14 22:41:13 +00:00
|
|
|
DOCS= 00README 00README.ja ChangeLog ChangeLog.ja
|
2000-04-19 06:52:38 +00:00
|
|
|
SAMPLESDIR= ${PREFIX}/share/examples/wanderlust/en
|
|
|
|
SAMPLESDIR_JA= ${PREFIX}/share/examples/wanderlust/ja
|
|
|
|
SAMPLES= dot.addresses dot.wl dot.folders
|
1999-06-23 19:54:51 +00:00
|
|
|
|
2000-01-19 16:53:46 +00:00
|
|
|
PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
|
|
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} DIRSECTION=${DIRSECTION}
|
|
|
|
|
2000-04-19 06:52:38 +00:00
|
|
|
PLISTORIG= ${PKGDIR}/PLIST.${EMACS_PORT_NAME}
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
|
|
|
MAKE_ARGS= EMACS=${EMACS_CMD} LISPDIR=${PREFIX}/${EMACS_LIBDIR}/site-lisp \
|
2000-01-19 16:53:46 +00:00
|
|
|
FLAGS="-batch -q -no-site-file -l ${WRKDIR}/wanderlust-startup.el"
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs20") || (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
MAKE_ARGS+= XEMACS=${EMACS_CMD}
|
|
|
|
.endif
|
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
MAKE_ARGS+= PACKAGEDIR=${PREFIX}/${EMACS_PACKAGESDIR}
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= INFODIR=${PREFIX}/info
|
|
|
|
.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-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
|
|
|
|
1999-06-23 19:54:51 +00:00
|
|
|
pre-install:
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} != "xemacs21-mule")
|
|
|
|
@${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_IM) && ${WITH_IM} == yes
|
|
|
|
@${CAT} ${PLISTORIG} > ${PLIST}
|
|
|
|
.else
|
|
|
|
@${GREP} -vw 'im-wl\.elc\?' ${PLISTORIG} > ${PLIST}
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
1999-06-23 19:54:51 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-01-19 16:53:46 +00:00
|
|
|
@${MAKE} install-info
|
|
|
|
.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-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
@${MAKE} install-manifest
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
# local targets
|
|
|
|
install-info:
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
@if [ ! -f ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir ]; then \
|
|
|
|
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir; \
|
1999-06-23 19:54:51 +00:00
|
|
|
fi
|
2000-01-19 16:53:46 +00:00
|
|
|
@install-info --section=${DIRSECTION} ${PREFIX}/${EMACS_PACKAGESDIR}/info/wl-ja.info ${PREFIX}/${EMACS_PACKAGESDIR}/info/dir
|
1999-06-23 19:54:51 +00:00
|
|
|
.endif
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs20" || ${EMACS_PORT_NAME} == "mule")
|
1999-06-23 19:54:51 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/wl-ja.info ${PREFIX}/info
|
|
|
|
@install-info --section=${DIRSECTION} ${PREFIX}/info/wl-ja.info ${PREFIX}/info/dir
|
|
|
|
.endif
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-docs:
|
1999-06-23 19:54:51 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@for i in ${DOCS} ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${DOCSDIR} ; \
|
|
|
|
done
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/wl-ja.texi ${DOCSDIR}
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-icons:
|
2000-04-19 06:52:38 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/etc/wl
|
|
|
|
@(cd ${WRKSRC}/etc/icons ; \
|
|
|
|
for i in *.xpm ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/${EMACS_LIBDIR}/etc/wl ; \
|
|
|
|
done)
|
2000-01-19 16:53:46 +00:00
|
|
|
|
|
|
|
install-samples:
|
|
|
|
@${MKDIR} ${SAMPLESDIR}
|
2000-04-19 06:52:38 +00:00
|
|
|
@${MKDIR} ${SAMPLESDIR_JA}
|
2000-01-19 16:53:46 +00:00
|
|
|
@for i in ${SAMPLES} ; do \
|
2000-04-19 06:52:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/en/$$i ${SAMPLESDIR} ; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/ja/$$i ${SAMPLESDIR_JA} ; \
|
2000-01-19 16:53:46 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
install-utils:
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/bbdb-wl.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
2000-04-19 06:52:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/rfc2368.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/ssl.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/wl-mailto.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
|
2000-01-19 16:53:46 +00:00
|
|
|
.else
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs" || ${EMACS_PORT_NAME} == "mule")
|
2000-01-19 16:53:46 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
|
2000-04-19 06:52:38 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs")
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/wl-${PORTVERSION}/wl-mule.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
|
|
|
.endif
|
2000-01-19 16:53:46 +00:00
|
|
|
.else
|
1999-06-23 19:54:51 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
2000-04-19 06:52:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/bbdb-wl.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/rfc2368.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/ssl.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/utils/wl-mailto.el ${PREFIX}/${EMACS_LIBDIR}/site-lisp/wl
|
2000-01-19 16:53:46 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
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>
|