2009-03-23 21:31:30 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
export PLAN9=$out/plan9
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
configurePhase()
|
|
|
|
{
|
|
|
|
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
|
|
|
|
echo X11=\"${libXt}/include\" >> LOCAL.config
|
2014-07-31 05:38:00 +01:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
for f in `grep -l -r /usr/local/plan9`; do
|
|
|
|
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
|
|
|
|
done
|
|
|
|
}
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
buildPhase()
|
|
|
|
{
|
|
|
|
mkdir -p $PLAN9
|
|
|
|
./INSTALL -b $PLAN9
|
|
|
|
}
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
installPhase()
|
|
|
|
{
|
|
|
|
./INSTALL -c -r $PLAN9
|
|
|
|
# Copy sources
|
|
|
|
cp -R * $PLAN9
|
2014-12-17 22:36:50 +00:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
# Copy the `9' utility. This way you can use
|
|
|
|
# $ 9 awk
|
|
|
|
# to use the plan 9 awk
|
|
|
|
mkdir $out/bin
|
|
|
|
ln -s $PLAN9/bin/9 $out/bin
|
|
|
|
}
|
2014-12-17 22:36:50 +00:00
|
|
|
|
2015-08-23 18:17:01 +01:00
|
|
|
genericBuild
|