From 3abcc53f622d05ddaa795a29f2eec6fc3dea350f Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 25 Apr 2018 12:33:29 +0200 Subject: [PATCH] kicad: fix with newer cmake --- srcpkgs/kicad/template | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/srcpkgs/kicad/template b/srcpkgs/kicad/template index e96d0f3f6e2..d67d65ab7e1 100644 --- a/srcpkgs/kicad/template +++ b/srcpkgs/kicad/template @@ -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 +}