void-packages/srcpkgs/kicad/template
2018-03-04 10:21:41 +00:00

32 lines
1.1 KiB
Bash

# Template file for 'kicad'
pkgname=kicad
version=4.0.7
revision=5
build_style=cmake
configure_args="-DKICAD_BUILD_VERSION=$version -DKICAD_SKIP_BOOST=ON
-DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON"
hostmakedepends="pkg-config swig"
makedepends="wxWidgets-devel wxPython-devel python-devel glew-devel cairo-devel
libressl-devel boost-devel libcurl-devel"
depends="wxPython"
short_desc="Electronic schematic and PCB design software"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2"
homepage="http://kicad-pcb.org"
distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.xz"
checksum=09074c77c6097d0f2ae49711c6d6f6c4490f0c068bba69b17f5f07319255fdc1
patch_args="-Np1"
CXXFLAGS="-std=c++11"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" python"
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"
pre_configure() {
CXXFLAGS+=" $(wx-config --cxxflags)"
}
fi