[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.
|
---|
[e576789] | 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 |
|
---|
[e576789] | 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.
|
---|
[e576789] | 34 | export SRC_DIR=/sources
|
---|
[ecdc3b6] | 35 |
|
---|
| 36 |
|
---|
| 37 | #======== Xorg7 envars ===========
|
---|
| 38 |
|
---|
| 39 | #--- Installation prefix
|
---|
| 40 | export XORG_PREFIX=/usr
|
---|
| 41 |
|
---|
| 42 | #--- Configure switches
|
---|
[e576789] | 43 | export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
|
---|
| 44 | --localstatedir=/var --disable-static"
|
---|
[ecdc3b6] | 45 |
|
---|
[e576789] | 46 | #======== ABOUT GNOME envars =====
|
---|
| 47 |
|
---|
| 48 | # Refer to `Chapter 30. Right now, the book hard codes --prefix=/usr
|
---|
| 49 | # and does not make use of the variables below. If you need another prefix,
|
---|
| 50 | # You'll have to modifiy the prefix in the book source and use the variables
|
---|
| 51 | # below. But this is not supported in this tool.
|
---|
| 52 |
|
---|
| 53 | #======== LEGACY GNOME envars ====
|
---|
| 54 |
|
---|
| 55 | # We use envars.conf instead of /etc/profile.d. But if you
|
---|
| 56 | # install into a different prefix, you'll need to update ld.so.conf and
|
---|
| 57 | # man-db.conf, too.
|
---|
[ecdc3b6] | 58 |
|
---|
| 59 | #--- Installation prefix
|
---|
[e576789] | 60 | # export GNOME_PREFIX=/usr
|
---|
| 61 | # export GNOME_SYSCONFDIR=/etc/gnome/3.2.2
|
---|
| 62 | # export XDG_CONFIG_DIRS=$GNOME_SYSCONFDIR/xdg
|
---|
| 63 | # export XDG_DATA_DIRS=/usr/share:/usr/local/share
|
---|
[ecdc3b6] | 64 |
|
---|
[e576789] | 65 | #--- If you want to install GNOME on a non standard prefix, uncomment
|
---|
[ecdc3b6] | 66 | # the next export lines and edit it if needed.
|
---|
| 67 | # See also the GNOME Pre-installation Configuration HTML page for
|
---|
| 68 | # aditional required commands.
|
---|
| 69 | #export PATH=$PATH:$GNOME_PREFIX/bin
|
---|
| 70 | #export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$GNOME_PREFIX/lib/pkgconfig
|
---|
| 71 | #export GNOME_LIBCONFIG_PATH=/usr/lib:$GNOME_PREFIX/lib
|
---|
| 72 |
|
---|
| 73 | #======== KDE envars =============
|
---|
| 74 |
|
---|
[e576789] | 75 | # Refer to `Chapter 27. Introduction->KDE Pre-installation Configuration'
|
---|
| 76 | # for rationale. We use envars.conf instead of /etc/profile.d. But if you
|
---|
| 77 | # install into a different prefix, you'll need to update ld.so.conf and
|
---|
| 78 | # man-db.conf, and to create and populate the directories $KDE_PREFIX/share
|
---|
| 79 | # and /etc/dbus-1, as instructed.
|
---|
| 80 |
|
---|
[ecdc3b6] | 81 | #--- Installation prefix
|
---|
| 82 | export KDE_PREFIX=/usr
|
---|
| 83 |
|
---|
[e576789] | 84 | #--- If you want to install KDE on a non standard prefix, uncomment
|
---|
| 85 | # the next lines and edit them as needed.
|
---|
| 86 | #export KDE_PREFIX=/opt/kde
|
---|
| 87 | #export KDEDIR=$KDE_PREFIX
|
---|
| 88 |
|
---|
| 89 | #PATH=$PATH:$KDE_PREFIX/bin
|
---|
| 90 | #if [ -z PKG_CONFIG_PATH ]; then
|
---|
| 91 | #export PKG_CONFIG_PATH=$KDE_PREFIX/lib/pkgconfig:$KDE_PREFIX/share/pkgconfig
|
---|
| 92 | #else
|
---|
| 93 | # PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDE_PREFIX/lib/pkgconfig:$KDE_PREFIX/share/pkgconfig
|
---|
| 94 | #fi
|
---|
| 95 | #if [ -z XDG_DATA_DIRS ]; then
|
---|
| 96 | #export XDG_DATA_DIRS=$KDE_PREFIX/share
|
---|
| 97 | #else
|
---|
| 98 | # XDG_DATA_DIRS=$XDG_DATA_DIRS:$KDE_PREFIX/share
|
---|
| 99 | #fi
|
---|
| 100 | #if [ -z XDG_CONFIG_DIRS ]; then
|
---|
| 101 | #export XDG_CONFIG_DIRS=/etc/kde/xdg
|
---|
| 102 | #else
|
---|
| 103 | # XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde/xdg
|
---|
| 104 | #fi
|
---|
[fdd3b04] | 105 |
|
---|
| 106 | #======== Optimizations =============
|
---|
| 107 |
|
---|
| 108 | # Global optimization settings can be placed here. This settings can be
|
---|
| 109 | # overrided by settings in the packages build scripts.
|
---|
| 110 |
|
---|
| 111 | # WARNING: The use of build optimizations may be dangerous.
|
---|
| 112 | # You should know what you are doing and be sure that the
|
---|
| 113 | # optimization settings placed below are what you want.
|
---|
| 114 | # It there are build issues or the system doesn't work as
|
---|
| 115 | # expected, please rebuild without optimizations before
|
---|
| 116 | # asking for support.
|
---|
| 117 |
|
---|
[e576789] | 118 | export MAKEFLAGS="-j5"
|
---|
[fdd3b04] | 119 |
|
---|
[4a33ef0] | 120 | #export CFLAGS="-O3 -pipe"
|
---|
| 121 | #export CXXFLAGS=$CFLAGS
|
---|
| 122 | #export LDFLAGS="-s"
|
---|
[fdd3b04] | 123 |
|
---|
[4a33ef0] | 124 | #export OTHER_CFLAGS=$CFLAGS
|
---|
| 125 | #export OTHER_CXXFLAGS=$CXXFLAGS
|
---|
| 126 | #export OTHER_LDFLAGS=$LDFLAGS
|
---|
[fdd3b04] | 127 |
|
---|
[e576789] | 128 | #======== Environment settings ========
|
---|
| 129 |
|
---|
| 130 | # Since the startup files may be changed in the course
|
---|
| 131 | # of a build, ensure that environment variables are
|
---|
| 132 | # up to date
|
---|
| 133 |
|
---|
| 134 | if [ -r /etc/profile ]; then source /etc/profile; fi
|
---|