From 574341ed5180d798975d7c318f2d5b4889755e93 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 5 Dec 2011 02:05:48 -0600 Subject: main/gcc: split out libquadmath --- main/gcc/APKBUILD | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'main/gcc/APKBUILD') 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 -- cgit v1.2.3