# New ports collection makefile for: doom3-demo # Date created: 31 Mar 2005 # Whom: Jean-Yves Lefort # # $FreeBSD$ # PORTNAME= doom3-demo PORTVERSION= 1.1.1286 CATEGORIES= games linux MASTER_SITES= http://www.hup.hu/~trey/DOOM3/ \ http://darkstar.ist.utl.pt/pub/games/ \ ftp://ftp.headoff.com/GameDemos/Doom3/ PKGNAMEPREFIX= linux- DISTNAME= doom3-linux-${PORTVERSION}-demo.x86 EXTRACT_SUFX= .run MAINTAINER= jylefort@FreeBSD.org COMMENT= DOOM III demo ONLY_FOR_ARCHS= i386 USE_X_PREFIX= yes USE_LINUX= yes NO_PACKAGE= Distfile is 462MB, set FORCE_PACKAGE if you really want to build this package RESTRICTED= Redistribution is limited, see license NO_BUILD= yes NO_WRKSUBDIR= yes DOOMDIR= ${PREFIX}/lib/${PORTNAME} SUB_FILES= doom3-demo SUB_LIST= DOOMDIR="${DOOMDIR}" .include .if ${X_WINDOW_SYSTEM:L} != xfree86-3 .if defined(WITH_NVIDIA_GL) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver .else RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri .endif .else RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so.1:${PORTSDIR}/graphics/linux_glx .endif do-extract: @${MKDIR} ${WRKSRC} @cd ${WRKSRC} && ${TAIL} -c +8767 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf - do-install: ${INSTALL_SCRIPT} ${WRKDIR}/doom3-demo ${PREFIX}/bin ${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 libgcc_s.so.1 libstdc++.so.5 ${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