mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-07 22:58:11 +00:00
e78c6755b3
things like koi8-r recognition, background news (nntp) processing, ispell support. Note that there's a horrible hack here to work around a weakness in bsd.port.mk. The distributed patches are relative to a subdir of ${WRKSRC} and bsd.port.mk doesn't seem to allow clean overriding of that to patch. I appended a second "-d dir" arg to PATCH_DIST_ARGS after the .include that set up the string with +=. patch seems to use the last instance of "-d dir" when there are several online (it's a simple parse-time chdir). Prompted by: pst (who also sent a partial update)
76 lines
1.7 KiB
Bash
76 lines
1.7 KiB
Bash
#! /bin/sh
|
|
#
|
|
# $Id: build,v 1.2 1996/12/31 21:27:02 peter Exp $
|
|
#
|
|
|
|
VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
|
|
DATE="`sed -ne 's/^set date \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
|
|
|
|
SEDFILE=sed.$$
|
|
|
|
EXPECT="{}"
|
|
FACES="{}"
|
|
DOMAIN="{}"
|
|
PGP="{}"
|
|
GLIMPSE="{}"
|
|
PLAY="{}"
|
|
|
|
if [ -f ${PREFIX}/bin/expect ]; then
|
|
EXPECT=${PREFIX}/bin/expect #executable
|
|
fi
|
|
if [ -f ${PREFIX}/bin/expectk ]; then
|
|
EXPECTK=${PREFIX}/bin/expectk #executable
|
|
fi
|
|
|
|
if [ -d ${PREFIX}/share/faces ]; then
|
|
FACES=${PREFIX}/share/faces #dir
|
|
shortname="`hostname -s`"
|
|
domain="`hostname | sed -e s/^${shortname}// -e s/^.// | tr A-Z a-z`"
|
|
if [ "${domain}" != "" ]; then
|
|
DOMAIN="{${domain}}"
|
|
fi
|
|
fi
|
|
|
|
if [ -f ${PREFIX}/bin/pgp ]; then
|
|
PGP=${PREFIX}/bin #bindir
|
|
fi
|
|
|
|
if [ -f ${PREFIX}/bin/glimpse ]; then
|
|
GLIMPSE=${PREFIX}/bin #bindir
|
|
fi
|
|
|
|
if [ -f ${PREFIX}/bin/rplay ]; then
|
|
PLAY=${PREFIX}/bin/rplay #executable
|
|
fi
|
|
|
|
echo "s@^#!wish@#!${WISH}@" >${SEDFILE}
|
|
if [ "${EXPECT}" != "{}" ]; then
|
|
echo "s@^#!expect@#!${EXPECT}@" >>${SEDFILE}
|
|
fi
|
|
echo "/^#CONFIGURATION/a\\" >>${SEDFILE}
|
|
|
|
sed <${FILESDIR}/config \
|
|
-e "s+!!PREFIX!!+${PREFIX}+g" \
|
|
-e "s+!!WISH!!+${WISH}+g" \
|
|
-e "s+!!EXPECT!!+${EXPECT}+g" \
|
|
-e "s+!!EXPECTK!!+${EXPECTK}+g" \
|
|
-e "s+!!FACES!!+${FACES}+g" \
|
|
-e "s+!!DOMAIN!!+${DOMAIN}+g" \
|
|
-e "s+!!PGP!!+${PGP}+g" \
|
|
-e "s+!!GLIMPSE!!+${GLIMPSE}+g" \
|
|
-e "s+!!PLAY!!+${PLAY}+g" \
|
|
-e "s+!!VERSION!!+${VERSION}+g" \
|
|
-e "s+!!DATE!!+${DATE}+g" \
|
|
| sed -e 's/$/\\/' >> ${SEDFILE}
|
|
|
|
for i in exmh-async exmh-bg exmh ftp.expect
|
|
do
|
|
echo "sed -f ${SEDFILE} < $i.MASTER > $i"
|
|
sed -f ${SEDFILE} < $i.MASTER > $i
|
|
done
|
|
|
|
rm -f ${SEDFILE}
|
|
|
|
echo "cd lib ; echo 'auto_mkindex . *.tcl ; exit' | tclsh"
|
|
cd lib ; echo 'auto_mkindex . *.tcl ; exit' | tclsh
|