The new features include MBF (Marine's Best Friend) compatibility, support for sprites with 16 rotation positions, the possibility of multiple clients and the server running on the same computer, plus many bug fixes. While here, move ${DMDIR} up in WAD search list (DEFWADS20 -> DEFWADS04), add ASM_BROKEN and missing `gl' to USE_GL, improve diagnostics and fix potential segmentation fault in the owner_wad_search_order() function.
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# Created by: Alexander G. Chetirbock <bock@bock.nnov.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= doomlegacy
|
|
PORTVERSION= 1.47.2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${DISTVERSION:S,_,%20,}/
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}_source
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${PORTNAME}_${DISTVERSION}_common.zip
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Improved and extended version of Doom
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= gl gmake sdl tar:bzip2
|
|
USE_GL= gl glu
|
|
USE_SDL= mixer sdl
|
|
|
|
PLIST_FILES= bin/${PORTNAME} share/doom/legacy.wad
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFINE_i386= ASM
|
|
ASM_BROKEN= segmentation fault in ASM_PatchRowBytes()
|
|
|
|
.if exists(/usr/include/netipx/ipx.h)
|
|
OPTIONS_DEFINE+= IPX
|
|
IPX_DESC= IPX protocol support
|
|
.endif
|
|
|
|
ASM_BUILD_DEPENDS= nasm:devel/nasm
|
|
ASM_MAKE_ENV= USEASM=1
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch: .SILENT
|
|
# Adjust default WAD search path
|
|
${REINPLACE_CMD} -e '/DEFWADS04/s|/.*|${DMDIR}"|' \
|
|
${WRKSRC}/src/doomdef.h
|
|
.if ! ${PORT_OPTIONS:MIPX}
|
|
${REINPLACE_CMD} -e '/USE_IPX/s|define|undef|' ${WRKSRC}/src/doomdef.h
|
|
${REINPLACE_CMD} -e 's| -lipx||' ${WRKSRC}/src/Makefile
|
|
.endif
|
|
|
|
pre-build:
|
|
${ECHO_CMD} CC_ENVIRONMENT=1 OS=${OPSYS:tu} | \
|
|
${XARGS} -n 1 >> ${BUILD_WRKSRC}/make_options
|
|
${MAKE_CMD} -C ${BUILD_WRKSRC} dirs
|
|
${MAKE_CMD} -C ${BUILD_WRKSRC} depend
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/doomlegacy ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DMDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${PORTVERSION}/legacy.wad \
|
|
${STAGEDIR}${DMDIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include "${.CURDIR}/../doom-data/Makefile.include"
|
|
.include <bsd.port.mk>
|