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.

Imported with a PKGNAME of libmpc so as not to conflict with audio/mpc.
Incorporating changes from alek@
This commit is contained in:
jsg 2010-04-02 20:33:21 +00:00
parent dc0e69d86a
commit d31dee522a
5 changed files with 47 additions and 0 deletions

31
devel/libmpc/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/04/02 20:33:21 jsg Exp $
COMMENT= complex numbers math library
V= 0.8.1
DISTNAME= mpc-${V}
PKGNAME= libmpc-${V}
SHARED_LIBS += mpc 0.0
CATEGORIES= devel math
HOMEPAGE= http://www.multiprecision.org
MASTER_SITES= ${HOMEPAGE}/mpc/download/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= mpfr.>=0.2::devel/mpfr \
gmp.>=8.0::devel/gmp
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-mpfr=${LOCALBASE} \
--with-gmp=${LOCALBASE}
USE_LIBTOOL= Yes
USE_GMAKE= Yes
.include <bsd.port.mk>

5
devel/libmpc/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (mpc-0.8.1.tar.gz) = WzSqgE1RTMKVQUqWOu22vw==
RMD160 (mpc-0.8.1.tar.gz) = 0yl5lKN5gN1TfkbZTrvL7aNqd10=
SHA1 (mpc-0.8.1.tar.gz) = XvA8p67hNP59/stsnQSHmfCBAng=
SHA256 (mpc-0.8.1.tar.gz) = 5mRgN1clH9ijUoSCdkl6THm3+LIf2K7dXMBZijj+4+Q=
SIZE (mpc-0.8.1.tar.gz) = 544950

3
devel/libmpc/pkg/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.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/04/02 20:33:21 jsg Exp $
@lib lib/libmpc.so.${LIBmpc_VERSION}

6
devel/libmpc/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/04/02 20:33:21 jsg Exp $
%%SHARED%%
include/mpc.h
@info info/mpc.info
lib/libmpc.a
lib/libmpc.la