summaryrefslogtreecommitdiff
path: root/cad/kicad/Makefile
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-01-02 19:10:03 +0000
committertnn <tnn@pkgsrc.org>2022-01-02 19:10:03 +0000
commit350a5975d0e2a10a3e70b551ee0278cb321d00d3 (patch)
tree7acf154659bb5e264c88498319a80488cfacafe2 /cad/kicad/Makefile
parent321181386f6b5915748e11d447cf6e01d3c5aef1 (diff)
downloadpkgsrc-350a5975d0e2a10a3e70b551ee0278cb321d00d3.tar.gz
kicad: update to 6.0.0
XXXTNN package phase is broken on macOS due to app bundling changes. Extensive CMake surgery required. Will fix this in a follow-up commit. New in 6.0: - Modern, consistent look and feel KiCad 6.0 features a refreshed user interface designed to reduce the barriers of entry for new users - Upgraded schematic editing KiCad's schematic editor has received its biggest overhaul ever for version 6.0 - Improved PCB design experience KiCad's PCB editor has had a complete look and feel upgrade The following features are deprecated as of version 6.0: XSLT BOM generation scripts The SWIG Python API
Diffstat (limited to 'cad/kicad/Makefile')
-rw-r--r--cad/kicad/Makefile40
1 files changed, 8 insertions, 32 deletions
diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile
index 50997de1292..6c8a98306a4 100644
--- a/cad/kicad/Makefile
+++ b/cad/kicad/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.56 2021/12/08 16:03:25 adam Exp $
+# $NetBSD: Makefile,v 1.57 2022/01/02 19:10:03 tnn Exp $
#
-V= 5.1.10
+V= 6.0.0
DISTNAME= kicad-${V}
-PKGREVISION= 2
CATEGORIES= cad
MASTER_SITES= https://gitlab.com/kicad/code/kicad/-/archive/${V}/
EXTRACT_SUFX= .tar.bz2
@@ -13,6 +12,7 @@ HOMEPAGE= https://www.kicad.org/
COMMENT= Schematic and PCB CAD software (stable branch)
LICENSE= gnu-gpl-v3
+BUILD_DEPENDS+= swig3-[0-9]*:../../devel/swig3
DEPENDS+= git-base-[0-9]*:../../devel/git-base
USE_PKGLOCALEDIR= yes
@@ -20,47 +20,23 @@ USE_LANGUAGES= c c++11
USE_CMAKE= yes
USE_TOOLS+= pkg-config
-CMAKE_ARGS+= -DKICAD_REPO_NAME=stable -DKICAD_BUILD_VERSION=${V}
-CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release -DKICAD_SKIP_BOOST=ON
-CMAKE_ARGS+= -DKICAD_SPICE=OFF -DKICAD_USE_OCE=OFF
-CMAKE_ARGS+= -DKICAD_SCRIPTING=OFF -DKICAD_SCRIPTING_MODULES=OFF
-CMAKE_ARGS+= -DKICAD_SCRIPTING_ACTION_MENU=OFF
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DKICAD_SPICE=OFF
CMAKE_ARGS+= -DKICAD_SCRIPTING_WXPYTHON=OFF
+CMAKE_ARGS+= -DKICAD_USE_OCC=OFF # pkgsrc/cad/oce, but it is too old
+CMAKE_ARGS+= -DKICAD_BUILD_I18N=ON
CMAKE_MODULE_PATH_OVERRIDE= \
new/CMakeLists.txt
PY_PATCHPLIST= yes
-SUBST_CLASSES+= macosx
-SUBST_STAGE.macosx= pre-configure
-SUBST_MESSAGE.macosx= Eliminating Mac OS X build specific for ${PKGNAME}
-SUBST_FILES.macosx= bitmap2component/CMakeLists.txt \
- kicad/CMakeLists.txt
-SUBST_SED.macosx= -e 's/[[:<:]]MACOSX_BUNDLE[[:>:]]//'
-
-.include "../../mk/bsd.prefs.mk"
-
-# PR 48980: no fabsl on netbsd-5
-.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
-SUBST_CLASSES+= netbsd5
-SUBST_STAGE.netbsd5= post-extract
-SUBST_MESSAGE.netbsd5= Substituting fabs() for fabsl() for NetBSD-5
-SUBST_FILES.netbsd5= pcbnew/legacy_plugin.cpp \
- tools/test-nm-biu-to-ascii-mm-round-tripping.cpp
-SUBST_SED.netbsd5= -e 's/fabsl/fabs/g'
-.endif
-
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mclang)
-CXXFLAGS+= -Wno-error=non-pod-varargs
-.endif
-
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/cmake/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
+BUILDLINK_API_DEPENDS.glm+= glm>=0.9.9.8
.include "../../graphics/glm/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"