diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2006-09-20 14:18:44 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2006-09-20 14:18:44 +0000 |
commit | 84b79ad9aedde864f6b5839fbdc571a3bae148b8 (patch) | |
tree | 5b22232eccab4057a0e6b428ef73f404029404bc /games/linux-savage | |
parent | 5077b29dc2bb4671e8c4e6d520bb994b35d38120 (diff) |
Notes
Diffstat (limited to 'games/linux-savage')
-rw-r--r-- | games/linux-savage/Makefile | 17 | ||||
-rw-r--r-- | games/linux-savage/files/savage.in | 2 |
2 files changed, 17 insertions, 2 deletions
diff --git a/games/linux-savage/Makefile b/games/linux-savage/Makefile index ab02133414a5..b0ab70e1c166 100644 --- a/games/linux-savage/Makefile +++ b/games/linux-savage/Makefile @@ -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> diff --git a/games/linux-savage/files/savage.in b/games/linux-savage/files/savage.in index 283a2da83d29..018c6a20093b 100644 --- a/games/linux-savage/files/savage.in +++ b/games/linux-savage/files/savage.in @@ -2,4 +2,4 @@ cd %%SAVAGEDIR%% || exit 1 export LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH -exec ./savage.bin "$@" +exec ./silverback.bin "$@" |