freebsd-ports/games/freecell-solver/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

64 lines
2.3 KiB
Makefile

PORTNAME= freecell-solver
PORTVERSION= 6.2.0
CATEGORIES= games
MASTER_SITES= http://fc-solve.shlomifish.org/downloads/fc-solve/
MAINTAINER= danilo@FreeBSD.org
COMMENT= Open source framework for solving Freecell
WWW= https://fc-solve.shlomifish.org/
LICENSE= MIT
BUILD_DEPENDS= p5-Path-Tiny>=0.076:devel/p5-Path-Tiny \
p5-Template-Toolkit>=2.26:www/p5-Template-Toolkit \
p5-Moo>=2.0:devel/p5-Moo \
gperf:devel/gperf \
asciidoctor:textproc/rubygem-asciidoctor \
${LOCALBASE}/include/rinutils/rinutils.h:devel/rinutils \
${PYTHON_PKGNAMEPREFIX}random2>=1.0.1:math/py-random2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysol-cards>=0.10.0:games/py-pysol-cards@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}random2>=1.0.1:math/py-random2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysol-cards>=0.10.0:games/py-pysol-cards@${PY_FLAVOR}
LIB_DEPENDS= ${LIB_DEPENDS_${ARCH}}
LIB_DEPENDS_armv6= libgmp.so:math/gmp
LIB_DEPENDS_armv7= libgmp.so:math/gmp
LIB_DEPENDS_i386= libgmp.so:math/gmp
LIB_DEPENDS_mips= libgmp.so:math/gmp
LIB_DEPENDS_powerpc= libgmp.so:math/gmp
OPTIONS_DEFINE= DOCS TCMALLOC
TCMALLOC_DESC= Use Google's TCMalloc
USES= cmake compiler:c11 localbase perl5 python:3.4+ shebangfix tar:xz
USE_PERL5= build
SHEBANG_FILES= board_gen/make_pysol_freecell_board.py \
board_gen/transpose-freecell-board.py \
board_gen/find-freecell-deal-index.py \
board_gen/fc_solve_find_index_s2ints.py \
board_gen/gen-multiple-pysol-layouts \
patsolve/patsolve/param.py
CMAKE_ARGS= -DFCS_WITH_TEST_SUITE:BOOL=OFF
USE_LDCONFIG= yes
TCMALLOC_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools
TCMALLOC_CMAKE_OFF= -DFCS_AVOID_TCMALLOC:BOOL=ON
post-patch:
.for f in Shlomif_Common.cmake
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/cmake/${f}
.endfor
.for f in children-playing-ball.sh sentient-pearls.sh
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/Presets/presets/${f}
.endfor
@${REINPLACE_CMD} -e 's|"python3"|"${PYTHON_VERSION}"|' ${WRKSRC}/CMakeLists.txt
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS.asciidoc HACKING.asciidoc INSTALL.asciidoc NEWS.asciidoc README.asciidoc \
README.win32.txt TODO.asciidoc USAGE.asciidoc
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>