[PATCH] building: Introduce INSTALL_PATH variable for install path

Sedat Dilek sedat.dilek at googlemail.com
Thu Feb 17 02:26:32 PST 2011


Use $INSTALL_PATH globally as users might have other places where they
are used to install software. By the way, you can now easily change the
install path as it is in one place.

Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
---
 building.html |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/building.html b/building.html
index 6205bee..8005ce1 100644
--- a/building.html
+++ b/building.html
@@ -26,11 +26,13 @@ generally).</p>
 interfere with the rest of your system) you'll need to set the following
 environment variables to get various libraries to link appropriately:</p>
 
-<pre>LD_LIBRARY_PATH=$HOME/install/lib
-PKG_CONFIG_PATH=$HOME/install/lib/pkgconfig/:$HOME/install/share/pkgconfig/
-ACLOCAL="aclocal -I $HOME/install/share/aclocal"
-C_INCLUDE_PATH=$HOME/install/include
-LIBRARY_PATH=$HOME/install/lib
+<pre>
+INSTALL_PATH=$HOME/install
+LD_LIBRARY_PATH=$INSTALL_PATH/lib
+PKG_CONFIG_PATH=$INSTALL_PATH/lib/pkgconfig/:$INSTALL_PATH/share/pkgconfig/
+ACLOCAL="aclocal -I $INSTALL_PATH/share/aclocal"
+C_INCLUDE_PATH=$INSTALL_PATH/include
+LIBRARY_PATH=$INSTALL_PATH/lib
 </pre>
 
 <p>Do not set LD_LIBRARY_PATH as your default, it will break things.</p>
@@ -65,12 +67,12 @@ For this you'll also need a development package for libdrm.</p>
 <pre>    
     $ git clone git://anongit.freedesktop.org/git/mesa/drm
     $ cd drm
-    $ ./autogen.sh --prefix=$HOME/install --enable-nouveau-experimental-api
+    $ ./autogen.sh --prefix=$INSTALL_PATH --enable-nouveau-experimental-api
     $ make &amp;&amp; make install
 
     $ git clone git://anongit.freedesktop.org/mesa/mesa
     $ cd mesa
-    $ ./autogen.sh --prefix=$HOME/install --enable-egl --enable-gles2    \
+    $ ./autogen.sh --prefix=$INSTALL_PATH --enable-egl --enable-gles2    \
       --enable-gallium-nouveau --with-state-trackers=glx,dri,egl         \
       --with-egl-platforms=drm --enable-gles-overlay                     \
       --enable-gallium-r600 --with-dri-drivers=i915,i965                 \
@@ -91,27 +93,27 @@ kbproto, macros and libX11.</p>
 
 <pre>    $ git clone git://anongit.freedesktop.org/xorg/proto/xproto
     $ cd xproto
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 
     $ git clone git://anongit.freedesktop.org/xorg/proto/kbproto
     $ cd kbproto
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 
     $ git clone git://anongit.freedesktop.org/xorg/util/macros
     $ cd macros
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 
     $ git clone git://anongit.freedesktop.org/xorg/lib/libX11
     $ cd libX11
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 
     $ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git
     $ cd libxkbcommon/
-    $ ./autogen.sh --prefix=$HOME/install --with-xkb-config-root=/usr/share/X11/xkb
+    $ ./autogen.sh --prefix=$INSTALL_PATH --with-xkb-config-root=/usr/share/X11/xkb
     $ make &amp;&amp; make install
 </pre>
 
@@ -126,12 +128,12 @@ package for pixman.</p>
 
 <pre>    $ git clone git://anongit.freedesktop.org/pixman
     $ cd pixman
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 
     $ git clone git://anongit.freedesktop.org/cairo
     $ cd cairo
-    $ ./autogen.sh --prefix=$HOME/install --enable-gl --enable-xcb
+    $ ./autogen.sh --prefix=$INSTALL_PATH --enable-gl --enable-xcb
     $ make &amp;&amp; make install
 </pre>
 
@@ -145,7 +147,7 @@ dependencies, first install just the libraries:</p>
 
 <pre>    $ git clone git://anongit.freedesktop.org/wayland
     $ cd wayland
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make -C wayland/ install
 </pre>
 
@@ -156,7 +158,7 @@ wayland to --enable-egl-platforms.</p>
 
 <pre>    $ cd mesa
     $ make realclean # Otherwise important stuff doesn't get rebuilt.
-    $ ./autogen.sh --prefix=$HOME/install --enable-egl --enable-gles2    \
+    $ ./autogen.sh --prefix=$INSTALL_PATH --enable-egl --enable-gles2    \
       --enable-gallium-nouveau --with-state-trackers=glx,dri,egl         \
       --with-egl-platforms=<b>wayland,</b>drm --enable-gles-overlay             \
       --enable-gallium-r600 --with-dri-drivers=i915,i965                 \
@@ -169,7 +171,7 @@ wayland to --enable-egl-platforms.</p>
 <p>Now install the rest of wayland.</p>
 
 <pre>    $ cd wayland
-    $ ./autogen.sh --prefix=$HOME/install
+    $ ./autogen.sh --prefix=$INSTALL_PATH
     $ make &amp;&amp; make install
 </pre>
 
-- 
1.7.4.1



More information about the wayland-devel mailing list