2006-12-27 21:40:25 +01: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=preBuild
|
|
|
|
preBuild() {
|
|
|
|
echo "#define XAW3D" >> Imakefile.tmp
|
|
|
|
echo "#define XAW3D1_5E" >> Imakefile.tmp
|
|
|
|
cat Imakefile >> Imakefile.tmp
|
|
|
|
mv Imakefile.tmp Imakefile
|
|
|
|
xmkmf
|
|
|
|
}
|
|
|
|
|
|
|
|
installCommand=myInstall
|
|
|
|
myInstall() {
|
|
|
|
make install.all $makeFlags
|
|
|
|
|
2008-01-23 19:11:03 +01:00
|
|
|
wrapProgram $out/bin/xfig \
|
2006-12-27 21:40:25 +01:00
|
|
|
--set XAPPLRESDIR $out/etc/X11/app-defaults
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|