1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/ember/files/patch-ember
Oliver Lehmann c36bc8fc88 update to openal 20060211 [1]
fix dependant ports [2]

PR:		ports/96172 [1]
		ports/95192 [2]
Submitted by:	maintainer  [1]
		oliver      [2]
Approved by:	maintainer
2006-04-23 10:14:30 +00:00

39 lines
976 B
Plaintext

--- ember.orig Mon Feb 13 00:33:13 2006
+++ ember Wed Mar 8 06:28:31 2006
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
@@ -40,8 +40,9 @@
# Setup variables
#get the dir where this script resides in
-path=`FindPath`
-test=${path[0]}
+set -- $(FindPath)
+path=$*
+test=$1
#if [ "$fullpath" = "" ]; then
if [ "$test" = "." ]; then
path=${PWD}
@@ -56,7 +57,7 @@
etcdir=${prefix}/etc/ember
homedata=$HOME/.ember
-WFUT_JAR=$datadir/WFUT.jar
+WFUT_JAR=$bindir/WFUT.jar
# Create dir if required
if [ ! -d $homedata ] ; then
@@ -96,5 +97,6 @@
# Execute real ember binary
echo "Starting Ember...."
#we have to do the LD_PRELOAD thing, because else at least I get an error: libnvidia-tls.so.1: cannot handle TLS data /ehj
-LD_PRELOAD=libGL.so.1 $bindir/ember.bin --binrelocloading
-
+[ ! -f $homedata/plugins.cfg ] && cp $etcdir/plugins.cfg $homedata/
+[ ! -f $homedata/resources.cfg ] && cp $etcdir/resources.cfg $homedata/
+LD_PRELOAD=libGL.so.1 $bindir/ember.bin