aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-12-05 02:05:48 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-05 02:06:01 -0600
commit574341ed5180d798975d7c318f2d5b4889755e93 (patch)
treeda83c8a381e403792f73c8e89481f1e53cc351b8
parentc402240342ed4bf857ddbc4196f913a3d81904ff (diff)
downloadaports-574341ed5180d798975d7c318f2d5b4889755e93.tar.bz2
aports-574341ed5180d798975d7c318f2d5b4889755e93.tar.xz
main/gcc: split out libquadmath
-rw-r--r--main/gcc/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 5d05b5a2f2..cee61180c1 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -39,7 +39,7 @@ if [ "$LANG_GO" != "off" ]; then
_languages="$_languages,go"
fi
if [ "$LANG_FORTRAN" != "off" ]; then
- subpackages="$subpackages gfortran libgfortran"
+ subpackages="$subpackages gfortran libgfortran libquadmath"
_languages="$_languages,fortran"
fi
@@ -354,8 +354,17 @@ libgfortran() {
mv "$pkgdir"/usr/lib/libgfortran.so.* "$subpkgdir"/usr/lib/
}
+libquadmath() {
+ replaces="gcc"
+ pkgdesc="128-bit math library for GCC"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libquadmath.so.* "$subpkgdir"/usr/lib/
+}
+
gfortran() {
pkgdesc="GNU Fortran Compiler"
+ depends="$depends libgfortran libquadmath"
+ replaces="gcc"
local libexec=usr/libexec/gcc/${CHOST:-$_chost}/$pkgver
local gcclibs=usr/lib/gcc/${CHOST:-$_chost}/$pkgver
mkdir -p "$subpkgdir"/$libexec \
@@ -365,6 +374,8 @@ gfortran() {
mv "$pkgdir"/usr/bin/*gfortran "$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/lib/libgfortran.a \
"$pkgdir"/usr/lib/libgfortran.so \
+ "$pkgdir"/usr/lib/libquadmath.a \
+ "$pkgdir"/usr/lib/libquadmath.so \
"$subpkgdir"/usr/lib/ || return 1
mv "$pkgdir"/$libexec/f951 \
"$subpkgdir"/$libexec