2006-07-17 22:35:02 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
patchPhase=patchPhase
|
|
|
|
patchPhase() {
|
2006-12-08 02:17:21 +01: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 22:35:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configureImakefiles() {
|
2006-12-08 02:17:21 +01:00
|
|
|
local sedcmd=$1
|
2006-07-17 22:35:02 +02:00
|
|
|
|
2006-12-08 02:17:21 +01:00
|
|
|
sed "${sedcmd}" fig2dev/Imakefile > tmpsed
|
|
|
|
cp tmpsed fig2dev/Imakefile
|
2006-07-17 22:35:02 +02:00
|
|
|
|
2006-12-08 02:17:21 +01:00
|
|
|
sed "${sedcmd}" fig2dev/dev/Imakefile > tmpsed
|
|
|
|
cp tmpsed fig2dev/dev/Imakefile
|
2006-07-17 22:35:02 +02:00
|
|
|
|
2006-12-08 02:17:21 +01:00
|
|
|
sed "${sedcmd}" transfig/Imakefile > tmpsed
|
|
|
|
cp tmpsed transfig/Imakefile
|
2006-07-17 22:35:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
xmkmf
|
|
|
|
make Makefiles
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
preInstall=preInstall
|
|
|
|
preInstall() {
|
2006-12-08 02:17:21 +01:00
|
|
|
ensureDir $out
|
|
|
|
ensureDir $out/lib
|
2006-07-17 22:35:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|