2009-03-23 22:31:30 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
export PLAN9=$out/plan9
|
2015-09-10 14:50:51 +02:00
|
|
|
export PLAN9_TARGET=$PLAN9
|
2009-03-23 22:31:30 +01:00
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
configurePhase()
|
|
|
|
{
|
2018-12-31 04:40:47 +01:00
|
|
|
echo CFLAGS=\"-I${fontconfig_dev}/include -I${xorgproto_exp}/include -I${libX11_dev}/include -I${libXt_dev}/include -I${libXext_dev}/include -I${freetype_dev}/include -I${zlib_dev}/include\" > LOCAL.config
|
|
|
|
echo LDFLAGS=\"-L${fontconfig_lib}/lib -L${xorgproto_exp}/lib -L${libX11_exp}/lib -L${libXt_exp}/lib -L${libXext_exp}/lib -L${freetype_exp}/lib -L${zlib_exp}/lib\" >> LOCAL.config
|
2015-10-05 11:22:48 +02:00
|
|
|
echo X11=\"${libXt_dev}/include\" >> LOCAL.config
|
2014-07-31 06:38:00 +02:00
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
for f in `grep -l -r /usr/local/plan9`; do
|
|
|
|
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
|
|
|
|
done
|
|
|
|
}
|
2009-03-23 22:31:30 +01:00
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
buildPhase()
|
|
|
|
{
|
|
|
|
mkdir -p $PLAN9
|
2015-09-10 14:50:51 +02:00
|
|
|
./INSTALL -b
|
2015-08-23 19:17:01 +02:00
|
|
|
}
|
2009-03-23 22:31:30 +01:00
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
installPhase()
|
|
|
|
{
|
2015-09-10 14:50:51 +02:00
|
|
|
./INSTALL -c
|
2015-08-23 19:17:01 +02:00
|
|
|
# Copy sources
|
|
|
|
cp -R * $PLAN9
|
2014-12-17 23:36:50 +01:00
|
|
|
|
2015-08-23 19:17:01 +02: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 23:36:50 +01:00
|
|
|
|
2015-08-23 19:17:01 +02:00
|
|
|
genericBuild
|