# Created by: Tobias Kortkamp # $FreeBSD$ PORTNAME= iortcw DISTVERSION= 1.51 PORTEPOCH= 1 CATEGORIES= games MAINTAINER= tobik@FreeBSD.org COMMENT= Game engine for Return to Castle Wolfenstein LICENSE= GPLv3 BUILD_DEPENDS= opusfile>0:audio/opusfile LIB_DEPENDS= libcurl.so:ftp/curl \ libopus.so:audio/opus \ libfreetype.so:print/freetype2 NOT_FOR_ARCHS= aarch64 armv6 armv7 powerpc64 NOT_FOR_ARCHS_REASON= fails to configure: Architecture not supported USES= jpeg pkgconfig gmake USE_GL= gl USE_SDL= sdl2 USE_GITHUB= yes WOLFDIR= "libexec/${PORTNAME}" MAKE_ARGS= BINDIR="${STAGEDIR}${PREFIX}/bin" \ COPYDIR="${STAGEDIR}${PREFIX}/${WOLFDIR}" PLIST_SUB= ARCH="${ARCH}" WOLFDIR="${WOLFDIR}" SUB_FILES= iowolfsp iowolfmp iowolfded pkg-message SUB_LIST= ARCH="${ARCH}" WOLFDIR="${PREFIX}/${WOLFDIR}" \ DISTVERSION="${DISTVERSION}" OPTIONS_DEFINE= MP SP OPTIONS_DEFAULT= MP SP OPTIONS_SUB= yes MP_DESC= Build multiplayer support SP_DESC= Build singleplayer support SP_ALL_TARGET= sp SP_INSTALL_TARGET= sp-install MP_ALL_TARGET= mp MP_INSTALL_TARGET= mp-install post-extract: ${CP} ${FILESDIR}/Makefile ${WRKSRC} post-patch: @${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/SP/Makefile @${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/MP/Makefile post-install-MP-on: ${INSTALL_SCRIPT} ${WRKDIR}/iowolfmp ${STAGEDIR}${PREFIX}/bin/iowolfmp ${INSTALL_SCRIPT} ${WRKDIR}/iowolfded ${STAGEDIR}${PREFIX}/bin/iowolfded post-install-SP-on: ${INSTALL_SCRIPT} ${WRKDIR}/iowolfsp ${STAGEDIR}${PREFIX}/bin/iowolfsp .include