2006-08-12 14:34:01 +02:00
|
|
|
#####
|
|
|
|
#
|
|
|
|
# Configuration file for the BLFS module
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
2006-08-14 20:45:31 +02:00
|
|
|
# Set default envars used in the build scripts
|
2006-08-12 14:34:01 +02:00
|
|
|
#
|
|
|
|
#####
|
|
|
|
|
2006-08-15 13:32:08 +02:00
|
|
|
#======== Common envars ==========
|
2006-08-12 14:34:01 +02:00
|
|
|
|
2007-07-26 21:46:19 +02:00
|
|
|
#--- Set a well-known working locale when building software
|
|
|
|
export LC_ALL=C
|
|
|
|
|
2006-08-12 14:34:01 +02:00
|
|
|
#--- The local repository for packages/file
|
|
|
|
# Any missing file will be downloaded and archived here,
|
|
|
|
# if the user has the right priviledges.
|
2012-02-22 18:09:47 +01:00
|
|
|
export SRC_ARCHIVE=/sources
|
2006-08-12 14:34:01 +02:00
|
|
|
|
2006-08-14 20:45:31 +02:00
|
|
|
#--- Server used if the file isn't found in SRC_ARCHIVE.
|
2006-08-12 14:34:01 +02:00
|
|
|
# As a last resort, the file will dowloaded from upstream, if possible.
|
|
|
|
#
|
|
|
|
# The server path MUST be set as listed in
|
|
|
|
# http://www.linuxfromscratch.org/blfs/download.html
|
|
|
|
export FTP_SERVER=ftp://anduin.linuxfromscratch.org/BLFS/
|
2006-08-14 20:45:31 +02:00
|
|
|
|
2012-02-22 18:09:47 +01:00
|
|
|
# Use a server close to you for Xorg (see http://wiki.x.org/wiki/Mirrors)
|
|
|
|
export FTP_X_SERVER=ftp://mirror.cict.fr/x.org/
|
2006-08-14 20:45:31 +02:00
|
|
|
|
|
|
|
#--- The sources directory.
|
|
|
|
# Full path to the top level directory where packages will be stored,
|
|
|
|
# unpacked, and compiled.
|
2012-02-22 18:09:47 +01:00
|
|
|
export SRC_DIR=/sources
|
2006-08-15 13:32:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
#======== Xorg7 envars ===========
|
|
|
|
|
|
|
|
#--- Installation prefix
|
|
|
|
export XORG_PREFIX=/usr
|
|
|
|
|
|
|
|
#--- Configure switches
|
2013-02-09 20:25:03 +01:00
|
|
|
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
|
|
|
|
--localstatedir=/var --disable-static"
|
2006-08-15 13:32:08 +02:00
|
|
|
|
2013-01-07 11:57:01 +01:00
|
|
|
#======== ABOUT GNOME envars =====
|
2006-08-15 13:32:08 +02:00
|
|
|
|
2013-01-07 11:52:43 +01:00
|
|
|
# Refer to `Chapter 30. Right now, the book hard codes --prefix=/usr
|
|
|
|
# and does not make use of the variables below. If you need another prefix,
|
|
|
|
# You'll have to modifiy the prefix in the book source and use the variables
|
|
|
|
# below. But this is not supported in this tool.
|
2013-01-07 11:57:01 +01:00
|
|
|
|
2013-01-07 11:52:43 +01:00
|
|
|
#======== LEGACY GNOME envars ====
|
2013-01-07 11:57:01 +01:00
|
|
|
|
2013-01-07 11:52:43 +01:00
|
|
|
# We use envars.conf instead of /etc/profile.d. But if you
|
2012-03-27 07:39:27 +02:00
|
|
|
# install into a different prefix, you'll need to update ld.so.conf and
|
|
|
|
# man-db.conf, too.
|
2012-03-23 16:00:42 +01:00
|
|
|
|
2006-08-15 13:32:08 +02:00
|
|
|
#--- Installation prefix
|
2013-01-07 11:57:01 +01:00
|
|
|
# export GNOME_PREFIX=/usr
|
|
|
|
# export GNOME_SYSCONFDIR=/etc/gnome/3.2.2
|
|
|
|
# export XDG_CONFIG_DIRS=$GNOME_SYSCONFDIR/xdg
|
|
|
|
# export XDG_DATA_DIRS=/usr/share:/usr/local/share
|
2006-08-15 13:32:08 +02:00
|
|
|
|
2013-01-07 11:57:01 +01:00
|
|
|
#--- If you want to install GNOME on a non standard prefix, uncomment
|
2006-08-15 13:32:08 +02:00
|
|
|
# the next export lines and edit it if needed.
|
|
|
|
# See also the GNOME Pre-installation Configuration HTML page for
|
|
|
|
# aditional required commands.
|
|
|
|
#export PATH=$PATH:$GNOME_PREFIX/bin
|
|
|
|
#export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$GNOME_PREFIX/lib/pkgconfig
|
|
|
|
#export GNOME_LIBCONFIG_PATH=/usr/lib:$GNOME_PREFIX/lib
|
|
|
|
|
|
|
|
#======== KDE envars =============
|
|
|
|
|
2012-04-10 16:38:40 +02:00
|
|
|
# Refer to `Chapter 27. Introduction->KDE Pre-installation Configuration'
|
|
|
|
# for rationale. We use envars.conf instead of /etc/profile.d. But if you
|
|
|
|
# install into a different prefix, you'll need to update ld.so.conf and
|
2013-01-07 11:52:43 +01:00
|
|
|
# man-db.conf, and to create and populate the directories $KDE_PREFIX/share
|
|
|
|
# and /etc/dbus-1, as instructed.
|
2006-08-15 13:32:08 +02:00
|
|
|
|
2012-04-10 16:38:40 +02:00
|
|
|
#--- Installation prefix
|
2012-12-22 22:34:44 +01:00
|
|
|
export KDE_PREFIX=/usr
|
2012-04-10 16:38:40 +02:00
|
|
|
|
|
|
|
#--- If you want to install KDE on a non standard prefix, uncomment
|
2013-02-09 20:25:03 +01:00
|
|
|
# the next lines and edit them as needed.
|
2013-01-07 11:52:43 +01:00
|
|
|
#export KDE_PREFIX=/opt/kde
|
|
|
|
#export KDEDIR=$KDE_PREFIX
|
2012-04-10 16:38:40 +02:00
|
|
|
|
2012-12-22 22:34:44 +01:00
|
|
|
#PATH=$PATH:$KDE_PREFIX/bin
|
2012-04-10 16:38:40 +02:00
|
|
|
#if [ -z PKG_CONFIG_PATH ]; then
|
2013-01-07 11:52:43 +01:00
|
|
|
#export PKG_CONFIG_PATH=$KDE_PREFIX/lib/pkgconfig:$KDE_PREFIX/share/pkgconfig
|
2012-04-10 16:38:40 +02:00
|
|
|
#else
|
2012-12-22 22:34:44 +01:00
|
|
|
# PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDE_PREFIX/lib/pkgconfig:$KDE_PREFIX/share/pkgconfig
|
2012-04-10 16:38:40 +02:00
|
|
|
#fi
|
|
|
|
#if [ -z XDG_DATA_DIRS ]; then
|
2013-01-07 11:52:43 +01:00
|
|
|
#export XDG_DATA_DIRS=$KDE_PREFIX/share
|
2012-04-10 16:38:40 +02:00
|
|
|
#else
|
2012-12-22 22:34:44 +01:00
|
|
|
# XDG_DATA_DIRS=$XDG_DATA_DIRS:$KDE_PREFIX/share
|
2012-04-10 16:38:40 +02:00
|
|
|
#fi
|
|
|
|
#if [ -z XDG_CONFIG_DIRS ]; then
|
2013-01-07 11:52:43 +01:00
|
|
|
#export XDG_CONFIG_DIRS=/etc/kde/xdg
|
2012-04-10 16:38:40 +02:00
|
|
|
#else
|
2012-12-22 22:34:44 +01:00
|
|
|
# XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde/xdg
|
2012-04-10 16:38:40 +02:00
|
|
|
#fi
|
|
|
|
|
2006-08-26 11:54:19 +02:00
|
|
|
#======== Optimizations =============
|
|
|
|
|
|
|
|
# Global optimization settings can be placed here. This settings can be
|
|
|
|
# overrided by settings in the packages build scripts.
|
|
|
|
|
|
|
|
# WARNING: The use of build optimizations may be dangerous.
|
|
|
|
# You should know what you are doing and be sure that the
|
|
|
|
# optimization settings placed below are what you want.
|
|
|
|
# It there are build issues or the system doesn't work as
|
|
|
|
# expected, please rebuild without optimizations before
|
|
|
|
# asking for support.
|
|
|
|
|
2012-02-22 18:09:47 +01:00
|
|
|
export MAKEFLAGS="-j5"
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2007-07-26 21:46:19 +02:00
|
|
|
#export CFLAGS="-O3 -pipe"
|
|
|
|
#export CXXFLAGS=$CFLAGS
|
|
|
|
#export LDFLAGS="-s"
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2007-07-26 21:46:19 +02:00
|
|
|
#export OTHER_CFLAGS=$CFLAGS
|
|
|
|
#export OTHER_CXXFLAGS=$CXXFLAGS
|
|
|
|
#export OTHER_LDFLAGS=$LDFLAGS
|
2006-08-26 11:54:19 +02:00
|
|
|
|
2012-03-07 22:32:03 +01:00
|
|
|
#======== Environment settings ========
|
|
|
|
|
|
|
|
# Since the startup files may be changed in the course
|
|
|
|
# of a build, ensure that environment variables are
|
|
|
|
# up to date
|
|
|
|
|
|
|
|
source /etc/profile
|