1999-09-06 12:34:46 +00:00
|
|
|
# New ports collection makefile for: lookup for Mule 2.3
|
2000-01-09 15:32:16 +00:00
|
|
|
# Version required: 1.1
|
1999-09-06 12:34:46 +00:00
|
|
|
# Date created: 98/11/19
|
1999-09-08 15:21:53 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1999-09-06 12:34:46 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-01-09 15:32:16 +00:00
|
|
|
DISTNAME= lookup-1.1
|
|
|
|
PKGNAME?= ja-lookup-mule-1.1
|
1999-09-06 12:34:46 +00:00
|
|
|
CATEGORIES= japanese elisp
|
|
|
|
MASTER_SITES= http://openlab.ring.gr.jp/lookup/DIST/
|
|
|
|
|
1999-09-08 15:21:53 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1999-09-06 12:34:46 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS+= eblook:${PORTSDIR}/japanese/eblook
|
|
|
|
|
|
|
|
FILESDIR= ${.CURDIR}/../lookup-mule/files
|
|
|
|
PKGDIR= ${.CURDIR}/../lookup-mule/pkg
|
|
|
|
PLIST= ${.CURDIR}/pkg/PLIST
|
|
|
|
PATCHDIR= ${.CURDIR}/patches
|
|
|
|
EMACS?= mule
|
|
|
|
|
|
|
|
.if (${EMACS} == "xemacs")
|
1999-09-27 13:42:05 +00:00
|
|
|
EMACSDIR= ${PREFIX}/lib/xemacs/site-packages
|
|
|
|
ELISPDIR= ${EMACSDIR}/lisp/lookup
|
|
|
|
PORTINFODIR= ${EMACSDIR}/info
|
|
|
|
MANIFEST= MANIFEST.lookup
|
1999-09-06 12:34:46 +00:00
|
|
|
.else
|
1999-09-27 13:42:05 +00:00
|
|
|
EMACSDIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
ELISPDIR= ${EMACSDIR}/lookup
|
|
|
|
PORTINFODIR= ${PREFIX}/info
|
1999-09-06 12:34:46 +00:00
|
|
|
.endif
|
2000-01-09 15:32:16 +00:00
|
|
|
NO_BUILD= yes
|
1999-09-06 12:34:46 +00:00
|
|
|
|
|
|
|
do-install:
|
1999-09-27 13:42:05 +00:00
|
|
|
${MKDIR} ${ELISPDIR} ${PORTINFODIR};
|
1999-09-06 12:34:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${ELISPDIR}
|
|
|
|
${RM} ${ELISPDIR}/lookup-compile.el
|
2000-01-09 15:32:16 +00:00
|
|
|
${SED} -e 's,@VERSION@,1.1,' -e 's,@pkgemacsdir@,${ELISPDIR},' \
|
1999-09-06 12:34:46 +00:00
|
|
|
${WRKSRC}/lisp/lookup-vars.el.in > ${ELISPDIR}/lookup-vars.el
|
2000-01-09 15:32:16 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/texi/lookup.info* ${PORTINFODIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/texi/lookup-guide.info ${PORTINFODIR}
|
1999-10-01 00:10:40 +00:00
|
|
|
.if (${EMACS} != "xemacs")
|
1999-09-06 12:34:46 +00:00
|
|
|
install-info ${PORTINFODIR}/lookup.info ${PORTINFODIR}/dir
|
2000-01-09 15:32:16 +00:00
|
|
|
install-info ${PORTINFODIR}/lookup-guide.info ${PORTINFODIR}/dir
|
1999-10-01 00:10:40 +00:00
|
|
|
.endif
|
1999-09-06 12:34:46 +00:00
|
|
|
${SED} -e 's,%%ELISPDIR%%,${ELISPDIR},' ${FILESDIR}/lookup-startup.el.tmpl > ${ELISPDIR}/../lookup-startup.el
|
|
|
|
|
1999-09-27 13:42:05 +00:00
|
|
|
.if (${EMACS} == "xemacs")
|
|
|
|
post-install:
|
|
|
|
${RM} -f ${WRKDIR}/${MANIFEST}
|
|
|
|
emacsdir=`${ECHO} ${EMACSDIR} | ${SED} -e "s;^${PREFIX}/;;"`; \
|
|
|
|
${CAT} ${PLIST} | ${GREP} -e "^$${emacsdir}" | \
|
1999-09-29 07:32:29 +00:00
|
|
|
${SED} -e "s;^$${emacsdir}/;;" > ${WRKDIR}/${MANIFEST}
|
1999-09-27 13:42:05 +00:00
|
|
|
${MKDIR} ${EMACSDIR}/pkginfo
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
|
|
|
${EMACSDIR}/pkginfo/
|
|
|
|
.endif
|
|
|
|
|
1999-09-06 12:34:46 +00:00
|
|
|
.include <bsd.port.mk>
|