# Template file for 'wxPython4' pkgname=wxPython4 version=4.0.4 revision=1 wrksrc="wxPython-${version}" build_style=python3-module pycompile_module="wx" make_build_args="--skip-build" make_install_args="--skip-build" hostmakedepends="pkg-config python3-setuptools" makedepends="python3-devel wxWidgets-gtk3-devel SDL2-devel webkit2gtk-devel gst-plugins-base1-devel" depends="python3" short_desc="WxWidgets GUI toolkit library (Python3 Bindings)" maintainer="Jasper Chan " license="wxWindows" homepage="http://www.wxpython.org/" distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz" checksum=0d9ef4260cb2f3e23ed9dcf6baa905ba585ac7d631613cddc299c4c83463ae29 if [ "$CROSS_BUILD" ]; then hostmakedepends+=" python3" CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python${py3_ver}" fi pre_build() { if [ "$CROSS_BUILD" ]; then PYPREFIX="$XBPS_CROSS_BASE" CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include" LDFLAGS+=" -L${XBPS_CROSS_BASE}/${py3_lib} -L${XBPS_CROSS_BASE}/usr/lib" CC="${XBPS_CROSS_TRIPLET}-gcc -pthread $CFLAGS $LDFLAGS" LDSHARED="${CC} -shared $LDFLAGS" env CC="$CC" LDSHARED="$LDSHARED" \ PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \ LDFLAGS="$LDFLAGS" python3 build.py --use_syswx else python3 build.py --use_syswx fi } post_install() { vlicense LICENSE.txt }