1999-09-09 08:06:23 +00:00
|
|
|
# New ports collection makefile for: Mew
|
2000-01-04 14:29:34 +00:00
|
|
|
# Version required: 1.94.1
|
1999-09-09 08:06:23 +00:00
|
|
|
# Date created: 21 November 1997
|
1996-12-18 05:09:26 +00:00
|
|
|
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1996-12-18 05:09:26 +00:00
|
|
|
#
|
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
DISTNAME= mew-${VERSION}
|
|
|
|
PKGNAME= mew-${EMACS_PORT_NAME}-${VERSION}
|
|
|
|
CATEGORIES= mail elisp
|
|
|
|
MASTER_SITES= ftp://ftp.mew.org/pub/Mew/ \
|
|
|
|
ftp://ftp.kyushu-u.ac.jp/pub/Misc/mew/ \
|
|
|
|
ftp://ports.jp.freebsd.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/
|
1996-12-18 05:09:26 +00:00
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
1998-06-25 22:30:04 +00:00
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
RESTRICTED= "USA ITAR export restrictions (has PGP hooks)"
|
1998-12-01 03:06:49 +00:00
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
|
|
|
|
RUN_DEPENDS= imali:${PORTSDIR}/mail/im
|
|
|
|
|
2000-01-04 14:29:34 +00:00
|
|
|
SCRIPTS_ENV= AWK=${AWK} CAT=${CAT} CP=${CP} ECHO=${ECHO} MKDIR="${MKDIR}" \
|
|
|
|
RM=${RM} TOUCH=${TOUCH} SED=${SED} \
|
|
|
|
EMACSDIR=${EMACSDIR} ELISPDIR=${ELISPDIR} INFODIR=${INFODIR} \
|
|
|
|
ETCDIR=${ETCDIR} SAMPLEDIR=${SAMPLEDIR} WRKTMPDIR=${WRKTMPDIR} \
|
|
|
|
PORTDIR=${.CURDIR:S!^${PORTSDIR}/!!} \
|
|
|
|
EMACS_CMD=${EMACS_CMD} EMACS_PORT_NAME=${EMACS_PORT_NAME} \
|
|
|
|
PKGNAME=${PKGNAME} TMPL_FILES="${TMPL_FILES}" VERSION=${VERSION} \
|
|
|
|
SITE_STARTUP_FILE=${SITE_STARTUP_FILE} REQUIRE="${REQUIRE}"
|
1999-09-09 08:06:23 +00:00
|
|
|
MAKE_ARGS= PREFIX=${PREFIX} EMACS=${EMACS_CMD} ELISPDIR=${ELISPDIR} \
|
|
|
|
INFODIR=${INFODIR} ETCDIR=${ETCDIR}
|
|
|
|
MAKE_ENV= EMACSPKGDIR=${EMACSPKGDIR} MANDIR=${PKGMANDIR} \
|
|
|
|
PKG_PKGINFODIR=${PKG_PKGINFODIR} XEMACS_VER_OVER20=${XEMACS_VER_OVER20} \
|
|
|
|
MKDIR="${MKDIR}" PERL=${PERL5} PERL_BADLANG=0
|
2000-01-04 14:29:34 +00:00
|
|
|
INSTALL_TARGET= ${INST_TARGET_LIST}
|
1999-09-09 08:06:23 +00:00
|
|
|
PLIST_SUB= EMACS_LISPDIR=${EMACS_LISPDIR} \
|
|
|
|
EMACS_ETCDIR=${EMACS_ETCDIR} \
|
|
|
|
EMACS_INFODIR=${EMACS_INFODIR} \
|
|
|
|
EMACS_PKGDIR=${EMACS_PKGDIR}
|
2000-01-04 14:29:34 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../mew/patches
|
|
|
|
SCRIPTDIR= ${.CURDIR}/../mew/scripts
|
|
|
|
FILESDIR= ${.CURDIR}/../mew/files
|
1999-09-09 08:06:23 +00:00
|
|
|
|
2000-01-04 14:29:34 +00:00
|
|
|
VERSION= 1.94.1
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_PORT_NAME?= emacs
|
|
|
|
SAMPLEFILES= Addrbook
|
|
|
|
SAMPLEDOTEMACS= dot.emacs.el
|
|
|
|
PORTDOCS= 00changes 00copyright 00copyright.jis 00diff 00readme
|
2000-01-04 14:29:34 +00:00
|
|
|
TMPL_FILES= user-install ${SITE_STARTUP_FILE} ${SAMPLEDOTEMACS}
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACSDIR= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}
|
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_LISPDIR}/mew
|
|
|
|
INFODIR= ${PREFIX}/${EMACS_INFODIR}
|
|
|
|
ETCDIR= ${PREFIX}/${EMACS_ETCDIR}/mew
|
|
|
|
EMACSPKGDIR= ${PREFIX}/${EMACS_PKGDIR}
|
|
|
|
PKGELISPDIR= ${PREFIX}/${EMACS_PKG_LISPDIR}/mew
|
|
|
|
PKGINFODIR= ${PREFIX}/${EMACS_PKG_INFODIR}
|
|
|
|
PKGMANDIR= ${PREFIX}/${EMACS_PKG_MANDIR}/mew
|
|
|
|
PKGETCDIR= ${PREFIX}/${EMACS_PKG_ETCDIR}/mew
|
|
|
|
PKG_PKGINFODIR= ${PREFIX}/${EMACS_PKG_PKGINFODIR}
|
|
|
|
WRKTMPDIR= ${WRKDIR}/tmp
|
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/mew
|
|
|
|
PORTDOCDIR= ${PREFIX}/share/doc/mew
|
2000-01-04 14:29:34 +00:00
|
|
|
COMMENT_TEXT= Message interface to Emacs Window for ${EMACS_PORT_NAME}
|
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs")
|
|
|
|
EMACS_NAME= emacs
|
|
|
|
EMACS_VER= 19.34
|
|
|
|
EMACS_MAJOR_VER= 19
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}/${EMACS_VER}
|
|
|
|
EMACS_ETCDIR= ${EMACS_LIBDIR}/etc
|
|
|
|
EMACS_LISPDIR= ${EMACS_LIBDIR}/site-lisp
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_INFODIR= info
|
|
|
|
EMACS_SITELISPDIR= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
SITE_STARTUP_FILE= mew-startup.el
|
1999-09-09 08:06:23 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs20")
|
|
|
|
EMACS_NAME= emacs
|
2000-01-04 11:38:43 +00:00
|
|
|
EMACS_VER= 20.5
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_MAJOR_VER= 20
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}/${EMACS_VER}
|
|
|
|
EMACS_ETCDIR= ${EMACS_LIBDIR}/etc
|
|
|
|
EMACS_LISPDIR= ${EMACS_LIBDIR}/site-lisp
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_INFODIR= info
|
1999-09-09 08:06:23 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "mule")
|
|
|
|
EMACS_NAME= mule
|
|
|
|
EMACS_VER= 19.34
|
|
|
|
EMACS_MAJOR_VER= 19
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}/${EMACS_VER}
|
|
|
|
EMACS_ETCDIR= ${EMACS_LIBDIR}/etc
|
|
|
|
EMACS_LISPDIR= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
EMACS_INFODIR= ${EMACS_LIBDIR}/info
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_SITELISPDIR= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
SITE_STARTUP_FILE= mew-startup.el
|
1999-09-09 08:06:23 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs")
|
|
|
|
EMACS_NAME= xemacs
|
|
|
|
EMACS_VER= 19.16
|
|
|
|
EMACS_MAJOR_VER= 19
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= lib/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_ETCDIR= ${EMACS_LIBDIR}/etc
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_LISPDIR= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
EMACS_INFODIR= ${EMACS_LIBDIR_WITH_VER}/info
|
|
|
|
EMACS_SITELISPDIR= ${EMACS_LISPDIR}
|
|
|
|
SITE_STARTUP_FILE= mew-xemacs-startup.el
|
1999-09-09 08:06:23 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs20")
|
|
|
|
EMACS_NAME= xemacs
|
|
|
|
EMACS_VER= 20.4
|
|
|
|
EMACS_MAJOR_VER= 20
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= lib/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_ETCDIR= ${EMACS_LIBDIR}/etc
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_LISPDIR= ${EMACS_LIBDIR}/site-lisp
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_INFODIR= ${EMACS_LIBDIR}/info
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_SITELISPDIR= ${EMACS_LISPDIR}
|
|
|
|
SITE_STARTUP_FILE= mew-xemacs-startup.el
|
1999-09-09 08:06:23 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21")
|
|
|
|
EMACS_NAME= xemacs
|
2000-01-05 23:31:59 +00:00
|
|
|
EMACS_VER= 21.1.8
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= lib/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_PKGDIR= ${EMACS_LIBDIR}/site-packages
|
|
|
|
EMACS_PKG_LISPDIR= ${EMACS_PKGDIR}/lisp
|
|
|
|
EMACS_PKG_INFODIR= ${EMACS_PKGDIR}/info
|
|
|
|
EMACS_PKG_MANDIR= ${EMACS_PKGDIR}/man
|
|
|
|
EMACS_PKG_ETCDIR= ${EMACS_PKGDIR}/etc
|
|
|
|
EMACS_PKG_PKGINFODIR= ${EMACS_PKGDIR}/pkginfo
|
|
|
|
EMACS_ETCDIR= ${EMACS_PKG_ETCDIR}
|
|
|
|
EMACS_LISPDIR= ${EMACS_PKG_LISPDIR}
|
|
|
|
EMACS_INFODIR= ${EMACS_PKG_INFODIR}
|
2000-01-05 23:31:59 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21-mule")
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_NAME= xemacs
|
2000-01-04 14:29:34 +00:00
|
|
|
EMACS_VER= 21.1.8
|
1999-09-09 08:06:23 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_CMD= ${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= lib/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_PKGDIR= ${EMACS_LIBDIR}/site-packages
|
|
|
|
EMACS_PKG_LISPDIR= ${EMACS_PKGDIR}/lisp
|
|
|
|
EMACS_PKG_INFODIR= ${EMACS_PKGDIR}/info
|
|
|
|
EMACS_PKG_MANDIR= ${EMACS_PKGDIR}/man
|
|
|
|
EMACS_PKG_ETCDIR= ${EMACS_PKGDIR}/etc
|
|
|
|
EMACS_PKG_PKGINFODIR= ${EMACS_PKGDIR}/pkginfo
|
|
|
|
EMACS_ETCDIR= ${EMACS_PKG_ETCDIR}
|
|
|
|
EMACS_LISPDIR= ${EMACS_PKG_LISPDIR}
|
|
|
|
EMACS_INFODIR= ${EMACS_PKG_INFODIR}
|
|
|
|
.else
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_INSTALL= yes
|
|
|
|
.endif
|
2000-01-04 14:29:34 +00:00
|
|
|
.if (${EMACS_NAME} == "xemacs") && ${EMACS_MAJOR_VER} > 20
|
|
|
|
INST_TARGET_LIST= install-package
|
1999-09-09 08:06:23 +00:00
|
|
|
XEMACS_VER_OVER20= yes
|
|
|
|
.else
|
2000-01-04 14:29:34 +00:00
|
|
|
INST_TARGET_LIST= install install-info
|
|
|
|
REQUIRE= (require \'${SITE_STARTUP_FILE:S/^mew-/&${EMACS_PORT_NAME}-/:S/.el$//})
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
.if (${EMACS_PORT_NAME} == "emacs20") || (${EMACS_PORT_NAME} == "mule") || \
|
2000-01-05 23:31:59 +00:00
|
|
|
(${EMACS_PORT_NAME} == "xemacs21-mule")
|
2000-01-04 14:29:34 +00:00
|
|
|
INST_TARGET_LIST+= install-jinfo
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
2000-01-04 14:29:34 +00:00
|
|
|
@${MKDIR} ${WRKTMPDIR}
|
1999-09-09 08:06:23 +00:00
|
|
|
@cd ${FILESDIR}; \
|
2000-01-04 14:29:34 +00:00
|
|
|
${CP} ${SAMPLEFILES} ${WRKTMPDIR}
|
1999-09-09 08:06:23 +00:00
|
|
|
|
|
|
|
pre-install:
|
2000-01-04 14:29:34 +00:00
|
|
|
${ENV} ${SCRIPTS_ENV} ${SH} ${FILESDIR}/tmpl2file.sh
|
1999-09-09 08:06:23 +00:00
|
|
|
@${MKDIR} ${ELISPDIR} ${INFODIR}
|
|
|
|
.if (${EMACS_NAME} == "xemacs")
|
2000-01-04 14:29:34 +00:00
|
|
|
@${MKDIR} ${ETCDIR}/etc
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-01-04 14:29:34 +00:00
|
|
|
@${MKDIR} ${PORTDOCDIR}/contrib
|
|
|
|
@cd ${WRKSRC}; \
|
1999-09-09 08:06:23 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS} ${PORTDOCDIR}; \
|
|
|
|
${INSTALL_DATA} contrib/* ${PORTDOCDIR}/contrib
|
2000-01-04 14:29:34 +00:00
|
|
|
@${MKDIR} ${SAMPLEDIR}/dot.emacs
|
|
|
|
@cd ${WRKTMPDIR}; \
|
1999-09-09 08:06:23 +00:00
|
|
|
${INSTALL_DATA} ${SAMPLEFILES} ${SAMPLEDIR}; \
|
|
|
|
${INSTALL_DATA} ${SAMPLEDOTEMACS} ${SAMPLEDIR}/dot.emacs; \
|
|
|
|
${INSTALL_SCRIPT} user-install ${SAMPLEDIR}
|
2000-01-04 14:29:34 +00:00
|
|
|
.if (${EMACS_NAME} == "xemacs") && ${EMACS_MAJOR_VER} <= 20
|
|
|
|
@cd ${WRKSRC}/etc; \
|
1999-09-09 08:06:23 +00:00
|
|
|
${INSTALL_DATA} *.xpm Mew.* ${PREFIX}/${EMACS_ETCDIR}/mew; \
|
|
|
|
${INSTALL_DATA} etc/* ${PREFIX}/${EMACS_ETCDIR}/mew/etc
|
2000-01-04 14:29:34 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/info/*.texi ${PORTDOCDIR}
|
|
|
|
.elif (${EMACS_NAME} != "xemacs")
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/info/*.texi ${PORTDOCDIR}
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2000-01-04 14:29:34 +00:00
|
|
|
.if (${EMACS_NAME} != "xemacs") || ${EMACS_MAJOR_VER} <= 20
|
|
|
|
@install-info ${WRKSRC}/info/mew.info ${INFODIR}/dir
|
|
|
|
.if (${EMACS_PORT_NAME} == "emacs20") || (${EMACS_PORT_NAME} == "mule")
|
|
|
|
@install-info ${WRKSRC}/info/mew.jis.info ${INFODIR}/dir
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2000-01-04 14:29:34 +00:00
|
|
|
.if defined(SITE_STARTUP_FILE)
|
|
|
|
@${MKDIR} ${PREFIX}/${EMACS_SITELISPDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKTMPDIR}/${SITE_STARTUP_FILE} \
|
|
|
|
${PREFIX}/${EMACS_SITELISPDIR}/mew-${EMACS_PORT_NAME}-startup.el
|
1999-09-09 08:06:23 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2000-01-04 14:29:34 +00:00
|
|
|
# for make DESCR,COMMENT and PLIST (only maintainer use)
|
|
|
|
arrange:
|
|
|
|
${MKDIR} ${PKGDIR}
|
|
|
|
${ECHO} ${COMMENT_TEXT} > ${PKGDIR}/COMMENT
|
|
|
|
${ENV} ${SCRIPTS_ENV} WRKTMPDIR=${PKGDIR} TMPL_FILES=DESCR \
|
|
|
|
${SH} ${FILESDIR}/tmpl2file.sh
|
|
|
|
${ENV} ${SCRIPTS_ENV} WRKTMPDIR=${PKGDIR} ${SH} ${FILESDIR}/message.sh
|
|
|
|
${CHOWN} kiri:staff ${PKGDIR} ${PKGDIR}/COMMENT ${PKGDIR}/DESCR ${PKGDIR}/MESSAGE
|
|
|
|
.if (${EMACS_NAME} == "xemacs") && ${EMACS_MAJOR_VER} > 20
|
|
|
|
${MAKE} PLIST_SUB_EXCLS="${PLIST_SUB_EXCLS} EMACS_INFODIR=${EMACS_INFODIR}" \
|
|
|
|
DIRRM2RMDIRS="${EMACS_ETCDIR} ${EMACS_LISPDIR} ${EMACS_INFODIR} ${EMACS_PKGDIR} ${EMACS_PKG_MANDIR} ${EMACS_PKG_PKGINFODIR}" \
|
|
|
|
DIRRMDEPTH=2 plist
|
|
|
|
.else
|
|
|
|
${MAKE} PLIST_SUB_EXCLS="${PLIST_SUB_EXCLS} EMACS_INFODIR=${EMACS_INFODIR}" \
|
|
|
|
DIRRM2RMDIRS="${EMACS_ETCDIR} ${EMACS_LISPDIR} ${EMACS_INFODIR} ${EMACS_PKGDIR} ${EMACS_PKG_MANDIR} ${EMACS_PKG_PKGINFODIR}" \
|
|
|
|
INFOFILES=mew.info DIRRMDEPTH=2 plist
|
|
|
|
.endif
|
|
|
|
${INSTALL} -c -m 644 -o kiri -g staff ${WRKPLIST} ${PLIST}
|
|
|
|
|
1999-09-09 08:06:23 +00:00
|
|
|
.include <bsd.port.mk>
|