diff options
Diffstat (limited to 'source.local/a/tcsh/tcsh.SlackBuild')
-rwxr-xr-x | source.local/a/tcsh/tcsh.SlackBuild | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/source.local/a/tcsh/tcsh.SlackBuild b/source.local/a/tcsh/tcsh.SlackBuild index f39be09..0518ef8 100755 --- a/source.local/a/tcsh/tcsh.SlackBuild +++ b/source.local/a/tcsh/tcsh.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,35 +24,33 @@ PKGNAM=tcsh -VERSION=6.17.00 +VERSION=${VERSION:-6.18.01} BUILD=${BUILD:-1} -# Automatically determine the architecture we're building on: -MARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-$PKGNAM +NUMJOBS=${NUMJOBS:-" -j7 "} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2" -elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" +if [ -e $CWD/machine.conf ]; then + . $CWD/machine.conf ] +elif [ -e /etc/slackbuild/machine.conf ]; then + . /etc/slackbuild/machine.conf ] else - SLKCFLAGS="-O2" + # Automatically determine the architecture we're building on: + if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac + fi + # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: + if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2" + else + SLKCFLAGS="-O2" + fi fi case "$ARCH" in @@ -60,6 +58,10 @@ case "$ARCH" in *) TARGET=$ARCH-slackware-linux ;; esac +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP @@ -83,7 +85,7 @@ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix= \ --build=$TARGET -make -j4 || exit 1 +make ${NUMJOBS} || exit 1 mkdir -p $PKG/etc mkdir -p $PKG/bin |