# This script is run -i so that PS1 doesn't get cleared
-# Change this variable to the location of your gstreamer git checkouts
-MYGST=$HOME/gst
-
-#
-# Everything below this line shouldn't be edited!
-#
-
-# extract version from $0
-# if this script is called "gst-head" then version will be "head"
-VERSION=`echo $0 | sed s/.*gst-//g`
+if [ -z $GST_UNINSTALLED_ROOT ];
+then
+ # Change this variable to the location of your gstreamer git checkouts
+ MYGST=$HOME/gst
+
+ #
+ # Everything below this line shouldn't be edited!
+ #
+
+ # extract version from $0
+ # if this script is called "gst-head" then version will be "head"
+ VERSION=`echo $0 | sed s/.*gst-//g`
+
+ # base path under which dirs are installed
+ GST=$MYGST/$VERSION
+else
+ # Alternatively, you can set the GST_UNINSTALLED_ROOT environment variable to the
+ # location of your checkout and call this script directly.
+ #
+ # Ex: GST_UNINSTALLED_ROOT=$HOME/checkout/location gst-uninstalled
+
+ GST=$GST_UNINSTALLED_ROOT
+fi
-# base path under which dirs are installed
-GST=$MYGST/$VERSION
GST_PREFIX=$GST/prefix
if test ! -e $GST; then
echo "$GST does not exist !"
GI_TYPELIB_PATH=$GST/gst-editing-services/ges:$GI_TYPELIB_PATH
PATH=$GST/gst-editing-services/tools:$PATH
+# GStreamer plugins gl libraries
+LD_LIBRARY_PATH=$GST/gst-plugins-gl/gst-libs/gst/gl/.libs:$LD_LIBRARY_PATH
+DYLD_LIBRARY_PATH=$GST/gst-plugins-gl/gst-libs/gst/gl/.libs:$DYLD_LIBRARY_PATH
+
+# GStreamer plugins vaapi libraries
+LD_LIBRARY_PATH=$GST/gstreamer-vaapi/gst-libs/gst/vaapi/.libs:$LD_LIBRARY_PATH
+DYLD_LIBRARY_PATH=$GST/gstreamer-vaapi/gst-libs/gst/vaapi/.libs:$DYLD_LIBRARY_PATH
# GStreamer plugins base libraries
for path in allocators app audio fft pbutils riff rtp rtsp sdp tag utils video
:$GST/gst-rtsp-server/pkgconfig\
:$GST/gst-editing-services/pkgconfig\
:$GST/gstreamer-sharp/pkgconfig\
+:$GST/gstreamer-vaapi/pkgconfig\
:$GST/orc\
:$GST/farsight2\
:$GST/libnice/nice\
:$GST/gst-omx/omx/.libs\
:$GST/gst-plugins-gl/gst/gl/.libs\
:$GST/clutter-gst/clutter-gst/.libs\
+:$GST/gstreamer-vaapi/gst/vaapi/.libs\
:$GST/plugins\
:$GST/farsight2/gst\
:$GST/farsight2/transmitters\
# this still doesn't make it work for the uninstalled case, since man goes
# look for a man directory "nearby" instead of the directory I'm telling it to
export MANPATH=$GST/gstreamer/tools:$GST_PREFIX/share/man:$MANPATH
-pythonver=`python -c "import sys; print sys.version[:3]"`
+pythonver=`python -c "import sys; print (sys.version[:3])"`
export PYTHONPATH=$GST/gst-python:$GST_PREFIX/lib/python$pythonver/site-packages${PYTHONPATH:+:$PYTHONPATH}
# clutter-gst