1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/editors/leim20/scripts/configure
Vanilla I. Shu 8012ca6372 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>
1998-09-18 22:03:07 +00:00

29 lines
806 B
Bash

#!/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