Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
math/mpcomplex/DESCR Normal file
View File

@@ -0,0 +1,3 @@
MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result.
It is built upon and follows the same principles as MPFR.

25
math/mpcomplex/Makefile Normal file
View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.6 2012/09/13 17:34:22 asau Exp $
DISTNAME= mpc-1.0.1
PKGNAME= mpcomplex-1.0.1
CATEGORIES= math
MASTER_SITES= http://www.multiprecision.org/mpc/download/
MAINTAINER= MarkoSchuetz@web.de
HOMEPAGE= http://www.multiprecision.org/mpc/
COMMENT= Multiprecision complex arithmetic library
LICENSE= gnu-lgpl-v3
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
INFO_FILES= yes
# The test that checks version match between binary library and
# headers MIGHT NEED THE PACKAGE INSTALLED. Might fail otherwise.
TEST_TARGET= check
BUILDLINK_API_DEPENDS.gmp+= gmp>=4.3.2
.include "../../devel/gmp/buildlink3.mk"
BUILDLINK_API_DEPENDS.mpfr+= mpfr>=2.4.2
.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
math/mpcomplex/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/07/27 17:09:45 asau Exp $
include/mpc.h
lib/libmpc.la
info/mpc.info

View File

@@ -0,0 +1,17 @@
# $NetBSD: buildlink3.mk,v 1.2 2011/09/14 17:14:09 hans Exp $
BUILDLINK_TREE+= mpcomplex
.if !defined(MPCOMPLEX_BUILDLINK3_MK)
MPCOMPLEX_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.mpcomplex+= mpcomplex>=0.8.2
BUILDLINK_PKGSRCDIR.mpcomplex?= ../../math/mpcomplex
BUILDLINK_API_DEPENDS.gmp+= gmp>=4.3.2
.include "../../devel/gmp/buildlink3.mk"
BUILDLINK_API_DEPENDS.mpfr+= mpfr>=2.4.2
.include "../../math/mpfr/buildlink3.mk"
.endif # MPCOMPLEX_BUILDLINK3_MK
BUILDLINK_TREE+= -mpcomplex

13
math/mpcomplex/builtin.mk Normal file
View File

@@ -0,0 +1,13 @@
# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $
BUILTIN_PKG:= mpcomplex
PKGCONFIG_FILE.mpcomplex= /usr/include/mpc.h
PKGCONFIG_BASE.mpcomplex= /usr
BUILTIN_VERSION_SCRIPT.mpcomplex= ${AWK} \
'/\#define[ \t]*MPC_VERSION_STRING[ \t]/ { \
v = substr($$3, 2, length($$3)-2); } \
END { print v; }'
.include "../../mk/buildlink3/pkgconfig-builtin.mk"

6
math/mpcomplex/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.5 2012/09/13 17:34:22 asau Exp $
SHA1 (mpc-1.0.1.tar.gz) = 8c7e19ad0dd9b3b5cc652273403423d6cf0c5edf
RMD160 (mpc-1.0.1.tar.gz) = 2df950430c42b9be6f12fb02fa456097ad58f006
Size (mpc-1.0.1.tar.gz) = 624125 bytes
SHA1 (patch-src_get.c) = 25495981765971c031b5a92dce098a44e53413c8

12
math/mpcomplex/inplace.mk Normal file
View File

@@ -0,0 +1,12 @@
# $NetBSD: inplace.mk,v 1.2 2013/04/08 11:17:16 rodent Exp $
#
# Include this file to extract math/mpcomplex source into the WRKSRC of
# another package. This is to be used by GCC packages to avoid the numerous
# dependencies math/mpcomplex has.
post-extract: extract-inplace-mpcomplex
extract-inplace-mpcomplex:
(cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-src_get.c,v 1.2 2012/08/05 18:24:56 marino Exp $
Work around bug in SunOS complex.h to make this build with Sun's gcc
--- src/get_x.c.orig 2011-11-04 18:20:19.000000000 +0000
+++ src/get_x.c
@@ -35,6 +35,13 @@ along with this program. If not, see htt
#include "mpc-impl.h"
#ifdef HAVE_COMPLEX_H
+
+#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I)
+#undef I
+#define I (__extension__ 1.0iF)
+
+#endif
+
double _Complex
mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) {
return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd))