diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/fpc-source/fpc-source.SlackBuild | 28 | ||||
-rw-r--r-- | development/fpc-source/fpc-source.info | 10 |
2 files changed, 30 insertions, 8 deletions
diff --git a/development/fpc-source/fpc-source.SlackBuild b/development/fpc-source/fpc-source.SlackBuild index f75749776e89e..44724874954f6 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 9332f5d9796f3..4c96d9f4a706e 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" |