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)
73 lines
2.6 KiB
Makefile
73 lines
2.6 KiB
Makefile
PORTNAME= pioneer
|
|
DISTVERSION= 20220203
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Space adventure game set in the Milky Way galaxy
|
|
WWW= https://pioneerspacesim.net/
|
|
|
|
LICENSE= APACHE20 BSD2CLAUSE CC-BY-SA-3.0 DejaVu GPLv3 IUP \
|
|
MIT SIL ZLIB
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_DejaVu= Bitstream Vera and Arev fonts license
|
|
LICENSE_NAME_IUP= Galaxy colour image use policy
|
|
LICENSE_NAME_SIL= SIL open font license version 1.1
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/licenses/Apache-2.0.txt
|
|
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/licenses/LZ4.txt
|
|
LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/licenses/CC-BY-SA-3.0.txt
|
|
LICENSE_FILE_DejaVu= ${WRKSRC}/licenses/DejaVu-license.txt
|
|
LICENSE_FILE_GPLv3= ${WRKSRC}/licenses/GPL-3.txt
|
|
LICENSE_FILE_IUP= ${WRKSRC}/licenses/Image\ Use\ Policy\ -\ NASA\ Spitzer\ Space\ Telescope.html
|
|
LICENSE_FILE_SIL= ${WRKSRC}/licenses/SIL-1.1.txt
|
|
LICENSE_PERMS_DejaVu= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
LICENSE_PERMS_IUP= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
LICENSE_PERMS_SIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
# XXX: if you have similar error, try adding failing arch to USE_CHRONO condition in contrib/profiler/Profiler.h
|
|
BROKEN_xxx= fails to build: contrib/profiler/Profiler.h:158:51: inconsistent operand constraints in an 'asm'
|
|
|
|
LIB_DEPENDS= libassimp.so:multimedia/assimp \
|
|
libfreetype.so:print/freetype2 \
|
|
libsigc-2.0.so:devel/libsigc++20 \
|
|
libvorbisfile.so:audio/libvorbis
|
|
|
|
USES= cmake compiler:c++17-lang gl gnome lua:52 pkgconfig sdl
|
|
USE_GITHUB= yes
|
|
USE_GL= gl glu glew
|
|
USE_SDL= image2 sdl2
|
|
GH_ACCOUNT= pioneerspacesim
|
|
ALL_TARGET= all build-data
|
|
CMAKE_ARGS= -DPIONEER_DATA_DIR:PATH="${DATADIR}/data"
|
|
CMAKE_ON= USE_SYSTEM_LIBGLEW USE_SYSTEM_LIBLUA
|
|
|
|
PORTDATA= data
|
|
PORTDOCS= AUTHORS.txt Changelog.txt Modelviewer.txt Quickstart.txt \
|
|
README.md
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= DOCS PROFILER
|
|
|
|
NOGPUJOBS_DESC= Disable EnableGPUJobs for config.ini by default
|
|
PROFILER_DESC= Build with internal profiler
|
|
|
|
DOCS_SUB_LIST= QUICKSTART_PATH="${DOCSDIR}"
|
|
DOCS_SUB_LIST_OFF= QUICKSTART_PATH="https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME}"
|
|
PROFILER_CMAKE_BOOL= PROFILER_ENABLED
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^include(FindGit/d ; \
|
|
/TIMESTAMP PROJECT_VERSION/s|.*|set(PROJECT_VERSION "${GH_TAGNAME}")|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
post-install:
|
|
.for f in modelcompiler savegamedump
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/${f} \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${f}
|
|
.endfor
|
|
|
|
post-install-DOCS-on:
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|