kicad: fix with newer cmake
This commit is contained in:
parent
b7361f0ec8
commit
3abcc53f62
1 changed files with 9 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'kicad'
|
# Template file for 'kicad'
|
||||||
pkgname=kicad
|
pkgname=kicad
|
||||||
version=4.0.7
|
version=4.0.7
|
||||||
revision=5
|
revision=6
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DKICAD_BUILD_VERSION=$version -DKICAD_SKIP_BOOST=ON
|
configure_args="-DKICAD_BUILD_VERSION=$version -DKICAD_SKIP_BOOST=ON
|
||||||
-DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON"
|
-DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON"
|
||||||
|
@ -23,9 +23,13 @@ if [ -n "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" python"
|
hostmakedepends+=" python"
|
||||||
configure_args+=" -DPYTHON_SITE_PACKAGE_PATH=${XBPS_CROSS_BASE}/usr/lib/python${py2_ver}/site-packages
|
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"
|
-DPYTHON_DEST=/usr/lib/python${py2_ver}/site-packages"
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
CXXFLAGS+=" $(wx-config --cxxflags)"
|
|
||||||
}
|
|
||||||
fi
|
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 a new issue