summaryrefslogtreecommitdiffstats
path: root/japanese/lookup-emacs21/Makefile
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2000-07-10 17:31:26 +0000
committertaoka <taoka@FreeBSD.org>2000-07-10 17:31:26 +0000
commit805713ec03713c5f9683261f4357b81e4b93dd25 (patch)
tree83309dda0a46b5d1d2decd1b9f8d5a3c87eaa9e1 /japanese/lookup-emacs21/Makefile
parentf088040dd590ff8a782004aa573d06e4e5989839 (diff)
downloadFreeBSD-ports-805713ec03713c5f9683261f4357b81e4b93dd25.zip
FreeBSD-ports-805713ec03713c5f9683261f4357b81e4b93dd25.tar.gz
Update to version 1.3
We need to byte-compile the elisps to show logo when lookup starts up. So I make these elisps byte-compiled.
Diffstat (limited to 'japanese/lookup-emacs21/Makefile')
-rw-r--r--japanese/lookup-emacs21/Makefile34
1 files changed, 11 insertions, 23 deletions
diff --git a/japanese/lookup-emacs21/Makefile b/japanese/lookup-emacs21/Makefile
index 7a05a0d..c45f012 100644
--- a/japanese/lookup-emacs21/Makefile
+++ b/japanese/lookup-emacs21/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= lookup
-PORTVERSION= 1.2
-PKGNAMESUFFIX?= -mule
+PORTVERSION= 1.3
+PKGNAMESUFFIX= -${EMACS_PORT_NAME}
CATEGORIES= japanese elisp
-MASTER_SITES= http://openlab.ring.gr.jp/lookup/DIST/
+MASTER_SITES= http://download.sourceforge.net/lookup/
MAINTAINER= taoka@FreeBSD.org
@@ -18,37 +18,25 @@ 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
+EMACS_PORT_NAME?= mule
-.if (${EMACS} == "xemacs")
+.if (${EMACS_PORT_NAME} == "xemacs21-mule")
EMACSDIR= ${PREFIX}/lib/xemacs/site-packages
ELISPDIR= ${EMACSDIR}/lisp/lookup
PORTINFODIR= ${EMACSDIR}/info
MANIFEST= MANIFEST.lookup
.else
-EMACSDIR= ${PREFIX}/share/emacs/site-lisp
+EMACSDIR= ${PREFIX}/share/${EMACS_NAME}/site-lisp
ELISPDIR= ${EMACSDIR}/lookup
PORTINFODIR= ${PREFIX}/info
.endif
-NO_BUILD= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
+ --with-lispdir=${ELISPDIR} \
+ --infodir=${PORTINFODIR}
-do-install:
- ${MKDIR} ${ELISPDIR} ${PORTINFODIR};
- ${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${ELISPDIR}
- ${RM} ${ELISPDIR}/lookup-compile.el
- ${SED} -e 's,@VERSION@,${PORTVERSION},' -e 's,@pkgemacsdir@,${ELISPDIR},' \
- ${WRKSRC}/lisp/lookup-vars.el.in > ${ELISPDIR}/lookup-vars.el
- ${INSTALL_DATA} ${WRKSRC}/texi/lookup.info* ${PORTINFODIR}
- ${INSTALL_DATA} ${WRKSRC}/texi/lookup-guide.info ${PORTINFODIR}
-.if (${EMACS} != "xemacs")
- install-info ${PORTINFODIR}/lookup.info ${PORTINFODIR}/dir
- install-info ${PORTINFODIR}/lookup-guide.info ${PORTINFODIR}/dir
-.endif
- ${SED} -e 's,%%ELISPDIR%%,${ELISPDIR},' ${FILESDIR}/lookup-startup.el.tmpl > ${ELISPDIR}/../lookup-startup.el
-
-.if (${EMACS} == "xemacs")
post-install:
+.if (${EMACS_PORT_NAME} == "xemacs")
${RM} -f ${WRKDIR}/${MANIFEST}
emacsdir=`${ECHO} ${EMACSDIR} | ${SED} -e "s;^${PREFIX}/;;"`; \
${CAT} ${PLIST} | ${GREP} -e "^$${emacsdir}" | \
OpenPOWER on IntegriCloud