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"
|
|
|
|
|
2012-01-02 15:29:14 +00:00
|
|
|
# We need chmod +wx on dirs, not just chmod +w
|
|
|
|
dontMakeSourcesWritable=1
|
|
|
|
postUnpack() {
|
2015-06-27 16:44:06 +01:00
|
|
|
find . -type d -exec chmod +x '{}' \;
|
2012-01-02 15:29:14 +00:00
|
|
|
}
|
|
|
|
|
2006-12-27 20:40:25 +00: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 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
|