freebsd-ports/games/brogue/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

66 lines
1.7 KiB
Makefile

PORTNAME= brogue
DISTVERSIONPREFIX= v
DISTVERSION= 1.10.1
CATEGORIES= games
MAINTAINER= fuz@fuz.su
COMMENT= Much-loved minimalist roguelike game (community edition)
LICENSE= AGPLv3+ CC-BY-SA-4.0
LICENSE_COMB= multi
LICENSE_FILE_AGPLv3+ = ${WRKSRC}/LICENSE.txt
LICENSE_FILE_CC-BY-SA-4.0= ${WRKSRC}/bin/assets/LICENSE.txt
FLAVORS= x11 nox11
FLAVOR?= ${FLAVORS:[1]}
nox11_PKGNAMESUFFIX= -nox11
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= tmewett
GH_PROJECT= BrogueCE
.if ${FLAVOR} == x11
USES+= sdl
USE_SDL= image2 sdl2
CONFLICTS_INSTALL= brogue-nox11
.else
CONFLICTS_INSTALL= brogue
.endif
MAKE_ARGS= DATADIR=${DATADIR} \
GRAPHICS=${${FLAVOR:U} == x11:?YES:NO} \
RELEASE=YES
ALL_TARGET= bin/brogue
SUB_FILES= brogue.desktop brogue.sh
PLIST_FILES= bin/brogue \
libexec/brogue \
share/applications/brogue.desktop
PLIST_SUB= DISTVERSION=${DISTVERSION}
PORTDATA= assets/LICENSE.txt assets/icon.png assets/tiles.bin \
assets/tiles.png keymap.txt
OPTIONS_DEFINE= DEBUG NCURSES WEBUI
OPTIONS_DEFAULT= NCURSES WEBUI
DEBUG_MAKE_ARGS= DEBUG=YES
DEBUG_MAKE_ARGS_OFF= DEBUG=NO
NCURSES_USES= ncurses
NCURSES_MAKE_ARGS= TERMINAL=YES
NCURSES_MAKE_ARGS_OFF= TERMINAL=NO
WEBUI_MAKE_ARGS= WEBUI=YES
WEBUI_MAKE_ARGS_OFF= WEBUI=NO
post-patch:
${REINPLACE_CMD} -e 's,/opt/brogue,${DATADIR},' ${WRKSRC}/linux/brogue-multiuser.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/brogue ${STAGEDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/brogue.sh ${STAGEDIR}${PREFIX}/bin/brogue
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bin/keymap.txt ${STAGEDIR}${DATADIR}
${CP} -r ${WRKSRC}/bin/assets ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/brogue.desktop ${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>