337561deb6
closes #2274 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'wxPython4'
|
|
pkgname=wxPython4
|
|
version=4.0.3
|
|
revision=1
|
|
wrksrc="${pkgname//4/}-${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 <jasperchan515@gmail.com>"
|
|
license="wxWindows"
|
|
homepage="http://www.wxpython.org/"
|
|
distfiles="${PYPI_SITE}/w/${pkgname//4/}/${pkgname//4}-${version}.tar.gz"
|
|
checksum=8d0dfc0146c24749ce00d575e35cc2826372e809d5bc4a57bde6c89031b59e75
|
|
|
|
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
|
|
}
|