mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-17 00:00:40 +00:00
fd11e4e55d
libraries moved into "/usr/lib/aout".
37 lines
803 B
Bash
37 lines
803 B
Bash
#! /bin/sh
|
|
#
|
|
# $Id: configure,v 1.2 1998/05/29 17:58:09 jdp Exp $
|
|
|
|
umask 022
|
|
|
|
files_to_patch="\
|
|
${WRKSRC}/m3/m3build/templates/FreeBSD2"
|
|
temp_prefix=${WRKSRC}/installed
|
|
|
|
if [ -f /usr/lib/crt0.o ]; then
|
|
crt=/usr/lib/crt0.o
|
|
elif [ -f /usr/lib/aout/crt0.o ]; then
|
|
crt=/usr/lib/aout/crt0.o
|
|
else
|
|
echo "Cannot find a \"crt0.o\" file" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f /usr/lib/libgcc.a ]; then
|
|
libgcc=/usr/lib/libgcc.a
|
|
elif [ -f /usr/lib/aout/libgcc.a ]; then
|
|
libgcc=/usr/lib/aout/libgcc.a
|
|
else
|
|
echo "Cannot find a \"libgcc.a\" file" >&2
|
|
exit 1
|
|
fi
|
|
|
|
for i in ${files_to_patch}; do
|
|
test -f ${i}.bak || cp -p ${i} ${i}.bak
|
|
rm -f ${i}
|
|
sed -e "s|/usr/local/|${temp_prefix}/|g" \
|
|
-e "s|/usr/lib/crt0\.o|${crt}|g" \
|
|
-e "s|/usr/lib/libgcc\.a|${libgcc}|g" \
|
|
${i}.bak >${i}
|
|
done
|