From 23f569a5e64b193c4f5e1e488b1be016d703f47d Mon Sep 17 00:00:00 2001 From: Michael Edie Date: Wed, 4 Jul 2018 06:31:29 +0700 Subject: development/fpc-source: Updated for version 3.0.4. Signed-off-by: Willy Sudiarto Raharjo --- development/fpc-source/fpc-source.SlackBuild | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'development/fpc-source/fpc-source.SlackBuild') diff --git a/development/fpc-source/fpc-source.SlackBuild b/development/fpc-source/fpc-source.SlackBuild index f75749776e..4472487495 100644 --- a/development/fpc-source/fpc-source.SlackBuild +++ b/development/fpc-source/fpc-source.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for the Free Pascal source code package # Copyright 2011-2014 Fridrich von Stauffenberg +# Copyright 2018 Michael Edie, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,20 +24,41 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fpc-source -VERSION=${VERSION:-3.0.0} +VERSION=${VERSION:-3.0.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + ORIG_PRGNAM=fpc ORIG_VERSION=$VERSION.source -ARCH=noarch - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG -- cgit v1.2.3