# Template file for 'kicad' pkgname=kicad version=5.0.1 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_SPICE=$(vopt_if spice ON OFF)" hostmakedepends="pkg-config swig" 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 " license="GPL-3.0-or-later" homepage="http://kicad-pcb.org" distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.xz" checksum=5fe4f63318522cb0a1c89ecd6a71c470def1720f152954cf3182f5deb878716a build_options="spice" CXXFLAGS="-std=c++14" # currently disabled on arm because nocross is set for ngspice case $XBPS_TARGET_MACHINE in armv6l-musl) broken="depends on broken tbb" ;; *-musl) ;; *) build_options_default="spice" ;; esac if [ "$CROSS_BUILD" ]; then hostmakedepends+=" python wxPython" configure_args+=" -DPYTHON_SITE_PACKAGE_PATH=${XBPS_CROSS_BASE}/usr/lib/python${py2_ver}/site-packages -DPYTHON_DEST=/usr/lib/python${py2_ver}/site-packages" fi pre_configure() { if [ "$CROSS_BUILD" ]; then CXXFLAGS+=" $(wx-config --cxxflags)" fi }