2004-02-18 16:22:31 +00:00
|
|
|
buildinputs=""
|
2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2004-02-18 16:22:31 +00:00
|
|
|
|
|
|
|
tar xvfj $src
|
|
|
|
cd tools
|
2008-07-26 02:02:27 +01:00
|
|
|
[ -n "$tunctl" ] && sed -e '1s/.*/TUNCTL = tunctl/' -i Makefile
|
|
|
|
[ -z "$mconsole" ] && sed -e 's/mconsole//' -i Makefile
|
|
|
|
|
2004-02-18 16:22:31 +00:00
|
|
|
mkdir $out
|
|
|
|
mkdir $out/bin
|
|
|
|
mkdir $out/lib
|
|
|
|
mkdir $out/lib/uml
|
|
|
|
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml
|
|
|
|
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml install
|
2008-07-22 16:43:55 +01:00
|
|
|
ln -s $out/lib/uml/port-helper $out/bin/port-helper
|
2008-07-26 02:02:27 +01:00
|
|
|
[ -z "$tunctl" ] || [ -f $out/bin/tunctl ] || fail_no_tunctl
|
|
|
|
[ -z "$mconsole" ] || [ -f $out/bin/uml_mconsole ] || fail_no_mconsole
|