2006-12-27 20:40:25 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
makeFlags="XAWLIB=-lXaw3d BINDIR=$out/bin XAPPLOADDIR=$out/etc/X11/app-defaults LIBDIR=$out/lib/X11 XFIGDOCDIR=$out/share/doc/xfig MANPATH=$out/man"
|
|
|
|
|
|
|
|
preBuild() {
|
|
|
|
echo "#define XAW3D" >> Imakefile.tmp
|
|
|
|
echo "#define XAW3D1_5E" >> Imakefile.tmp
|
|
|
|
cat Imakefile >> Imakefile.tmp
|
|
|
|
mv Imakefile.tmp Imakefile
|
|
|
|
xmkmf
|
2009-05-10 11:43:18 +01:00
|
|
|
|
|
|
|
sed -e 's@[$][$]m@-- &@g' -i Makefile
|
2006-12-27 20:40:25 +00:00
|
|
|
}
|
|
|
|
|
2008-09-02 14:51:32 +01:00
|
|
|
installPhase() {
|
2006-12-27 20:40:25 +00:00
|
|
|
make install.all $makeFlags
|
|
|
|
|
2008-01-18 11:28:41 +00:00
|
|
|
wrapProgram $out/bin/xfig \
|
2006-12-27 20:40:25 +00:00
|
|
|
--set XAPPLRESDIR $out/etc/X11/app-defaults
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|