2005-11-12 17:05:51 +00: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 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
|
|
|
|
|
2009-04-23 13:31:10 +00:00
|
|
|
genericBuild
|