diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-26 18:53:44 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-26 18:53:44 +0000 |
commit | 1331c08b4aee759f2841fc55078abb75958c4ea6 (patch) | |
tree | b4f3d84632a29954da48b1e66c1f39e61cb9bb58 /games/linux-ssamtse/files | |
parent | 6db1540cea805a00b580420a106ac608c65caefb (diff) |
Notes
Diffstat (limited to 'games/linux-ssamtse/files')
-rw-r--r-- | games/linux-ssamtse/files/patch-bin_ssamtse | 21 | ||||
-rw-r--r-- | games/linux-ssamtse/files/patch-ssamtse | 27 | ||||
-rw-r--r-- | games/linux-ssamtse/files/pkg-message.in | 8 |
3 files changed, 35 insertions, 21 deletions
diff --git a/games/linux-ssamtse/files/patch-bin_ssamtse b/games/linux-ssamtse/files/patch-bin_ssamtse deleted file mode 100644 index 697068320854..000000000000 --- a/games/linux-ssamtse/files/patch-bin_ssamtse +++ /dev/null @@ -1,21 +0,0 @@ ---- bin/ssamtse.orig Fri Mar 14 07:07:05 2003 -+++ bin/ssamtse Tue Nov 25 09:14:55 2003 -@@ -3,6 +3,8 @@ - # Serious Sam: The Second Encounter startup script - # - -+SSAMTSE_DATA_PATH=/usr/local/ssam/Bin -+ - # Function to find the real directory a program resides in. - # Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software - FindPath() -@@ -41,6 +43,9 @@ - - LD_LIBRARY_PATH=.:${SSAMTSE_DATA_PATH}:${LD_LIBRARY_PATH} - export LD_LIBRARY_PATH -+ -+export __GL_SINGLE_THREADED=yes -+export SERIOUS_MHZ=%SERIOUS_MHZ% - - # Let's boogie! - if [ -x "${SSAMTSE_DATA_PATH}/ssam_lnx" ] diff --git a/games/linux-ssamtse/files/patch-ssamtse b/games/linux-ssamtse/files/patch-ssamtse new file mode 100644 index 000000000000..aadebe748565 --- /dev/null +++ b/games/linux-ssamtse/files/patch-ssamtse @@ -0,0 +1,27 @@ +--- bin/ssamtse.orig 2008-05-18 23:51:30.000000000 +1000 ++++ bin/ssamtse 2008-05-18 23:58:42.000000000 +1000 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + ############################################################################### + # + ## LIFLG Startup Script +@@ -49,6 +49,18 @@ + ############################################################################### + ## DO NOT EDIT BELOW THIS LINE + ############################################################################### ++ ++# config file ++if [ -r %%PREFIX%%/etc/ssamtse.conf ]; then ++ . %%PREFIX%%/etc/ssamtse.conf ++fi ++if [ -n "${SERIOUS_MHZ}" ]; then ++ export SERIOUS_MHZ ++else ++ echo "Can't get CPU speed. Please set SERIOUS_MHZ variable in %%PREFIX%%/etc/ssamtse.conf" ++ exit 1 ++fi ++ + export LANG="POSIX" + + test -n "${SDL_AUDIODRIVER}" && export SDL_AUDIODRIVER diff --git a/games/linux-ssamtse/files/pkg-message.in b/games/linux-ssamtse/files/pkg-message.in new file mode 100644 index 000000000000..3b1b0d25bb95 --- /dev/null +++ b/games/linux-ssamtse/files/pkg-message.in @@ -0,0 +1,8 @@ + +You need to edit %%PREFIX%%/etc/ssamtse.conf +to set correct CPU frequency in SERIOUS_MHZ variable. + +Run the game using: + +# ssamtse + |