~ubuntu-branches/ubuntu/lucid/nspluginwrapper/lucid

« back to all changes in this revision

Viewing changes to src/npw-viewer.sh

  • Committer: Bazaar Package Importer
  • Author(s): Sasa Bodiroza
  • Date: 2008-08-28 00:48:30 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828004830-f3m3fjnqlqt2r6dh
Tags: 1.1.0-0ubuntu1
Add libcurl4-gnutls-dev as build-depenedency

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
# Set a new LD_LIBRARY_PATH that is TARGET specific
22
22
export LD_LIBRARY_PATH=$NPW_VIEWER_DIR
23
23
 
 
24
# Note that a clever DBT will work at the function level and XShm
 
25
# should be possible with a proper native replacement to emulated code
 
26
# XXX: BTW, anything other than "yes" is interpreted as "no"
 
27
NPW_USE_XSHM=${NPW_USE_XSHM:-yes}
 
28
 
24
29
case $ARCH in
25
30
i?86)
26
31
    ARCH=i386
49
54
            LOADER="none"
50
55
        else
51
56
            LOADER=`which qemu-i386`
 
57
            # Don't allow Xshm with qemu
 
58
            NPW_USE_XSHM=no
52
59
        fi
53
60
        ;;
54
61
    ppc)
60
67
            esac
61
68
        else
62
69
            LOADER=`which qemu-ppc`
 
70
            # Don't allow Xshm with qemu
 
71
            NPW_USE_XSHM=no
63
72
        fi
64
73
        ;;
65
74
    esac
71
80
    fi
72
81
fi
73
82
 
 
83
# Disallow Xshm (implying XVideo too)
 
84
if test "$NPW_USE_XSHM" != "yes"; then
 
85
    if test -x "$NPW_VIEWER_DIR/libnoxshm.so"; then
 
86
        if test -n "$LD_PRELOAD"; then
 
87
            LD_PRELOAD="$LD_PRELOAD:$NPW_VIEWER_DIR/libnoxshm.so"
 
88
        else
 
89
            LD_PRELOAD="$NPW_VIEWER_DIR/libnoxshm.so"
 
90
        fi
 
91
        export LD_PRELOAD
 
92
    fi
 
93
fi
 
94
 
74
95
# Expand PATH for RealPlayer package on NetBSD (realplay)
75
96
if test "$OS" = "NetBSD"; then
76
97
    REALPLAYER_HOME="/usr/pkg/lib/RealPlayer"