diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-10-05 03:54:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-10-05 03:54:34 +0000 |
commit | d5d08f450a786a7c057746ac05ce9809a03e2ebf (patch) | |
tree | cd8987dc46781a4cdedc65d2c8c98ea00ab18e68 /eclass/games.eclass | |
parent | support makeself-2.1.4 (doom3!) (diff) | |
download | gentoo-2-d5d08f450a786a7c057746ac05ce9809a03e2ebf.tar.gz gentoo-2-d5d08f450a786a7c057746ac05ce9809a03e2ebf.tar.bz2 gentoo-2-d5d08f450a786a7c057746ac05ce9809a03e2ebf.zip |
support an extra library path in the wrapper-maker (for doom3!)
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r-- | eclass/games.eclass | 6 |
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}" } |