35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'kicad'
|
|
pkgname=kicad
|
|
version=4.0.7
|
|
revision=6
|
|
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"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
CXXFLAGS+=" $(wx-config --cxxflags)"
|
|
fi
|
|
|
|
sed 's/_CHECK_SYMBOL_EXISTS/CHECK_SYMBOL_EXISTS/' \
|
|
-i CMakeModules/CheckCXXSymbolExists.cmake
|
|
}
|