freebsd-ports/games/linux-doom3-demo/Makefile
Boris Samorodov 7e814a58ec Convert ports which use RUN_DEPENDS+=.../graphics/linux_dri to
using USE_LINUX_APPS+=dri. This is needed to switch a default
linux base at 8-CURRENT to linux_base-f10. No PORTREVISION bump
is needed since it's mere infrastructure fix. Affected ports:
-----
emulators/linux-pete-mesagpu/Makefile
emulators/linux-pete-xgl2gpu/Makefile
games/atitd/Makefile
games/linux-coldwar-demo/Makefile
games/linux-darwinia-demo/Makefile
games/linux-defcon/Makefile
games/linux-doom3-demo/Makefile
games/linux-gorky17-demo/Makefile
games/linux-nerogame/Makefile
games/linux-nwnclient/Makefile
games/linux-savage/Makefile
games/linux-savage-samuraiwars/Makefile
games/linux-uplink-demo/Makefile
games/linux-ut2003-demo/Makefile
games/linux-ut2004-demo/Makefile
games/linux-virtual-jay-peak/Makefile
games/linux-warsow/Makefile
graphics/linux-ac3d/Makefile
math/mupad/Makefile
net/skype12/Makefile
-----

Approved by:	maintainer timeout (2 months, the needed changes were submitted to emulation@ at 2009-04-09)
2009-06-07 15:23:55 +00:00

68 lines
1.7 KiB
Makefile

# New ports collection makefile for: doom3-demo
# Date created: 31 Mar 2005
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= doom3-demo
PORTVERSION= 1.1.1286
PORTREVISION= 2
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
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
NO_PACKAGE= Distfile size is 462MB, set FORCE_PACKAGE if you really want to build this package
NO_CDROM= Redistribution is limited, see license
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}"
.include <bsd.port.pre.mk>
.if defined(WITH_NVIDIA_GL)
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
.else
USE_LINUX_APPS+=dri
.endif
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && ${TAIL} -c +8767 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/doom3-demo ${PREFIX}/bin/${PKGNAMEPREFIX}doom3-demo
${MKDIR} ${DOOMDIR}/demo
${INSTALL_DATA} ${WRKSRC}/demo/demo00.pk4 ${DOOMDIR}/demo
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/doom.x86 ${DOOMDIR}
.for f in gamex86.so
${INSTALL_DATA} ${WRKSRC}/${f} ${DOOMDIR}
-${CHOWN} ${LIBOWN}:${LIBGRP} ${DOOMDIR}/${f}
${CHMOD} ${LIBMODE} ${DOOMDIR}/${f}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in License.txt README
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>