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 .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