freebsd-ports/games/linux-doom3-demo/Makefile

53 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$
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
ONLY_FOR_ARCHS= i386 amd64
- Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)
2016-09-05 21:23:42 +02:00
USES= linux
USE_LINUX= dri xorglibs
NO_CDROM= Redistribution is limited, see license; Requested by id Software
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>