2004-10-17 15:28:28 +02:00
|
|
|
. $stdenv/setup
|
2005-02-16 12:13:18 +01:00
|
|
|
. $makeWrapper
|
2004-10-17 15:28:28 +02:00
|
|
|
|
2004-10-17 16:30:11 +02:00
|
|
|
shopt -s nullglob
|
|
|
|
|
2004-10-17 15:28:28 +02:00
|
|
|
pluginPath=
|
2004-10-17 15:56:56 +02:00
|
|
|
extraLibPath=
|
2005-02-16 12:24:40 +01:00
|
|
|
for p in $plugins; do
|
|
|
|
if test -e $p; then
|
|
|
|
pluginPath=$pluginPath${pluginPath:+:}$p
|
|
|
|
if test -e $p/extra-library-path; then
|
|
|
|
extraLibPath=$extraLibPath${extraLibPath:+:}$(cat $p/extra-library-path)
|
2004-10-17 15:56:56 +02:00
|
|
|
fi
|
2005-02-16 12:24:40 +01:00
|
|
|
fi
|
2004-10-17 15:28:28 +02:00
|
|
|
done
|
|
|
|
|
2005-02-16 12:13:18 +01:00
|
|
|
makeWrapper "$firefox/bin/firefox" "$out/bin/firefox" \
|
2005-02-16 12:24:40 +01:00
|
|
|
--suffix MOZ_PLUGIN_PATH ':' "$pluginPath" \
|
|
|
|
--suffix LD_LIBRARY_PATH ':' "$extraLibPath"
|
2005-02-16 12:13:18 +01:00
|
|
|
|
|
|
|
# --add-to-env MOZ_PLUGIN_PATH ':' --each lib/mozilla/plugins "$plugins" \
|
|
|
|
# --add-to-env MOZ_PLUGIN_PATH ':' --each 'jre/plugin/*/mozilla' "$plugins" \
|
|
|
|
# --add-to-env LD_LIBRARY_PATH --contents lib/mozilla/plugins/extra-library-path "$plugins" \
|
|
|
|
# --add-to-env LD_LIBRARY_PATH --contents 'jre/plugin/*/mozilla/extra-library-path' "$plugins"
|
|
|
|
|
|
|
|
#cat > $out/bin/firefox <<EOF
|
|
|
|
##! $SHELL
|
|
|
|
#export LD_LIBRARY_PATH=$extraLibPath
|
|
|
|
#export MOZ_PLUGIN_PATH=$pluginPath
|
|
|
|
#exec $firefox/bin/firefox "\$@"
|
|
|
|
#EOF
|
2004-10-17 15:28:28 +02:00
|
|
|
|
2005-02-16 12:13:18 +01:00
|
|
|
#chmod +x $out/bin/firefox
|