1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/games/linux-doom3-demo/Makefile
Mathieu Arnold 3505159e72
Deorbit RESTRICTED && NO_CDROM, part two.
Move ports to the licenses framework.

RESTRICTED → auto-accept (unless expressly stated otherwise)
NO_CDROM → dist-mirror pkg-mirror auto-accept

Differential Revision:  https://reviews.freebsd.org/D30010
2021-05-06 13:47:48 +02:00

57 lines
1.6 KiB
Makefile

# Created by: Jean-Yves Lefort <jylefort@brutele.be>
PORTNAME= doom3-demo
PORTVERSION= 1.1.1286
PORTREVISION= 4
CATEGORIES= games linux
MASTER_SITES= http://www.hup.hu/~trey/DOOM3/ \
http://darkstar.ist.utl.pt/pub/games/ \
ftp://ftp.headoff.com/GameDemos/Doom3/ \
IDSOFTWARE/doom3/linux
PKGNAMEPREFIX= linux-
DISTNAME= doom3-linux-${PORTVERSION}-demo.x86
EXTRACT_SUFX= .run
MAINTAINER= ports@FreeBSD.org
COMMENT= DOOM III demo for Linux
# Converted from NO_CDROM
LICENSE= doom3
LICENSE_NAME= doom3
LICENSE_TEXT= Redistribution is limited, see license; Requested by id Software
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
ONLY_FOR_ARCHS= i386 amd64
USES= linux
USE_LINUX= dri xorglibs
NO_BUILD= yes
NO_WRKSUBDIR= yes
DOOMDIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
SUB_FILES= doom3-demo
SUB_LIST= DOOMDIR="${DOOMDIR}"
OPTIONS_DEFINE= DOCS
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && ${TAIL} -c +8767 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/doom3-demo ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}doom3-demo
${MKDIR} ${STAGEDIR}${DOOMDIR}/demo
${INSTALL_DATA} ${WRKSRC}/demo/demo00.pk4 ${STAGEDIR}${DOOMDIR}/demo
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/doom.x86 ${STAGEDIR}${DOOMDIR}
.for f in gamex86.so
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOOMDIR}
-${CHOWN} ${LIBOWN}:${LIBGRP} ${STAGEDIR}${DOOMDIR}/${f}
${CHMOD} ${LIBMODE} ${STAGEDIR}${DOOMDIR}/${f}
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in License.txt README
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>