mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
ab83df2487
- Do not pass SVN_REV via CFLAGS, it is now defined in `src/d_main.c' - OLD_DEPENDENCIES is no longer a valid setting, stop referencing it - When adjusting default WAD search path, fix only one DEFWADS rather than a bunch of them (one is enough) - Remove old hack for better support for relative paths (for `-iwad' switch): it no longer applies and the game works correctly per se - Remove Clang-related fixes that were integrated upstream - Do not overwrite `make_options' file, simply append few necessary settings at the end of it List of changes: http://doomlegacy.sourceforge.net/docs/whatsnew.html
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Alexander G. Chetirbock <bock@bock.nnov.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= doomlegacy
|
|
PORTVERSION= 1.46.3
|
|
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= gmake tar:bzip2
|
|
USE_GL= glu
|
|
USE_SDL= mixer sdl
|
|
|
|
PLIST_FILES= bin/${PORTNAME} share/doom/legacy.wad
|
|
PORTDOCS= *
|
|
|
|
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:devel/nasm
|
|
ASM_MAKE_ENV= USEASM=1
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch: .SILENT
|
|
# Adjust default WAD search path
|
|
${REINPLACE_CMD} -e '/DEFWADS20/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>
|