1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/cad/kicad/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

70 lines
2.0 KiB
Makefile

PORTNAME= kicad
PORTVERSION= 7.0.2
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= cad
MASTER_SITES= https://gitlab.com/${PORTNAME}/code/${PORTNAME}/-/archive/${DISTVERSION}${DISTVERSIONSUFFIX}/
MAINTAINER= cmt@FreeBSD.org
COMMENT= Schematic and PCB editing software
WWW= https://kicad.org/
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm \
swig:devel/swig
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libharfbuzz.so:print/harfbuzz \
libngspice.so:cad/ngspice_rework@shlib \
libTKernel.so:cad/opencascade \
libpixman-1.so:x11/pixman \
libpng.so:graphics/png \
libcurl.so:ftp/curl \
libGLEW-wayland.so:graphics/glew-wayland \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig \
libodbc.so:databases/unixODBC
USES= cmake:noninja compiler:c++17-lang desktop-file-utils gl \
gnome pkgconfig python shared-mime-info shebangfix \
tar:bz2 xorg
SHEBANG_FILES= pcbnew/python/plugins/touch_slider_wizard.py
USE_XORG= ice x11 xext
USE_GL= gl glu glut
USE_WX= 3.2
WX_COMPS= python:lib wx
USE_GNOME= atk cairo gdkpixbuf2 gtk30 pango
CXXFLAGS+= -std=c++11 -I${WRKSRC}/include -I${LOCALBASE}/include
CXXFLAGS_powerpc= -O0
# not using "bundled glew" breaks the 3d viewer
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
-DwxWidgets_USE_UNICODE=ON \
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD} \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DKICAD_USE_EGL=ON \
-DKICAD_USE_BUNDLED_GLEW=ON \
-DNANODBC_ENABLE_BOOST=ON \
-DOCC_INCLUDE_DIR=${LOCALBASE}/include/OpenCASCADE
CMAKE_ENV+= DODBC_PATH=${LOCALBASE}
USE_LDCONFIG= yes
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
OPTIONS_DEFINE= DOXYGEN NLS
OPTIONS_SUB= yes
NLS_USES= gettext
DOXYGEN_VARS= LICENSE+=GFDL LICENSE_COMB=multi
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_ALL_TARGET= all doxygen-docs
CONFLICTS_INSTALL= kicad-devel # bin/_cvpcb.kiface
pre-configure:
${REINPLACE_CMD} -e 's|/usr/local/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \
${WRKSRC}/common/pgm_base.cpp
.include <bsd.port.mk>