diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-12-05 02:05:48 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-12-05 02:06:01 -0600 |
commit | 574341ed5180d798975d7c318f2d5b4889755e93 (patch) | |
tree | da83c8a381e403792f73c8e89481f1e53cc351b8 /main/gcc | |
parent | c402240342ed4bf857ddbc4196f913a3d81904ff (diff) | |
download | aports-574341ed5180d798975d7c318f2d5b4889755e93.tar.bz2 aports-574341ed5180d798975d7c318f2d5b4889755e93.tar.xz |
main/gcc: split out libquadmath
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 13 |
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 |