void-packages/srcpkgs/kicad/template
Érico Rolim a5ab44df27 kicad: switch to python3, add occt build_option.
- Move from wxPython to wxPython4.
- Move from python to python3.
- Fix wxWidgets config options.

- Add occt build option (not needed for now, occt can be built for all
archs).

- Add update file: without one, it couldn't find versions. Also ignore
development version *99*.

[ci skip]
2020-08-02 20:24:45 +02:00

34 lines
1.4 KiB
Bash

# Template file for 'kicad'
pkgname=kicad
version=5.1.6
revision=3
build_style=cmake
configure_args="-DKICAD_BUILD_VERSION=${version} -DKICAD_SCRIPTING=ON
-DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON
-DKICAD_SCRIPTING_ACTION_MENU=ON -DBUILD_GITHUB_PLUGIN=ON -DKICAD_USE_OCE=OFF
-DKICAD_SCRIPTING_PYTHON3=ON -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
-DKICAD_USE_OCC=$(vopt_if occt ON OFF) -DKICAD_SPICE=$(vopt_if spice ON OFF)"
hostmakedepends="pkg-config swig wxWidgets-gtk3-devel python3"
makedepends="wxWidgets-gtk3-devel wxPython4 python3-devel glew-devel cairo-devel
libressl-devel boost-devel libcurl-devel glm libgomp-devel
$(vopt_if occt occt-devel) $(vopt_if spice ngspice-devel)"
depends="wxPython4"
short_desc="Electronic schematic and PCB design software"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later"
homepage="http://kicad-pcb.org"
distfiles="https://gitlab.com/kicad/code/${pkgname}/-/archive/${version}/kicad-${version}.tar.gz"
checksum=ac1a15e25a7ff0aca4b6224bdb2d3298081b43bedfad79470339d53d5e72beb0
python_version=3
build_options="spice occt"
build_options_default="spice occt"
desc_option_spice="Enable support for SPICE simulation"
desc_option_occt="Enable support for 3D STEP models"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wxPython4"
configure_args+=" -DPYTHON_DEST=/${py3_sitelib}
-DwxWidgets_CONFIG_OPTIONS='--prefix=${XBPS_CROSS_BASE}'"
fi