60 lines
1.8 KiB
Makefile
60 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2014/12/27 02:03:19 dholland Exp $
|
|
#
|
|
|
|
V= 20140214
|
|
DISTNAME= kicad-stable-${V}
|
|
PKGNAME= kicad-${V}
|
|
PKGREVISION= 3
|
|
CATEGORIES= cad
|
|
MASTER_SITES= http://ftp.fr.NetBSD.org/~bouyer/kicad/
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.kicad-pcb.org/
|
|
COMMENT= Schematic and PCB CAD software (stable branch)
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_ARGS+= -DKICAD_STABLE_VERSION=ON
|
|
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
|
|
|
|
CMAKE_MODULE_PATH_OVERRIDE = \
|
|
bitmaps_png/CMakeLists.txt \
|
|
new/CMakeLists.txt \
|
|
tools/CMakeLists.txt
|
|
|
|
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 \
|
|
eeschema/CMakeLists.txt \
|
|
cvpcb/CMakeLists.txt \
|
|
gerbview/CMakeLists.txt \
|
|
kicad/CMakeLists.txt \
|
|
pcb_calculator/CMakeLists.txt \
|
|
pcbnew/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= pre-patch
|
|
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 "../../devel/boost-libs/buildlink3.mk"
|
|
.include "../../devel/cmake/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/Mesa/buildlink3.mk"
|
|
.include "../../x11/wxGTK28/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"
|