9820e009eb
wxPython requires wxWidgets to be built with webview enabled, but it doesn't use webkit directly and doesn't appear to direclty need webkit2gtk.
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
# Template file for 'wxPython'
|
|
pkgname=wxPython
|
|
version=4.2.1
|
|
revision=4
|
|
build_style=python3-module
|
|
make_build_args="--skip-build"
|
|
make_install_args="--skip-build"
|
|
hostmakedepends="pkg-config python3-setuptools python3-pathlib2 python3-Cython0.29"
|
|
makedepends="python3-devel wxWidgets-gtk3-devel SDL2-devel
|
|
gst-plugins-base1-devel"
|
|
depends="python3 python3-six python3-numpy python3-Pillow"
|
|
short_desc="Python bindings for wxWidgets"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="custom:wxWindows"
|
|
homepage="http://www.wxpython.org/"
|
|
distfiles="${PYPI_SITE}/w/wxPython/wxPython-${version}.tar.gz"
|
|
checksum=e48de211a6606bf072ec3fa778771d6b746c00b7f4b970eb58728ddf56d13d5c
|
|
|
|
export WXPYTHON_RELEASE=yes
|
|
if [ "$CROSS_BUILD" ]; then
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc} -I${XBPS_CROSS_BASE}/usr/include"
|
|
export WX_CONFIG="${XBPS_WRAPPERDIR}/wx-config-gtk3"
|
|
else
|
|
export WX_CONFIG=wx-config-gtk3
|
|
fi
|
|
|
|
post_patch() {
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
patch -Np1 < "${FILESDIR}/no-stacktrace.patch"
|
|
fi
|
|
}
|
|
|
|
pre_build() {
|
|
chmod -R go+rX $wrksrc
|
|
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}$wrksrc"
|
|
if [ "$CROSS_BUILD" ]; then
|
|
PYPREFIX="$XBPS_CROSS_BASE"
|
|
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" \
|
|
PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config" \
|
|
LDFLAGS="$LDFLAGS" python3 build.py build_py --use_syswx
|
|
else
|
|
python3 build.py build_py --use_syswx
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
wxPython-devel_package() {
|
|
build_style=meta
|
|
short_desc+=" - transitional dummy package"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
}
|
|
|
|
wxPython4_package() {
|
|
build_style=meta
|
|
short_desc+=" - transitional dummy package"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
}
|