mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
New toolchain
This commit is contained in:
parent
775f0bd1a1
commit
598b769a94
@ -4,8 +4,8 @@
|
||||
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=libmpc
|
||||
pkgver=0.9
|
||||
pkgrel=2
|
||||
pkgver=1.0.1
|
||||
pkgrel=1
|
||||
# dash the next line if you want to skip the tests
|
||||
_test=1
|
||||
pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision"
|
||||
@ -15,18 +15,12 @@ license=('LGPL')
|
||||
depends=('mpfr>=3.1.0')
|
||||
options=('!libtool' 'log')
|
||||
install=libmpc.install
|
||||
source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz
|
||||
libmpc-0.9-configure_cflags_egrep_issue.patch)
|
||||
sha1sums=('229722d553030734d49731844abfef7617b64f1a'
|
||||
'6fec4485925b538852d1889f26cc51ec6f820917')
|
||||
source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz{,.sig})
|
||||
md5sums=('b32a2e1a3daa392372fbd586d1ed3679'
|
||||
'c064863fbbb5831ba4f75f1181333862')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/mpc-${pkgver}"
|
||||
|
||||
# http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
|
||||
patch -Np1 -i $srcdir/libmpc-0.9-configure_cflags_egrep_issue.patch
|
||||
autoreconf
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
|
||||
|
@ -1,63 +0,0 @@
|
||||
--- trunk/configure.ac 2011/02/21 12:18:31 932
|
||||
+++ trunk/configure.ac 2011/02/21 16:41:09 936
|
||||
@@ -33,7 +33,7 @@
|
||||
AC_CANONICAL_HOST
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
-dnl Extra arguments to configure
|
||||
+# Extra arguments to configure
|
||||
AC_ARG_WITH([mpfr_include],
|
||||
[AC_HELP_STRING([--with-mpfr-include=DIR],
|
||||
[MPFR include directory])],
|
||||
@@ -85,18 +85,19 @@
|
||||
)
|
||||
|
||||
|
||||
-dnl Setup CC and CFLAGS
|
||||
+# Setup CC and CFLAGS
|
||||
+AC_PROG_CC
|
||||
+AC_LANG(C)
|
||||
|
||||
-dnl Check for user specification of CC or CFLAGS
|
||||
+# Set up LibTool
|
||||
+AC_PROG_LIBTOOL
|
||||
+
|
||||
+# Check for user specification of CC or CFLAGS
|
||||
if test -n "$CFLAGS" || test -n "$CC" ; then
|
||||
user_redefine_cc=yes
|
||||
fi
|
||||
|
||||
-# Check for programs
|
||||
-AC_PROG_CC
|
||||
-AC_LANG(C)
|
||||
-
|
||||
-dnl Check GMP Header
|
||||
+# Check GMP Header
|
||||
AC_MSG_CHECKING(for gmp.h)
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||
#include "gmp.h"
|
||||
@@ -105,22 +106,19 @@
|
||||
AC_MSG_ERROR([gmp.h can't be found, or is unusable.])
|
||||
])
|
||||
|
||||
-dnl Check for GMP CFLAGS in gmp.h
|
||||
+# Check for GMP CFLAGS in gmp.h
|
||||
if test -z "$user_redefine_cc" ; then
|
||||
MPC_GMP_CC_CFLAGS
|
||||
fi
|
||||
|
||||
|
||||
-dnl Configs for Windows DLLs
|
||||
+# Configs for Windows DLLs
|
||||
case $host in
|
||||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
|
||||
MPC_WINDOWS
|
||||
esac
|
||||
|
||||
|
||||
-dnl Finally set up LibTool
|
||||
-AC_PROG_LIBTOOL
|
||||
-
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h])
|
Loading…
Reference in New Issue
Block a user