1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

- Fix the linux-savage script. Now it uses silverback instead of savage

- Add NVIDIA option
- Add missing dependency
- Bump PORTREVISION
This commit is contained in:
Jose Alonso Cardenas Marquez 2006-09-20 14:18:44 +00:00
parent 5077b29dc2
commit 84b79ad9ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173473
2 changed files with 17 additions and 2 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= savage
PORTVERSION= 2.00c
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= http://downloads.s2games.com/online_orders/:full \
http://patches.s2games.com/:patch
@ -38,6 +39,20 @@ SUB_FILES= pkg-message savage savage_editor savage_server
PLIST_SUB+= SAVAGEDIR="${SAVAGEDIR}"
SUB_LIST+= SAVAGEDIR="${PREFIX}/${SAVAGEDIR}"
OPTIONS= NVIDIA "Install support for nvidia (You need a nvidia graphic card)" off
.include <bsd.port.pre.mk>
.if defined(WITH_NVIDIA)
. if !exists(${LINUXBASE}/usr/lib/libGL.so.1)
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
. endif
.else
. if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1)
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
. endif
.endif
do-extract:
# Extract savage base
@${MKDIR} ${WRKSRC}
@ -96,4 +111,4 @@ post-install:
@PKG_PREFIX=${PREFIX}/${SAVAGEDIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -2,4 +2,4 @@
cd %%SAVAGEDIR%% || exit 1
export LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH
exec ./savage.bin "$@"
exec ./silverback.bin "$@"