aboutsummaryrefslogtreecommitdiffstats
path: root/math/fflas-ffpack
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2011-10-17 00:10:58 +0800
committerbf <bf@FreeBSD.org>2011-10-17 00:10:58 +0800
commitba4631ba137aa9621be1872c9d300fb1b569ea3d (patch)
tree8b66db054f58aa7b7c63f3fcd5df3e20810d301f /math/fflas-ffpack
parenta12ada65cb750d10941efb44351b6bcd763e8918 (diff)
downloadfreebsd-ports-gnome-ba4631ba137aa9621be1872c9d300fb1b569ea3d.tar.gz
freebsd-ports-gnome-ba4631ba137aa9621be1872c9d300fb1b569ea3d.tar.zst
freebsd-ports-gnome-ba4631ba137aa9621be1872c9d300fb1b569ea3d.zip
Add fflas-ffpack 1.4.3, a library for dense linear algebra over
word-size finite fields.
Diffstat (limited to 'math/fflas-ffpack')
-rw-r--r--math/fflas-ffpack/Makefile116
-rw-r--r--math/fflas-ffpack/distinfo2
-rw-r--r--math/fflas-ffpack/pkg-descr4
-rw-r--r--math/fflas-ffpack/pkg-plist158
4 files changed, 280 insertions, 0 deletions
diff --git a/math/fflas-ffpack/Makefile b/math/fflas-ffpack/Makefile
new file mode 100644
index 000000000000..de8e46afcfc8
--- /dev/null
+++ b/math/fflas-ffpack/Makefile
@@ -0,0 +1,116 @@
+# New ports collection makefile for: fflas-ffpack
+# Date created: 5 Oct 2011
+# Whom: b.f. <bf@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fflas-ffpack
+PORTVERSION= 1.4.3
+CATEGORIES= math
+MASTER_SITES= http://linalg.org/ LOCAL/bf
+
+MAINTAINER= bf@FreeBSD.org
+COMMENT= A library for dense linear algebra over word-size finite fields
+
+LICENSE= LGPL20
+
+LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS = --with-gmp="${LOCALBASE}"
+
+.if defined(PACKAGE_BUILDING)
+OPTIMIZATION_DEFAULT= off
+.else
+OPTIMIZATION_DEFAULT= on
+.endif
+
+OPTIONS= DOCS "build HTML documents (requires doxygen)" off \
+ OPTIMIZATION "optimize for the build machine" ${OPTIMIZATION_DEFAULT}
+
+.include <bsd.port.pre.mk>
+
+.if ${LOCALBASE} == "/usr/local"
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.endif
+
+.if defined(MAINTAINER_MODE)
+CONFIGURE_ARGS+= --with-givaro="${LOCALBASE}"
+LIB_DEPENDS+= givaro.3:${PORTSDIR}/math/givaro
+.else
+CONFIGURE_ARGS+= --with-givaro=no
+.endif
+
+#a C interface to BLAS is needed
+WITH_BLAS?= gsl
+
+.if ${WITH_BLAS} == "gotoblas"
+CONFIGURE_ARGS+= --with-gotoblas2="${LOCALBASE}" --with-lapack=blas
+LIB_DEPENDS+= goto2p:${PORTSDIR}/math/gotoblas
+USE_FORTRAN= yes
+.elif ${WITH_BLAS} == "atlas"
+CONFIGURE_ARGS+= --with-cblas="${LOCALBASE}" --with-lapack=blas
+LIB_DEPENDS+= cblas.2:${PORTSDIR}/math/atlas
+USE_FORTRAN= yes
+.elif ${WITH_BLAS} == "gsl"
+CONFIGURE_ARGS+= --with-gsl="${LOCALBASE}"
+LIB_DEPENDS+= gslcblas.0:${PORTSDIR}/math/gsl
+.else
+IGNORE = unknown value of WITH_BLAS: ${WITH_BLAS}
+.endif
+
+.if defined(WITH_DOCS) && !defined(NOPORTDOCS)
+BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen
+CONFIGURE_ARGS+= --enable-doc --with-docdir="${DOCSDIR}"
+.elifndef(NOPORTDOCS)
+NOPORTDOCS= yes
+.endif
+
+.if defined(WITH_OPTIMIZATION)
+MANUAL_PACKAGE_BUILD= : optimizes for the build machine
+.else
+CONFIGURE_ARGS+= --disable-optimization
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/{s/-O2 //;s/-pipe//;}' \
+ -e '/DEBUG_CFLAGS=.*-DNDEBUG/s/$${DEBUG_CFLAGS} //' \
+ -e '/^WARN_CFLAGS="-Wall"/d' \
+ -e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \
+ -e 's/\(-lgoto2\)\( -pthread\)\{0,1\}/\1p/g' -e 's/libgoto2/&p/g' \
+ -e '/"GOTO2")/{N; s/LAPACK_LIBS=""/LAPACK_LIBS="-lgoto2p"/; }' \
+ -e 's/liblapack_atlas/libalapack/g' \
+ -e 's/$${LAPACK_LIBS} -llapack_atlas/-lalapack -lf77blas -lcblas/g' \
+ ${WRKSRC}/configure
+#Unfortunately, we must leave stdint.h --> cstdint unresolved when not using
+#lang/gcc4*, or switch to TR1 headers, due to our aging base system libstdc++
+ ${REINPLACE_CMD} -E \
+ -e 's/(#include[[:blank:]]+<)(std)(arg|def|io|lib)(\.h>)/\1c\2\3>/' \
+ ${WRKSRC}/fflas-ffpack/field/nonzero-randiter.h \
+ ${WRKSRC}/fflas-ffpack/field/modular-randiter.h \
+ ${WRKSRC}/fflas-ffpack/utils/args-parser.h \
+ ${WRKSRC}/fflas-ffpack/utils/debug.h \
+ ${WRKSRC}/fflas-ffpack/utils/Matio.h \
+ ${WRKSRC}/utils/args-parser.h \
+ ${WRKSRC}/utils/debug.h \
+ ${WRKSRC}/utils/Matio.h
+.if defined(WITH_DOCS) && !defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/doc/Makefile.in
+.endif
+
+.if defined(WITH_DOCS) && !defined(NOPORTDOCS)
+post-install:
+ @${TOUCH} ${DOCSDIR}/fflas-ffpack-dev-html/.keep-me
+
+.endif
+
+.if defined(MAINTAINER_MODE)
+check regression-test test: build
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
+ ${MAKE_ARGS} check
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/fflas-ffpack/distinfo b/math/fflas-ffpack/distinfo
new file mode 100644
index 000000000000..0fb6e30477e1
--- /dev/null
+++ b/math/fflas-ffpack/distinfo
@@ -0,0 +1,2 @@
+SHA256 (fflas-ffpack-1.4.3.tar.gz) = 1f6a8f0b7422819de0d5fd80895d410f18e374c41e9d3e699c538ac3af4a7366
+SIZE (fflas-ffpack-1.4.3.tar.gz) = 525446
diff --git a/math/fflas-ffpack/pkg-descr b/math/fflas-ffpack/pkg-descr
new file mode 100644
index 000000000000..06ebd9cce17a
--- /dev/null
+++ b/math/fflas-ffpack/pkg-descr
@@ -0,0 +1,4 @@
+The FFLAS-FFPACK library provides dense linear algebra routines
+over word-size prime finite fields.
+
+WWW: http://linalg.org/projects/fflas-ffpack
diff --git a/math/fflas-ffpack/pkg-plist b/math/fflas-ffpack/pkg-plist
new file mode 100644
index 000000000000..c695b37ffc3c
--- /dev/null
+++ b/math/fflas-ffpack/pkg-plist
@@ -0,0 +1,158 @@
+bin/fflas-ffpack-config
+include/fflas-ffpack/config-blas.h
+include/fflas-ffpack/fflas-ffpack-config.h
+include/fflas-ffpack/fflas-ffpack.h
+include/fflas-ffpack/fflas/fflas.h
+include/fflas-ffpack/fflas/fflas_bounds.inl
+include/fflas-ffpack/fflas/fflas_faddm.inl
+include/fflas-ffpack/fflas/fflas_faddm_src.inl
+include/fflas-ffpack/fflas/fflas_faddmin_src.inl
+include/fflas-ffpack/fflas/fflas_faxpy.inl
+include/fflas-ffpack/fflas/fflas_fcopy.inl
+include/fflas-ffpack/fflas/fflas_fdot.inl
+include/fflas-ffpack/fflas/fflas_fgemm.inl
+include/fflas-ffpack/fflas/fflas_fgemv.inl
+include/fflas-ffpack/fflas/fflas_fger.inl
+include/fflas-ffpack/fflas/fflas_ftrmm.inl
+include/fflas-ffpack/fflas/fflas_ftrmm_src.inl
+include/fflas-ffpack/fflas/fflas_ftrsm.inl
+include/fflas-ffpack/fflas/fflas_ftrsm_src.inl
+include/fflas-ffpack/fflas/fflas_ftrsv.inl
+include/fflas-ffpack/ffpack/ffpack.h
+include/fflas-ffpack/ffpack/ffpack_charpoly.inl
+include/fflas-ffpack/ffpack/ffpack_charpoly_danilevski.inl
+include/fflas-ffpack/ffpack/ffpack_charpoly_kgfast.inl
+include/fflas-ffpack/ffpack/ffpack_charpoly_kgfastgeneralized.inl
+include/fflas-ffpack/ffpack/ffpack_charpoly_kglu.inl
+include/fflas-ffpack/ffpack/ffpack_echelonforms.inl
+include/fflas-ffpack/ffpack/ffpack_frobenius.inl
+include/fflas-ffpack/ffpack/ffpack_krylovelim.inl
+include/fflas-ffpack/ffpack/ffpack_ludivine.inl
+include/fflas-ffpack/ffpack/ffpack_minpoly.inl
+include/fflas-ffpack/ffpack/ffpack_minpoly_construct.inl
+include/fflas-ffpack/field/field-general.h
+include/fflas-ffpack/field/modular-balanced-double.h
+include/fflas-ffpack/field/modular-balanced-float.h
+include/fflas-ffpack/field/modular-balanced-int32.h
+include/fflas-ffpack/field/modular-balanced-int64.h
+include/fflas-ffpack/field/modular-balanced.h
+include/fflas-ffpack/field/modular-double.h
+include/fflas-ffpack/field/modular-float.h
+include/fflas-ffpack/field/modular-int32.h
+include/fflas-ffpack/field/modular-int64.h
+include/fflas-ffpack/field/modular-positive.h
+include/fflas-ffpack/field/modular-randiter.h
+include/fflas-ffpack/field/nonzero-randiter.h
+include/fflas-ffpack/field/unparametric.h
+include/fflas-ffpack/utils/Matio.h
+include/fflas-ffpack/utils/args-parser.h
+include/fflas-ffpack/utils/debug.h
+include/fflas-ffpack/utils/print-utils.h
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-dev-html/.keep-me
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/annotated.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/bc_s.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/bib.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/bug.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/class_f_f_p_a_c_k_1_1_failure.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/class_f_f_p_a_c_k_1_1_modular_3_01int32__t_01_4.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/class_f_f_p_a_c_k_1_1_modular_3_01int64__t_01_4.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/class_f_f_p_a_c_k_1_1_modular_balanced_3_01double_01_4.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/class_f_f_p_a_c_k_1_1_nonzero_rand_iter.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/classes.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/closed.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_33e5bcb4d579cc5c5b77bb8ff13b65ed.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_4bcbd423084e4fe4bc28865fdb98ad74.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_56573ed5fc98f581bcddf39cbf05a95b.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_841efccba690dc2e14ababdcef5f15a8.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_ba9c4b9149076dceb852a22c07ffc5d5.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_d3f38acd236d777c1fd62044ca7860ae.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dir_fd5b657c4b10acf6f8abc66da0c452d9.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/dirs.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/doxygen.css
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/doxygen.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/fflas-ffpack_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/fflas_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/ffpack_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/files.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_0.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_1.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_10.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_11.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_12.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_13.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_14.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_15.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_16.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_17.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_18.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_19.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_2.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_20.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_21.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_22.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_23.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_24.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_25.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_26.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_27.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_28.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_29.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_3.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_30.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_31.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_32.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_33.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_34.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_35.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_36.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_37.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_38.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_4.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_5.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_6.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_7.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_8.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/form_9.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/formula.repository
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/functions.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/functions_func.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/group___unparametric_field.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/inst.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modular-balanced-double_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modular-balanced-float_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modular-balanced-int32_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modular-balanced-int64_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modular-int64_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/modules.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespace_f_f_l_a_s.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespace_f_f_p_a_c_k.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespacemembers.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespacemembers_enum.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespacemembers_eval.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespacemembers_func.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespaces.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/namespacestd.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/nav_f.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/nav_h.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/open.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/pages.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/tab_a.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/tab_b.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/tab_h.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/tab_s.png
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/tabs.css
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/test-utils_8h.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack-html/todo.html
+%%PORTDOCS%%%%DOCSDIR%%/fflas-ffpack.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/fflas-ffpack-dev-html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/fflas-ffpack-html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm include/fflas-ffpack/utils
+@dirrm include/fflas-ffpack/field
+@dirrm include/fflas-ffpack/ffpack
+@dirrm include/fflas-ffpack/fflas
+@dirrm include/fflas-ffpack