kicad: fix with newer cmake

This commit is contained in:
Enno Boland 2018-04-25 12:33:29 +02:00
parent b7361f0ec8
commit 3abcc53f62
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
1 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'kicad'
pkgname=kicad
version=4.0.7
revision=5
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"
@ -23,9 +23,13 @@ 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
pre_configure() {
if [ -n "$CROSS_BUILD" ]; then
CXXFLAGS+=" $(wx-config --cxxflags)"
fi
sed 's/_CHECK_SYMBOL_EXISTS/CHECK_SYMBOL_EXISTS/' \
-i CMakeModules/CheckCXXSymbolExists.cmake
}