2006-07-17 20:35:02 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
patchPhase() {
|
2006-12-08 01:17:21 +00:00
|
|
|
for i in $patches; do
|
|
|
|
header "applying patch $i" 3
|
2008-04-23 07:34:20 +00:00
|
|
|
patch -p0 < $i
|
2006-12-08 01:17:21 +00:00
|
|
|
stopNest
|
|
|
|
done
|
|
|
|
|
|
|
|
configureImakefiles "s:__PREFIX_PNG:$libpng:"
|
|
|
|
configureImakefiles "s:__PREFIX:$out:"
|
2006-07-17 20:35:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configureImakefiles() {
|
2006-12-08 01:17:21 +00:00
|
|
|
local sedcmd=$1
|
2006-07-17 20:35:02 +00:00
|
|
|
|
2006-12-08 01:17:21 +00:00
|
|
|
sed "${sedcmd}" fig2dev/Imakefile > tmpsed
|
|
|
|
cp tmpsed fig2dev/Imakefile
|
2006-07-17 20:35:02 +00:00
|
|
|
|
2006-12-08 01:17:21 +00:00
|
|
|
sed "${sedcmd}" fig2dev/dev/Imakefile > tmpsed
|
|
|
|
cp tmpsed fig2dev/dev/Imakefile
|
2006-07-17 20:35:02 +00:00
|
|
|
|
2006-12-08 01:17:21 +00:00
|
|
|
sed "${sedcmd}" transfig/Imakefile > tmpsed
|
|
|
|
cp tmpsed transfig/Imakefile
|
2006-07-17 20:35:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
xmkmf
|
|
|
|
make Makefiles
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
preInstall() {
|
2006-12-08 01:17:21 +00:00
|
|
|
ensureDir $out
|
|
|
|
ensureDir $out/lib
|
2006-07-17 20:35:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|