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