mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
607b018dbb
svn path=/nixpkgs/trunk/; revision=15526
23 lines
545 B
Bash
23 lines
545 B
Bash
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
|
|
|
|
sed -e 's@[$][$]m@-- &@g' -i Makefile
|
|
}
|
|
|
|
installPhase() {
|
|
make install.all $makeFlags
|
|
|
|
wrapProgram $out/bin/xfig \
|
|
--set XAPPLRESDIR $out/etc/X11/app-defaults
|
|
}
|
|
|
|
genericBuild
|