# Created by: Alexander G. Chetirbock # $FreeBSD$ PORTNAME= doomlegacy DISTVERSION= 1.44_alpha4 PORTREVISION= 1 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 included in distfile 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 USES= gmake zip USE_GL= glu 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 .if exists(/usr/include/netipx/ipx.h) OPTIONS_DEFINE+= IPX IPX_DESC= IPX protocol support .endif ASM_BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm ASM_MAKE_ENV= USEASM=1 OLD_DEPENDENCIES=1 .include post-patch: .SILENT ${REINPLACE_CMD} -e 's|