nixpkgs/pkgs/development/python-modules/wxPython-2.5/builder.sh
Eelco Dolstra 82e678362f * "." -> "source".
svn path=/nixpkgs/trunk/; revision=4335
2005-12-05 14:11:09 +00:00

24 lines
523 B
Bash

source $stdenv/setup
flags="WXPORT=gtk2 BUILD_GLCANVAS=0 BUILD_OGL=0"
configurePhase() {
cd wxPython
}
configurePhase=configurePhase
buildPhase() {
# Hack: setup.py should figure this out itself (by calling
# wx-config) but apparently something goes wrong.
export NIX_CFLAGS_COMPILE="`wx-config --cflags` $NIX_CFLAGS_COMPILE"
python setup.py $flags build_ext
}
buildPhase=buildPhase
installPhase() {
python setup.py $flags install --prefix=$out
}
installPhase=installPhase
genericBuild