summaryrefslogtreecommitdiff
path: root/development/fpc-source
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
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')
-rw-r--r--development/fpc-source/fpc-source.SlackBuild28
-rw-r--r--development/fpc-source/fpc-source.info10
2 files changed, 30 insertions, 8 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
diff --git a/development/fpc-source/fpc-source.info b/development/fpc-source/fpc-source.info
index 9332f5d979..4c96d9f4a7 100644
--- a/development/fpc-source/fpc-source.info
+++ b/development/fpc-source/fpc-source.info
@@ -1,10 +1,10 @@
PRGNAM="fpc-source"
-VERSION="3.0.0"
+VERSION="3.0.4"
HOMEPAGE="https://www.freepascal.org"
-DOWNLOAD="https://downloads.sourceforge.net/freepascal/fpc-3.0.0.source.tar.gz"
-MD5SUM="0a0d83180009e96cd9700b23ca0c7529"
+DOWNLOAD="https://downloads.sourceforge.net/freepascal/fpc-3.0.4.source.tar.gz"
+MD5SUM="bc8c2b53cf0816c3bea39f27fb104b31"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="orphaned - no maintainer"
-EMAIL="nobody@nowhere.com"
+MAINTAINER="Michael Edie"
+EMAIL="michael@sawbox.net"