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"
|
|
|
|
|
2012-01-02 16:29:14 +01:00
|
|
|
# We need chmod +wx on dirs, not just chmod +w
|
|
|
|
dontMakeSourcesWritable=1
|
|
|
|
postUnpack() {
|
|
|
|
find . -type d | xargs -n1 chmod +x
|
|
|
|
find . -type d | xargs -n1 chmod +x
|
|
|
|
}
|
|
|
|
|
2006-12-27 21:40:25 +01:00
|
|
|
preBuild() {
|
|
|
|
echo "#define XAW3D" >> Imakefile.tmp
|
|
|
|
echo "#define XAW3D1_5E" >> Imakefile.tmp
|
|
|
|
cat Imakefile >> Imakefile.tmp
|
|
|
|
mv Imakefile.tmp Imakefile
|
|
|
|
xmkmf
|
2009-05-10 12:43:18 +02:00
|
|
|
|
|
|
|
sed -e 's@[$][$]m@-- &@g' -i Makefile
|
2006-12-27 21:40:25 +01:00
|
|
|
}
|
|
|
|
|
2008-09-02 15:51:32 +02:00
|
|
|
installPhase() {
|
2006-12-27 21:40:25 +01:00
|
|
|
make install.all $makeFlags
|
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
wrapProgram $out/bin/xfig \
|
2006-12-27 21:40:25 +01:00
|
|
|
--set XAPPLRESDIR $out/etc/X11/app-defaults
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|