summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-05 03:54:34 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-05 03:54:34 +0000
commitde8d34ff887b11dbd3bc8cc7602a528a147fa2cb (patch)
treee3cf4ab2f769af79be7bccdbd1829f658576762f /eclass/games.eclass
parentsupport makeself-2.1.4 (doom3!) (diff)
downloadhistorical-de8d34ff887b11dbd3bc8cc7602a528a147fa2cb.tar.gz
historical-de8d34ff887b11dbd3bc8cc7602a528a147fa2cb.tar.bz2
historical-de8d34ff887b11dbd3bc8cc7602a528a147fa2cb.zip
support an extra library path in the wrapper-maker (for doom3!)
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 7b0eae8e00de..34eb622c18a8 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.75 2004/09/23 20:10:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.76 2004/10/05 03:54:34 vapier Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org
#
@@ -189,15 +189,19 @@ games_umod_unpack() {
# $1 == wrapper name
# $2 == binary to run
# $3 == directory to chdir before running binary
+# $4 == extra LD_LIBRARY_PATH's (make it : delimited)
games_make_wrapper() {
local wrapper="$1" ; shift
local bin="$1" ; shift
local chdir="$1" ; shift
+ local libdir="$1" ; shift
local tmpwrapper="$(mymktemp ${T})"
cat << EOF > "${tmpwrapper}"
#!/bin/sh
cd "${chdir}"
+export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${libdir}"
exec ${bin} "\$@"
EOF
+ chmod go+rx "${tmpwrapper}"
newgamesbin "${tmpwrapper}" "${wrapper}"
}