Skip to content

Commit

Permalink
math/calcium: New port: Exact real and complex numbers in C
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Jun 29, 2022
1 parent d61cc94 commit 1a97258
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
SUBDIR += cadical
SUBDIR += cado-nfs
SUBDIR += calc
SUBDIR += calcium
SUBDIR += calcoo
SUBDIR += cantor
SUBDIR += casadi
Expand Down
30 changes: 30 additions & 0 deletions math/calcium/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
PORTNAME= calcium
DISTVERSION= 0.4.1
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
COMMENT= Exact real and complex numbers in C

LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libantic.so:math/antic \
libarb.so:math/arb \
libflint.so:math/flint2 \
libgmp.so:math/gmp \
libmpfr.so:math/mpfr

USES= gmake
USE_LDCONFIG= yes

USE_GITHUB= yes
GH_ACCOUNT= fredrik-johansson

GNU_CONFIGURE= yes

TEST_TARGET= tests # only builds tests and doesn't run them, see https://github.com/fredrik-johansson/calcium/issues/41

post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcalcium.so.${DISTVERSION}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions math/calcium/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1656446777
SHA256 (fredrik-johansson-calcium-0.4.1_GH0.tar.gz) = 5fbc997e8c9e76c88cd85c12a86f0f14c4ebe602e9f7f11e11f0ca1f89c5d81c
SIZE (fredrik-johansson-calcium-0.4.1_GH0.tar.gz) = 435261
6 changes: 6 additions & 0 deletions math/calcium/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Calcium is a C library for exact computation with real and complex
numbers. It is capable of rigorously deciding the truth of any
constant relation involving algebraic numbers and many relations
involving transcendental number.

WWW: https://fredrikj.net/calcium/
16 changes: 16 additions & 0 deletions math/calcium/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include/calcium/ca.h
include/calcium/ca_ext.h
include/calcium/ca_field.h
include/calcium/ca_mat.h
include/calcium/ca_poly.h
include/calcium/ca_vec.h
include/calcium/calcium.h
include/calcium/fexpr.h
include/calcium/fexpr_builtin.h
include/calcium/fmpz_mpoly_q.h
include/calcium/qqbar.h
include/calcium/utils_flint.h
lib/libcalcium.a
lib/libcalcium.so
lib/libcalcium.so.0
lib/libcalcium.so.0.4.1

0 comments on commit 1a97258

Please sign in to comment.