kicad: fix with newer cmake
This commit is contained in:
parent
b7361f0ec8
commit
3abcc53f62
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue