void-packages/srcpkgs/kicad/template
2019-12-18 11:59:07 +01:00

36 lines
1.3 KiB
Bash

# Template file for 'kicad'
pkgname=kicad
version=5.1.5
revision=1
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_SPICE=$(vopt_if spice ON OFF)"
hostmakedepends="pkg-config swig wxWidgets-devel"
makedepends="wxWidgets-devel wxPython-devel python-devel glew-devel cairo-devel
libressl-devel boost-devel libcurl-devel glm occt-devel libgomp-devel
$(vopt_if spice ngspice-devel)"
depends="wxPython"
short_desc="Electronic schematic and PCB design software"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://kicad-pcb.org"
distfiles="https://launchpad.net/${pkgname}/${version%%.*}.0/${version}/+download/${pkgname}-${version}.tar.xz"
checksum=80625a1da876e1be683dc08268fe43fe67bb704e841e977431f7a82bdc096474
build_options="spice"
build_options_default="spice"
CXXFLAGS="-std=c++17"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" python wxPython"
configure_args+=" -DPYTHON_SITE_PACKAGE_PATH=${XBPS_CROSS_BASE}/${py2_sitelib}
-DPYTHON_DEST=${py2_sitelib}"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
CXXFLAGS+=" $(wx-config --cxxflags)"
fi
}