summaryrefslogtreecommitdiffstats
path: root/compat32-tools/compat32-tools.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-01-16 09:38:59 +0000
committer Eric Hameleers <alien@slackware.com>2014-01-16 09:38:59 +0000
commit84c1bea7b156650bf6c0c822e31848ebef3b3f00 (patch)
treef39b70dd805e3825b8dbbe03c306f90e9fc34553 /compat32-tools/compat32-tools.SlackBuild
parent69b0f79bb5a506adf893e6dcc785fb5a11172c2a (diff)
downloadmultilib-84c1bea7b156650bf6c0c822e31848ebef3b3f00.tar.gz
multilib-84c1bea7b156650bf6c0c822e31848ebef3b3f00.tar.xz
Added support for fortran
Diffstat (limited to 'compat32-tools/compat32-tools.SlackBuild')
-rwxr-xr-xcompat32-tools/compat32-tools.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/compat32-tools/compat32-tools.SlackBuild b/compat32-tools/compat32-tools.SlackBuild
index b22d72c..587e45f 100755
--- a/compat32-tools/compat32-tools.SlackBuild
+++ b/compat32-tools/compat32-tools.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (c) 2009 Frederick Emmott <fred@slackware.com>
-# Copyright (c) 2009, 2010, 2011, 2012, 2013 Eric Hameleers, Eindhoven, NL
+# Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,11 +23,10 @@
PRGNAM=compat32-tools
-VERSION=3.1
+VERSION=3.2
ARCH=noarch
TAG=${TAG:-alien}
-BUILD=${BUILD:-5}
-
+BUILD=${BUILD:-1}
CWD=$(pwd)
TMP=${TMP:-/tmp}
@@ -41,11 +40,13 @@ mkdir -p $PKG/etc/profile.d
install -o root -m644 $CWD/32dev.sh $PKG/etc/profile.d/32dev.sh
install -o root -m644 $CWD/32dev.csh $PKG/etc/profile.d/32dev.csh
-
# Add the 'gcc' wrapper script to be used for building 32bit software:
mkdir -p $PKG/usr/bin/32
install -o root -m755 $CWD/gccwrapper $PKG/usr/bin/32/gcc
+# Add the 'gfortran' wrapper script to be used for building 32bit software:
+mkdir -p $PKG/usr/bin/32
+install -o root -m755 $CWD/gfortranwrapper $PKG/usr/bin/32/gfortran
# Add symlinks for cc and g++ stubs:
( cd $PKG/usr/bin/32;
@@ -53,6 +54,14 @@ install -o root -m755 $CWD/gccwrapper $PKG/usr/bin/32/gcc
ln -s gcc cc;
)
+# Add symlinks for fortran stubs:
+( cd $PKG/usr/bin/32;
+ ln -s gfortran f77;
+ ln -s gfortran f95;
+ ln -s gfortran g77;
+ ln -s gfortran g95;
+ ln -s gfortran fortran;
+)
# Add the two scripts that will facilitate converting 32bit Slackware
# packages to a format that is suitable to be installed on 64bit Slackware.
@@ -61,7 +70,6 @@ mkdir -p $PKG/usr/sbin
install -m755 -o root $CWD/convertpkg-compat32 $PKG/usr/sbin/convertpkg-compat32
install -m755 -o root $CWD/massconvert32.sh $PKG/usr/sbin/massconvert32.sh
-
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# Much of this README is from the Slamd64 file:
@@ -70,12 +78,10 @@ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
# Add this script:
cat $0 > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
# Add a package description:
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-
# Build the package:
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz