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

41 lines
1.4 KiB
Makefile

PORTNAME= emptyepsilon
DISTVERSIONPREFIX= EE-
DISTVERSION= 2021.06.23
CATEGORIES= games
MAINTAINER= yuri@FreeBSD.org
COMMENT= Spaceship bridge simulator game
WWW= https://daid.github.io/EmptyEpsilon/
LICENSE= GPLv2 AngryFly-Royalty-Free-License
LICENSE_COMB= multi
LICENSE_NAME_AngryFly-Royalty-Free-License= AngryFly Royalty-Free-License
LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE
LICENSE_FILE_AngryFly-Royalty-Free-License= ${WRKSRC}/packs/License.txt
LICENSE_PERMS_AngryFly-Royalty-Free-License= auto-accept dist-mirror pkg-mirror
BUILD_DEPENDS= glm>0:math/glm
LIB_DEPENDS= libsfml-system.so:devel/sfml
RUN_DEPENDS= xclip:x11/xclip
USES= cmake compiler:c++11-lib gl localbase xorg
USE_GL= gl glu
USE_GITHUB= yes
GH_ACCOUNT= daid
GH_PROJECT= EmptyEpsilon SeriousProton:sproton
CMAKE_ARGS= -DSERIOUS_PROTON_DIR="${WRKSRC_sproton}/"
post-patch:
@${REINPLACE_CMD} -e 's|basepath + |"${DATADIR}/" + basepath + |' \
${WRKSRC_sproton}/src/resources.cpp
@${REINPLACE_CMD} -e 's|uint32_t bswap32(uint32_t value)|uint32_t bswap32_(uint32_t value)|' \
${WRKSRC_sproton}/src/i18n.cpp
# app uses xclip to read clipboard, ifdef and path need to be corrected
@${REINPLACE_CMD} -e 's,defined(__APPLE__),& || defined(__FreeBSD__), ; s,"/usr/bin/xclip ,"${PREFIX}/bin/xclip ,' ${WRKSRC_sproton}/src/clipboard.cpp
post-install:
@${MV} ${STAGEDIR}${PREFIX}/bin/EmptyEpsilon ${STAGEDIR}${PREFIX}/bin/emptyepsilon
.include <bsd.port.mk>