aboutsummaryrefslogtreecommitdiff
path: root/editors/leim21/scripts
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2001-10-23 16:38:34 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2001-10-23 16:38:34 +0000
commiteee44da689baa3adcce171abfb0181f55ca393ba (patch)
tree3dd5e94d36fdfe0c81d4e4c16118c9d06075b354 /editors/leim21/scripts
parentb1acfd0dd89af033176adbc21ad37e257fa3824f (diff)
downloadports-eee44da689baa3adcce171abfb0181f55ca393ba.tar.gz
ports-eee44da689baa3adcce171abfb0181f55ca393ba.zip
New port for leim-21.1.
Leim is Libraries of Emacs Input Method (for Multi-Languages).
Notes
Notes: svn path=/head/; revision=49132
Diffstat (limited to 'editors/leim21/scripts')
-rw-r--r--editors/leim21/scripts/configure28
1 files changed, 28 insertions, 0 deletions
diff --git a/editors/leim21/scripts/configure b/editors/leim21/scripts/configure
new file mode 100644
index 000000000000..7fe05a1f69fa
--- /dev/null
+++ b/editors/leim21/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