1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/games/linux-ssamtse/files/patch-ssamtse
Pav Lucistnik 1331c08b4a - Update to 1.07b1
PR:		ports/125910
Submitted by:	Alexander Logvinov <ports@logvinov.com> (maintainer)
2008-07-26 18:53:44 +00:00

28 lines
824 B
Plaintext

--- 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