# Created by: Alexander G. Chetirbock # $FreeBSD$ PORTNAME= doomlegacy DISTVERSION= 1.44_alpha4 PORTEPOCH= 1 CATEGORIES= games MASTER_SITES= http://doomlegacy.sourceforge.net/releases/ \ http://freebsd.nsu.ru/distfiles/:wad DISTNAME= ${PORTNAME}_${DISTVERSION}_src_r${SVN_REV} # legacy.wad is not provided by upstream and must be regenerated manually # when needed (its contents change); luckily, it doesn't happen too often DISTFILES= ${DISTNAME}${EXTRACT_SUFX} legacy_wad${EXTRACT_SUFX}:wad DIST_SUBDIR= ${PORTNAME} MAINTAINER= danfe@FreeBSD.org COMMENT= Improved and extended version of Doom LICENSE= GPLv2 USE_ZIP= yes USE_GL= glu USE_GMAKE= yes USE_SDL= mixer sdl CFLAGS+= -DSVN_REV=\\\"${SVN_REV}\\\" WRKSRC= ${WRKDIR}/${PORTNAME}_${DISTVERSION}/src PLIST_FILES= bin/${PORTNAME} share/doom/legacy.wad PORTDOCS= * SVN_REV= 999 OPTIONS_DEFINE= DOCS OPTIONS_DEFINE_i386= ASM .include .if ${PORT_OPTIONS:MASM} BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm MAKE_ENV= USEASM=1 OLD_DEPENDENCIES=1 .endif post-patch: .SILENT ${REINPLACE_CMD} -e 's|