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