freebsd-ports/cad/kicad/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

78 lines
2.3 KiB
Makefile

# Created by: Thierry Thomas <thierry@FreeBSD.org>
# $FreeBSD$
PORTNAME= kicad
PORTVERSION= 4.0.7
PORTREVISION= 9
PORTEPOCH= 2
CATEGORIES= cad
MAINTAINER= thierry@FreeBSD.org
COMMENT= Schematic and PCB editing software
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm \
swig3.0:devel/swig30
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libpixman-1.so:x11/pixman \
libpng.so:graphics/png \
libcurl.so:ftp/curl
CONFLICTS= kicad-devel-r201*
USE_GITHUB= yes
GH_ACCOUNT= KiCad
GH_PROJECT= kicad-source-mirror
USES= cmake:noninja compiler:c++11-lib desktop-file-utils \
pkgconfig python:2.7 shared-mime-info shebangfix ssl tar:xz
SHEBANG_FILES= pcbnew/scripting/plugins/touch_slider_wizard.py
USE_XORG= ice x11 xext
USE_GL= gl glew glu glut
USE_WX= 3.0
WX_COMPS= python:lib wx
USE_GNOME= atk cairo
CXXFLAGS+= --std=c++11 -I${WRKSRC}/include -I${LOCALBASE}/include
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
-DwxWidgets_USE_UNICODE=ON -DKICAD_STABLE_VERSION=ON \
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD} \
-DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON \
-DKICAD_SCRIPTING_WXPYTHON=ON -DKICAD_SKIP_BOOST=ON
INSTALLS_ICONS= yes
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
OPTIONS_DEFINE= DOCS DOXYGEN NLS
OPTIONS_SUB= yes
NLS_USES= gettext
BINS= cvpcb eeschema gerbview kicad pcbnew
EXTRAS2RM= linux-non_unicode linux wings3d LINUX.README \
contrib_makefiles.txt running_kicad_under_W98.txt
DOXYGEN_VARS= LICENSE+=GFDL LICENSE_COMB=multi
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_IMPLIES= DOCS
DOXYGEN_ALL_TARGET= all doxygen-docs
DOXYGEN_PORTDOCS= doxygen
# The CheckCXXSymbolExists module has been shipped with CMake since 3.0 times.
# The ancient implementation that this bundled module uses, no longer works
# because it uses CMake internals that have gone away in 3.11.
post-extract:
${RM} ${WRKSRC}/CMakeModules/CheckCXXSymbolExists.cmake
pre-configure:
${REINPLACE_CMD} -e 's|/usr/share/kicad|${DATADIR}|' \
-e 's|/usr/local|${PREFIX}|' \
${WRKSRC}/common/gestfich.cpp
${REINPLACE_CMD} -e 's|/usr/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \
${WRKSRC}/common/pgm_base.cpp
post-install-DOCS-on:
(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>