PORTNAME= arx-libertatis PORTVERSION= 1.2.1 PORTREVISION= 1 CATEGORIES= games MASTER_SITES= https://arx-libertatis.org/files/ \ https://github.com/arx/ArxLibertatis/releases/download/${PORTVERSION}/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Cross-platform port of Arx Fatalis WWW= https://arx-libertatis.org/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfreetype.so:print/freetype2 \ libepoxy.so:graphics/libepoxy BUILD_DEPENDS= ${LOCALBASE}/include/boost/foreach.hpp:devel/boost-libs \ ${LOCALBASE}/include/glm/glm.hpp:math/glm USES= cmake compiler:c++17-lang openal sdl tar:xz USE_SDL= sdl2 CMAKE_ON= STRICT_USE CMAKE_OFF= INSTALL_BLENDER_PLUGIN \ SET_OPTIMIZATION_FLAGS CMAKE_ARGS= -DWITH_SDL=2 \ -DDATA_DIR:STRING=arx \ -DDATA_DIR_PREFIXES:STRING="\$${XDG_DATA_DIRS:-${PREFIX}/share/}" \ -DINSTALL_DATADIR:STRING="${DATADIR}" \ -DIGNORE_EXE_DIR:STRING="${PREFIX}/bin:${LOCABASE}/bin" \ -DCMAKE_INSTALL_MANDIR="${PREFIX}/share/man" LDFLAGS_i386= -Wl,-znotext CONFLICTS_INSTALL= rnv SUB_FILES= pkg-message PORTDOCS= AUTHORS CHANGELOG README.md PORTDATA= * OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/CMakeLists.txt ${WRKSRC}/cmake/*.cmake post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include