7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
38 lines
672 B
Bash
38 lines
672 B
Bash
source $stdenv/setup
|
|
|
|
patchPhase() {
|
|
for i in $patches; do
|
|
header "applying patch $i" 3
|
|
patch -p0 < $i
|
|
stopNest
|
|
done
|
|
|
|
configureImakefiles "s:__PREFIX_PNG:$libpng:"
|
|
configureImakefiles "s:__PREFIX:$out:"
|
|
}
|
|
|
|
configureImakefiles() {
|
|
local sedcmd=$1
|
|
|
|
sed "${sedcmd}" fig2dev/Imakefile > tmpsed
|
|
cp tmpsed fig2dev/Imakefile
|
|
|
|
sed "${sedcmd}" fig2dev/dev/Imakefile > tmpsed
|
|
cp tmpsed fig2dev/dev/Imakefile
|
|
|
|
sed "${sedcmd}" transfig/Imakefile > tmpsed
|
|
cp tmpsed transfig/Imakefile
|
|
}
|
|
|
|
buildPhase() {
|
|
xmkmf
|
|
make Makefiles
|
|
make
|
|
}
|
|
|
|
preInstall() {
|
|
ensureDir $out
|
|
ensureDir $out/lib
|
|
}
|
|
|
|
genericBuild
|