aboutsummaryrefslogtreecommitdiffstats
path: root/editors/leim20/scripts
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>1998-09-19 06:03:07 +0800
committervanilla <vanilla@FreeBSD.org>1998-09-19 06:03:07 +0800
commite81b5e23447c2af8ceb49db48f942c4743364b98 (patch)
treef2d83e0996dcb66eb2fa35a787f8f9c4f86e7175 /editors/leim20/scripts
parent287fd8542ffba2da1e745c2ca8b22139287b756a (diff)
downloadfreebsd-ports-gnome-e81b5e23447c2af8ceb49db48f942c4743364b98.tar.gz
freebsd-ports-gnome-e81b5e23447c2af8ceb49db48f942c4743364b98.tar.zst
freebsd-ports-gnome-e81b5e23447c2af8ceb49db48f942c4743364b98.zip
This is a port for LEIM (Libraries of Emacs Input Method)
LEIM enables you to input Multilingual Characters on Emacs20. The package making from this port includes emacs lisp files for LEIM. PR: ports/7891 Submitted by: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
Diffstat (limited to 'editors/leim20/scripts')
-rw-r--r--editors/leim20/scripts/configure28
1 files changed, 28 insertions, 0 deletions
diff --git a/editors/leim20/scripts/configure b/editors/leim20/scripts/configure
new file mode 100644
index 000000000000..7fe05a1f69fa
--- /dev/null
+++ b/editors/leim20/scripts/configure
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+cd ${WRKSRC}
+
+EMACS=${PREFIX}/bin/emacs-${EMACS_VER}
+EMACS_CMD='${prefix}'"/bin/emacs-${EMACS_VER}"
+
+version=${EMACS_VER}
+prefix=${PREFIX}
+# normal setting
+#datadir='${prefix}/share'
+# paranoiac setting ;-)
+datadir='${prefix}'`strings ${EMACS} | grep -e "${EMACS_VER}.*leim" \
+ | awk 'BEGIN {FS=":"}
+ { for(i=1;i<=NF;i++) { if(match($i,"leim")) print $i; } }' \
+ | sed -e "s;/emacs/${EMACS_VER}/leim$;;" \
+ | sed -e "s;${PREFIX};;"`
+srcdir=${WRKSRC}
+buildlisppath='${datadir}/emacs/${version}/lisp'
+
+rm -f Makefile
+cat Makefile.in | sed -e "s;@version@;${version};" \
+ -e "s;@prefix@;${prefix};" \
+ -e "s;@datadir@;${datadir};" \
+ -e "s;@srcdir@;${srcdir};" \
+ -e "s;^BUILT-EMACS.*$;BUILT-EMACS=${EMACS_CMD};" \
+ -e "s;^buildlisppath.*$;buildlisppath=${buildlisppath};" \
+> Makefile