40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'kicad'
|
|
# XXX: keep in sync with kicad-doc
|
|
pkgname=kicad
|
|
version=8.0.5
|
|
revision=1
|
|
build_style=cmake
|
|
build_helper="cmake-wxWidgets-gtk3"
|
|
configure_args="-DKICAD_SCRIPTING_WXPYTHON=ON -DKICAD_USE_EGL=ON -DKICAD_BUILD_QA_TESTS=OFF
|
|
-DKICAD_BUILD_I18N=ON -DKICAD_I18N_UNIX_STRICT_PATH=ON -DLEMON_EXE=/usr/bin/lemon"
|
|
hostmakedepends="pkg-config swig wxWidgets-gtk3-devel tar gettext
|
|
python3 python3-setuptools sqlite-lemon"
|
|
makedepends="wxWidgets-gtk3-devel wxPython python3-devel glew-devel
|
|
cairo-devel boost-devel libcurl-devel glm libgomp-devel libfreeglut-devel
|
|
gtk+3-devel unixodbc-devel occt-devel ngspice-devel libgit2-devel
|
|
libsecret-devel"
|
|
depends="wxPython"
|
|
checkdepends="python3-pytest python3-cairosvg"
|
|
short_desc="Electronic schematic and PCB design software"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://kicad.org"
|
|
changelog="https://www.kicad.org/blog/categories/Release-Notes/"
|
|
distfiles="https://gitlab.com/kicad/code/kicad/-/archive/${version}/kicad-${version}.tar.gz"
|
|
checksum=4223da87b678f7754c726e5f0b5bb5ed9310ee9ef5ff3dd21dbfbf4c35f5fc07
|
|
python_version=3
|
|
replaces="kicad-i18n>=0"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" wxPython"
|
|
configure_args+=" -DPYTHON_DEST=/${py3_sitelib}"
|
|
fi
|
|
|
|
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
post_patch() {
|
|
# python struct.calcsize('@P') return pointer size of build system.
|
|
vsed -i -e 's/CMAKE_SIZEOF_VOID_P AND/FALSE AND &/' \
|
|
thirdparty/pybind11/tools/FindPythonLibsNew.cmake
|
|
}
|