blob: f27203eab21e7fb5300d35622600a4ab61e9f41a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.49 2020/12/04 20:45:00 nia Exp $
#
V= 5.1.4
DISTNAME= kicad-${V}
PKGREVISION= 8
CATEGORIES= cad
MASTER_SITES= https://launchpad.net/kicad/5.0/${V}/+download/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.kicad-pcb.org/
COMMENT= Schematic and PCB CAD software (stable branch)
LICENSE= gnu-gpl-v3
DEPENDS+= git-base-[0-9]*:../../devel/git-base
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++11
USE_CMAKE= yes
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+= -DKICAD_SCRIPTING_WXPYTHON=OFF
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"
.include "../../graphics/glm/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/wxGTK30/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.pkg.mk"
|