summaryrefslogtreecommitdiff
path: root/development/fpc-source/fpc-source.SlackBuild
diff options
context:
space:
mode:
authorMichael Edie <michael@sawbox.net>2018-07-04 06:31:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-07 06:54:14 +0700
commit23f569a5e64b193c4f5e1e488b1be016d703f47d (patch)
tree74c0a4b5ee84132038e977291db697185c69135f /development/fpc-source/fpc-source.SlackBuild
parent12f2247b977148c20757916c16f0218a8d0c986e (diff)
downloadslackbuilds-23f569a5e64b193c4f5e1e488b1be016d703f47d.tar.gz
development/fpc-source: Updated for version 3.0.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/fpc-source/fpc-source.SlackBuild')
-rw-r--r--development/fpc-source/fpc-source.SlackBuild28
1 files changed, 25 insertions, 3 deletions
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 <cancellor2@gmail.com>
+# 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