2005-04-13 23:37:14 +02:00
|
|
|
# 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
|
2008-11-17 01:22:53 +01:00
|
|
|
PORTREVISION= 2
|
2005-04-13 23:37:14 +02:00
|
|
|
CATEGORIES= games linux
|
|
|
|
MASTER_SITES= http://www.hup.hu/~trey/DOOM3/ \
|
|
|
|
http://darkstar.ist.utl.pt/pub/games/ \
|
2006-10-31 15:14:01 +01:00
|
|
|
ftp://ftp.headoff.com/GameDemos/Doom3/ \
|
|
|
|
IDSOFTWARE/doom3/linux
|
2005-04-13 23:37:14 +02:00
|
|
|
PKGNAMEPREFIX= linux-
|
|
|
|
DISTNAME= doom3-linux-${PORTVERSION}-demo.x86
|
|
|
|
EXTRACT_SUFX= .run
|
|
|
|
|
2008-04-29 07:11:44 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-10-31 15:14:01 +01:00
|
|
|
COMMENT= DOOM III demo for Linux
|
2005-04-13 23:37:14 +02:00
|
|
|
|
2006-10-31 15:14:01 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2005-04-13 23:37:14 +02:00
|
|
|
USE_LINUX= yes
|
2009-03-19 18:28:51 +01:00
|
|
|
USE_LINUX_APPS= xorglibs
|
2006-10-31 15:14:01 +01:00
|
|
|
NO_PACKAGE= Distfile size is 462MB, set FORCE_PACKAGE if you really want to build this package
|
|
|
|
NO_CDROM= Redistribution is limited, see license
|
2005-04-13 23:37:14 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2006-10-31 15:14:01 +01:00
|
|
|
DOOMDIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
2005-09-04 04:36:31 +02:00
|
|
|
|
|
|
|
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
|
2009-06-07 17:23:55 +02:00
|
|
|
USE_LINUX_APPS+=dri
|
2005-09-04 04:36:31 +02:00
|
|
|
.endif
|
2005-04-13 23:37:14 +02:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@cd ${WRKSRC} && ${TAIL} -c +8767 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
|
|
|
|
|
|
|
|
do-install:
|
2006-10-31 15:14:01 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/doom3-demo ${PREFIX}/bin/${PKGNAMEPREFIX}doom3-demo
|
2005-04-13 23:37:14 +02:00
|
|
|
|
|
|
|
${MKDIR} ${DOOMDIR}/demo
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/demo00.pk4 ${DOOMDIR}/demo
|
|
|
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/doom.x86 ${DOOMDIR}
|
2006-10-31 15:14:01 +01:00
|
|
|
.for f in gamex86.so
|
2005-04-13 23:37:14 +02:00
|
|
|
${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
|
|
|
|
|
2005-09-04 04:36:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|