2005-11-12 18:05:51 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
configurePhase() {
|
|
|
|
cd lib/Xaw3d
|
|
|
|
(mkdir X11 && cd X11 && ln -fs .. Xaw3d)
|
|
|
|
xmkmf
|
|
|
|
}
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
make depend $makeFlags
|
|
|
|
make $makeFlags
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
|
|
|
make install SHLIBDIR=$out/lib USRLIBDIR=$out/lib INCDIR=$out/include
|
2006-01-09 20:37:11 +01:00
|
|
|
cd $out/include/X11 && ln -s Xaw3d Xaw
|
|
|
|
|
|
|
|
ensureDir "$out/nix-support"
|
|
|
|
echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
|
2005-11-12 18:05:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
makeFlags="CDEBUGFLAGS=" # !!! awful hack
|
|
|
|
|
2009-04-23 15:31:10 +02:00
|
|
|
genericBuild
|