2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-08-19 17:29:10 +02:00
|
|
|
|
2006-07-25 02:52:21 +02:00
|
|
|
configureFlags="--with-zlib=$zlib"
|
2004-08-19 17:29:10 +02:00
|
|
|
if test "$pythonSupport"; then
|
|
|
|
configureFlags="--with-python=$python $configureFlags"
|
|
|
|
fi
|
|
|
|
|
|
|
|
patchPhase() {
|
|
|
|
echo "Patching"
|
|
|
|
mv configure configure.old
|
2005-10-11 16:29:30 +02:00
|
|
|
sed -e "s^pythondir=.*$^pythondir=$out/lib/python2.4/site-packages^" < configure.old > configure
|
2004-08-19 17:29:10 +02:00
|
|
|
chmod u+x configure
|
|
|
|
}
|
|
|
|
patchPhase=patchPhase
|
|
|
|
|
|
|
|
genericBuild
|