# Set default version/arch/build. You can override these settings # in the SlackBuild scripts for each package (koffice, for example, # usually has a different version number), or by setting your own # environment variables. if [ -z $VERSION ]; then export VERSION=3.5.4 fi if [ -z $BUILD ]; then export BUILD=1 fi # Target arch (this should be set to i486 for any 32-bit x86, unless # you want problems finding your compiler...): if [ -z $TARGET ]; then export TARGET=arm fi # Use this as CFLAGS and CXXFLAGS: if [ -z "$SLKCFLAGS" ]; then if [ "$ARCH" = "i386" ]; then export SLKCFLAGS="-O2 -march=i386 -mcpu=i686" export CPUOPT="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then export SLKCFLAGS="-O2 -march=i486 -mcpu=i686" export CPUOPT="-O2 -march=i486 -mcpu=i686" elif [ "$ARCH" = "s390" ]; then export CPUOPT="-O2" export SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then export CPUOPT="-O2" export SLKCFLAGS="-O2" fi elif [ "$ARCH" = "arm" ]; then export SLKCFLAGS="-O2 -march=armv3 -mtune=xscale" export CPUOPT="-O2 -march=armv3 -mtune=xscale" fi # Number of jobs to compile at once: # can't do this for ARMedslack yet if [ -z "$NUMJOBS" ]; then export NUMJOBS= fi