2009-03-23 21:31:30 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar xvfz $src
|
|
|
|
|
2014-07-31 05:38:00 +01:00
|
|
|
cd plan9port
|
|
|
|
|
2014-12-06 15:18:30 +00:00
|
|
|
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
|
|
|
|
echo X11=\"${libXt}/include\" >> LOCAL.config
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2014-04-15 03:24:36 +01:00
|
|
|
for p in $patches; do
|
|
|
|
echo "applying patch $p"
|
|
|
|
patch -p1 < $p
|
|
|
|
done
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2014-04-15 03:24:36 +01:00
|
|
|
export PLAN9=$out/plan9
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $PLAN9
|
2014-12-17 22:36:50 +00:00
|
|
|
|
|
|
|
for f in `grep -l -r /usr/local/plan9`; do
|
|
|
|
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
|
|
|
|
done
|
|
|
|
|
|
|
|
./INSTALL -r $PLAN9
|
2009-03-23 21:31:30 +00:00
|
|
|
cp -R * $PLAN9
|