# Created by: Dmitry Marakasov # $FreeBSD: head/games/hyperrogue/Makefile 541112 2020-07-03 13:53:32Z amdmi3 $ PORTNAME= hyperrogue PORTVERSION= 11.3o DISTVERSIONPREFIX= v CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org COMMENT= Roguelike in a non-euclidean world LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_FreeBSD_11= does not build: hyperrogue-hyper.o: file not recognized: File format not recognized LIB_DEPENDS= libpng.so:graphics/png USE_GITHUB= yes GH_ACCOUNT= zenorogue USES= autoreconf compiler:c++11-lang gl localbase sdl xorg GNU_CONFIGURE= yes USE_SDL= sdl mixer gfx ttf USE_GL= gl glew # remove -O2, otherwise clang takes gigabytes of memory CFLAGS:= ${CFLAGS:C/-O[0-9]//} -DFHS CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]//} -DFHS PORTDOCS= README.md PORTDATA= * PLIST_FILES= bin/hyperrogue share/pixmaps/hyperrogue.ico DESKTOP_ENTRIES="HyperRogue" \ "" \ "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ "${PORTNAME}" \ "Game;RolePlaying;" \ "" OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|isnumber|is_number|' ${WRKSRC}/archimedean.cpp post-install: ${INSTALL_DATA} ${WRKSRC}/hr-icon.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ .include