- Bump PORTREVISION.

- Add NO_CDROM.
- Add dependency to Linux OpenGL libraries.
- Add linux- prefix to executables.
This commit is contained in:
Alejandro Pulver 2006-09-04 22:13:27 +00:00
parent ee60096ee6
commit 69d64dc7e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172230
2 changed files with 17 additions and 3 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= doom3
PORTVERSION= 1.3.1302
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= doom3/linux
@ -20,6 +21,7 @@ COMMENT= Doom III for Linux
ONLY_FOR_ARCHS= i386
USE_XLIB= yes
USE_LINUX= yes
NO_CDROM= Redistribution is limited, see license
NO_BUILD= yes
NO_WRKSUBDIR= yes
@ -30,6 +32,16 @@ SUB_FILES= doom3 doom3-ded pkg-message
.include <bsd.port.pre.mk>
.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
.if defined(WITH_NO_CDKEY)
PORTVERSION= 1.1.1286
MASTER_SITE_SUBDIR= doom3/linux/old
@ -51,7 +63,9 @@ do-install:
${INSTALL_PROGRAM} doom.x86 doomded.x86 ${DATADIR}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/doom3.png ${PREFIX}/share/pixmaps
${INSTALL_PROGRAM} ${WRKDIR}/doom3 ${WRKDIR}/doom3-ded ${PREFIX}/bin
.for f in doom3 doom3-ded
${INSTALL_PROGRAM} ${WRKDIR}/${f} ${PREFIX}/bin/${PKGNAMEPREFIX}${f}
.endfor
post-install:
@${ECHO_CMD}

View file

@ -1,5 +1,5 @@
bin/doom3
bin/doom3-ded
bin/linux-doom3
bin/linux-doom3-ded
%%DATADIR%%/base/game01.pk4
%%DATADIR%%/base/pak005.pk4
%%NEW%%%%DATADIR%%/base/pak006.pk4