plan9port: modify the builder to use the INSTALL script.

plan9port ships with an INSTALL script. This commit modifies the
builder to use the script instead of a custom build script. The
commit also adds a patch to build fontsrv, which is otherwise
omitted from the build.
This commit is contained in:
Ramakrishnan Muthukrishnan
2014-04-15 18:37:18 +05:30
parent 61cc18c55f
commit 38e81b5640
3 changed files with 24 additions and 40 deletions
+7 -39
View File
@@ -4,46 +4,14 @@ tar xvfz $src
cd plan9
export PLAN9=`pwd`
export X11=/tmp
for p in $patches; do
echo "applying patch $p"
patch -p1 < $p
done
# Patch for the installation
sed -i -e 's@`which echo`@echo@' lib/moveplan9.sh
./INSTALL -b
./INSTALL -r $out/plan9
OLDPATH=$PATH
PATH=`pwd`/bin:$PATH
gcc lib/linux-isnptl.c -lpthread
set +e
if ./a.out > /dev/null
then
echo "SYSVERSION=2.6.x" >config
else
echo "SYSVERSION=2.4.x" >config
fi
rm -f ./a.out
set -e
pushd src
# Build mk
../dist/buildmk 2>&1 | sed 's/^[+] //'
# Build everything
mk clean
mk libs-nuke
mk all || exit 1
mk install || exit 1
popd
# Installation
export PLAN9=$out
export PLAN9=$out/plan9
mkdir -p $PLAN9
GLOBIGNORE='src:.*'
cp -R * $PLAN9
GLOBIGNORE=
cd $PLAN9
sh lib/moveplan9.sh `pwd`