wxPython: fix cross compilation
This commit is contained in:
parent
b0f5072a18
commit
a9257ea10c
1 changed files with 7 additions and 11 deletions
|
@ -18,29 +18,25 @@ distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
|
|||
checksum=d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
|
||||
|
||||
if [ -n "${CROSS_BUILD}" ]; then
|
||||
broken="wxWidgets can't be properly cross compiled"
|
||||
hostmakedepends+=" python"
|
||||
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python${py2_ver}"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
mv wxPython/wx/tools/Editra/{editra,Editra}
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
./configure --prefix=/usr --enable-monolithic --with-gtk=2 --with-x \
|
||||
--with-opengl --enable-unicode --enable-graphics_ctx \
|
||||
--enable-optimize --with-regex=builtin \
|
||||
--with-libpng=sys --with-libxpm=sys --with-libjpeg=sys \
|
||||
--with-libtiff=sys --disable-precomp-headers
|
||||
}
|
||||
|
||||
do_build() {
|
||||
cd wxPython
|
||||
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 build
|
||||
python2.7 setup.py build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd wxPython
|
||||
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 install --root=${DESTDIR}
|
||||
# The path where includes are going to be installed is prefixed with WXPREFIX obtained
|
||||
# from 'wx-config --prefix' but in a cross build this is '$XBPS_CROSS_BASE/usr'.
|
||||
sed -i -e "s|WXPREFIX +|'/usr' +|" config.py
|
||||
python2.7 setup.py install --root=${DESTDIR}
|
||||
vlicense ../docs/licence.txt LICENSE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue