[6d0dbc3] | 1 | #####
|
---|
| 2 | #
|
---|
| 3 | # Configuration file for the BLFS module
|
---|
| 4 | #
|
---|
| 5 | # $Id$
|
---|
| 6 | #
|
---|
[f65d3cb] | 7 | # Set default envars used in the build scripts
|
---|
[6d0dbc3] | 8 | #
|
---|
| 9 | #####
|
---|
| 10 |
|
---|
[ecdc3b6] | 11 | #======== Common envars ==========
|
---|
[6d0dbc3] | 12 |
|
---|
[4a33ef0] | 13 | #--- Set a well-known working locale when building software
|
---|
| 14 | export LC_ALL=C
|
---|
| 15 |
|
---|
[6d0dbc3] | 16 | #--- The local repository for packages/file
|
---|
| 17 | # Any missing file will be downloaded and archived here,
|
---|
| 18 | # if the user has the right priviledges.
|
---|
[63fc514] | 19 | export SRC_ARCHIVE=/sources
|
---|
[6d0dbc3] | 20 |
|
---|
[f65d3cb] | 21 | #--- Server used if the file isn't found in SRC_ARCHIVE.
|
---|
[6d0dbc3] | 22 | # As a last resort, the file will dowloaded from upstream, if possible.
|
---|
| 23 | #
|
---|
| 24 | # The server path MUST be set as listed in
|
---|
| 25 | # http://www.linuxfromscratch.org/blfs/download.html
|
---|
| 26 | export FTP_SERVER=ftp://anduin.linuxfromscratch.org/BLFS/
|
---|
[f65d3cb] | 27 |
|
---|
[63fc514] | 28 | # Use a server close to you for Xorg (see http://wiki.x.org/wiki/Mirrors)
|
---|
| 29 | export FTP_X_SERVER=ftp://mirror.cict.fr/x.org/
|
---|
[f65d3cb] | 30 |
|
---|
| 31 | #--- The sources directory.
|
---|
| 32 | # Full path to the top level directory where packages will be stored,
|
---|
| 33 | # unpacked, and compiled.
|
---|
[63fc514] | 34 | export SRC_DIR=/sources
|
---|
[ecdc3b6] | 35 |
|
---|
| 36 |
|
---|
| 37 | #======== Xorg7 envars ===========
|
---|
| 38 |
|
---|
| 39 | #--- Installation prefix
|
---|
| 40 | export XORG_PREFIX=/usr
|
---|
| 41 |
|
---|
| 42 | #--- Configure switches
|
---|
[0a1c668] | 43 | export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --mandir=$XORG_PREFIX/share/man --localstatedir=/var"
|
---|
[ecdc3b6] | 44 |
|
---|
| 45 | #======== GNOME envars ===========
|
---|
| 46 |
|
---|
[5ed79ef] | 47 | # Refer to `Chapter 33. GNOME Core Packages->Pre-installation Configuration'
|
---|
[18c1c95] | 48 | # for rationale. We use envars.conf instead of /etc/profile.d. But if you
|
---|
[5ed79ef] | 49 | # install into a different prefix, you'll need to update ld.so.conf and
|
---|
| 50 | # man-db.conf, too.
|
---|
[18c1c95] | 51 |
|
---|
[ecdc3b6] | 52 | #--- Installation prefix
|
---|
| 53 | export GNOME_PREFIX=/usr
|
---|
[18c1c95] | 54 | export GNOME_SYSCONFDIR=/etc/gnome/3.2.2
|
---|
| 55 | export XDG_CONFIG_DIRS=$GNOME_SYSCONFDIR/xdg
|
---|
| 56 | export XDG_DATA_DIRS=/usr/share:/usr/local/share
|
---|
[ecdc3b6] | 57 |
|
---|
| 58 | #--- If you want to install GNOME on a non standart prefix, uncomment
|
---|
| 59 | # the next export lines and edit it if needed.
|
---|
| 60 | # See also the GNOME Pre-installation Configuration HTML page for
|
---|
| 61 | # aditional required commands.
|
---|
| 62 | #export PATH=$PATH:$GNOME_PREFIX/bin
|
---|
| 63 | #export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$GNOME_PREFIX/lib/pkgconfig
|
---|
| 64 | #export GNOME_LIBCONFIG_PATH=/usr/lib:$GNOME_PREFIX/lib
|
---|
| 65 |
|
---|
| 66 | #======== KDE envars =============
|
---|
| 67 |
|
---|
[e9bc540] | 68 | # Refer to `Chapter 27. Introduction->KDE Pre-installation Configuration'
|
---|
| 69 | # for rationale. We use envars.conf instead of /etc/profile.d. But if you
|
---|
| 70 | # install into a different prefix, you'll need to update ld.so.conf and
|
---|
| 71 | # man-db.conf, too.
|
---|
[ecdc3b6] | 72 |
|
---|
[e9bc540] | 73 | #--- Installation prefix
|
---|
| 74 | export KDE4_PREFIX=/usr
|
---|
| 75 |
|
---|
| 76 | #--- If you want to install KDE on a non standard prefix, uncomment
|
---|
| 77 | # the next lines and edit them it as needed.
|
---|
| 78 | #KDE4_PREFIX=/opt/kde4
|
---|
| 79 | #KDE4DIR=$KDE4_PREFIX
|
---|
| 80 | #KDEDIR=$KDE4_PREFIX
|
---|
| 81 |
|
---|
| 82 | #PATH=$PATH:$KDE4_PREFIX/bin
|
---|
| 83 | #if [ -z PKG_CONFIG_PATH ]; then
|
---|
| 84 | # PKG_CONFIG_PATH=$KDE4_PREFIX/lib/pkgconfig:$KDE4_PREFIX/share/pkgconfig
|
---|
| 85 | #else
|
---|
| 86 | # PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDE4_PREFIX/lib/pkgconfig:$KDE4_PREFIX/share/pkgconfig
|
---|
| 87 | #fi
|
---|
| 88 | #if [ -z XDG_DATA_DIRS ]; then
|
---|
| 89 | # XDG_DATA_DIRS=$KDE4_PREFIX/share
|
---|
| 90 | #else
|
---|
| 91 | # XDG_DATA_DIRS=$XDG_DATA_DIRS:$KDE4_PREFIX/share
|
---|
| 92 | #fi
|
---|
| 93 | #if [ -z XDG_CONFIG_DIRS ]; then
|
---|
| 94 | # XDG_CONFIG_DIRS=/etc/kde4/xdg
|
---|
| 95 | #else
|
---|
[3ab1fca] | 96 | # XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde4/xdg
|
---|
[e9bc540] | 97 | #fi
|
---|
| 98 |
|
---|
| 99 | #export KDE4_PREFIX KDE4DIR KDEDIR
|
---|
[fdd3b04] | 100 |
|
---|
| 101 | #======== Optimizations =============
|
---|
| 102 |
|
---|
| 103 | # Global optimization settings can be placed here. This settings can be
|
---|
| 104 | # overrided by settings in the packages build scripts.
|
---|
| 105 |
|
---|
| 106 | # WARNING: The use of build optimizations may be dangerous.
|
---|
| 107 | # You should know what you are doing and be sure that the
|
---|
| 108 | # optimization settings placed below are what you want.
|
---|
| 109 | # It there are build issues or the system doesn't work as
|
---|
| 110 | # expected, please rebuild without optimizations before
|
---|
| 111 | # asking for support.
|
---|
| 112 |
|
---|
[63fc514] | 113 | export MAKEFLAGS="-j5"
|
---|
[fdd3b04] | 114 |
|
---|
[4a33ef0] | 115 | #export CFLAGS="-O3 -pipe"
|
---|
| 116 | #export CXXFLAGS=$CFLAGS
|
---|
| 117 | #export LDFLAGS="-s"
|
---|
[fdd3b04] | 118 |
|
---|
[4a33ef0] | 119 | #export OTHER_CFLAGS=$CFLAGS
|
---|
| 120 | #export OTHER_CXXFLAGS=$CXXFLAGS
|
---|
| 121 | #export OTHER_LDFLAGS=$LDFLAGS
|
---|
[fdd3b04] | 122 |
|
---|
[f3a500d] | 123 | #======== Environment settings ========
|
---|
| 124 |
|
---|
| 125 | # Since the startup files may be changed in the course
|
---|
| 126 | # of a build, ensure that environment variables are
|
---|
| 127 | # up to date
|
---|
| 128 |
|
---|
| 129 | source /etc/profile
|
---|