freebsd-ports/cad/kicad/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

68 lines
1.9 KiB
Makefile

PORTNAME= kicad
PORTVERSION= 6.0.7
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= cad
MASTER_SITES= https://gitlab.com/${PORTNAME}/code/${PORTNAME}/-/archive/${DISTVERSION}/
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
CONFLICTS_INSTALL= kicad-devel # bin/_cvpcb.kiface
USES= cmake:noninja compiler:c++11-lib desktop-file-utils gl \
gnome pkgconfig python:3.5+ shared-mime-info shebangfix ssl \
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.1
WX_COMPS= python:lib wx
USE_GNOME= atk cairo gdkpixbuf2 gtk30 pango
CXXFLAGS+= --std=c++11 -I${WRKSRC}/include -I${LOCALBASE}/include
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
-DwxWidgets_USE_UNICODE=ON \
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD} \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DKICAD_USE_OCC=ON \
-DKICAD_USE_EGL=ON \
-DKICAD_USE_BUNDLED_GLEW=ON \
-DOCC_INCLUDE_DIR=${LOCALBASE}/include/OpenCASCADE
USE_LDCONFIG= yes
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
OPTIONS_DEFINE= DOCS DOXYGEN NLS
OPTIONS_SUB= yes
NLS_USES= gettext
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
pre-configure:
${REINPLACE_CMD} -e 's|/usr/local/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>