aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/ocamlgsl/Makefile33
-rw-r--r--math/ocamlgsl/distinfo2
-rw-r--r--math/ocamlgsl/files/patch-Makefile29
-rw-r--r--math/ocamlgsl/pkg-descr4
-rw-r--r--math/ocamlgsl/pkg-plist106
6 files changed, 175 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index db625c73a32c..cfefe0aaf5a9 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -213,6 +213,7 @@
SUBDIR += numdiff
SUBDIR += nyh-hoc
SUBDIR += ocaml-ocamlgraph
+ SUBDIR += ocamlgsl
SUBDIR += octave
SUBDIR += octave-devel
SUBDIR += octave-forge
diff --git a/math/ocamlgsl/Makefile b/math/ocamlgsl/Makefile
new file mode 100644
index 000000000000..41c08f075d4b
--- /dev/null
+++ b/math/ocamlgsl/Makefile
@@ -0,0 +1,33 @@
+# Ports collection makefile for: ocamlgsl
+# Date created: 2011/04/10
+# Whom: Klaus T. Aehlig <aehlig@linta.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ocamlgsl
+PORTVERSION= 0.6.0
+CATEGORIES= math
+MASTER_SITES= http://oandrieu.nerim.net/ocaml/gsl/
+
+MAINTAINER= aehlig@linta.de
+COMMENT= An interface to GSL for the Objective Caml langage
+
+LIB_DEPENDS= gsl:${PORTSDIR}/math/gsl
+BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk \
+ ${OCAMLC_DEPEND}
+RUN_DEPENDS= ocamlfind:${PORTSDIR}/devel/ocaml-findlib
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+INSTALL_TARGET= install-findlib
+
+USE_GMAKE= YES
+USE_GCC= 4.2+
+USE_OCAML= YES
+MAKE_ENV+= OCAMLDIR=${OCAML_LIBDIR}
+NO_OCAML_BUILDDEPENDS= yes
+USE_OCAML_LDCONFIG= yes
+
+.include <bsd.port.mk>
diff --git a/math/ocamlgsl/distinfo b/math/ocamlgsl/distinfo
new file mode 100644
index 000000000000..45a4e31ec7ba
--- /dev/null
+++ b/math/ocamlgsl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ocamlgsl-0.6.0.tar.gz) = ddb9e432dc1a431cad332a8e7e6685d2facbde2fa15ecab9315741f7d11b588c
+SIZE (ocamlgsl-0.6.0.tar.gz) = 274345
diff --git a/math/ocamlgsl/files/patch-Makefile b/math/ocamlgsl/files/patch-Makefile
new file mode 100644
index 000000000000..34ec58e1d9d6
--- /dev/null
+++ b/math/ocamlgsl/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- ./Makefile.orig 2007-04-13 20:33:21.000000000 +0100
++++ ./Makefile 2011-04-10 14:48:00.000000000 +0100
+@@ -91,15 +91,18 @@
+ mlgsl_sf.c \
+ $(AUTO_SRC)
+
+-ifeq ($(OCAML_BACKEND),cl)
+-include msvc.mak
+-else
+-ifeq ($(OCAML_BACKEND),gcc)
++# The following checks will fail in the presence of ccache,
++# but we know that we're using gcc
++#
++# ifeq ($(OCAML_BACKEND),cl)
++# include msvc.mak
++# else
++# ifeq ($(OCAML_BACKEND),gcc)
+ include gcc.mak
+-else
+-include mingw.mak
+-endif
+-endif
++# else
++# include mingw.mak
++# endif
++# endif
+
+ CMI := $(patsubst %.mli,%.cmi,$(filter %.mli,$(SRC)))
+ MLOBJ := $(patsubst %.ml,%.cmo,$(filter %.ml,$(SRC)))
diff --git a/math/ocamlgsl/pkg-descr b/math/ocamlgsl/pkg-descr
new file mode 100644
index 000000000000..51820b0d6f02
--- /dev/null
+++ b/math/ocamlgsl/pkg-descr
@@ -0,0 +1,4 @@
+ocamlgsl is an interface to GSL (GNU scientific library), for the
+Objective Caml langage.
+
+WWW: http://oandrieu.nerim.net/ocaml/gsl/
diff --git a/math/ocamlgsl/pkg-plist b/math/ocamlgsl/pkg-plist
new file mode 100644
index 000000000000..ed3fb0f3f25b
--- /dev/null
+++ b/math/ocamlgsl/pkg-plist
@@ -0,0 +1,106 @@
+%%OCAML_SITELIBDIR%%/gsl/META
+%%OCAML_SITELIBDIR%%/gsl/dllmlgsl.so
+%%OCAML_SITELIBDIR%%/gsl/gsl.a
+%%OCAML_SITELIBDIR%%/gsl/gsl.cma
+%%OCAML_SITELIBDIR%%/gsl/gsl.cmxa
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas_flat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas_flat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas_gen.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_blas_gen.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_bspline.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_bspline.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_cdf.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_cdf.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_cheb.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_cheb.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_complex.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_complex.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_const.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_const.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_diff.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_diff.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_eigen.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_eigen.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_error.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_error.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_fft.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_fft.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_fit.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_fit.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_fun.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_fun.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_histo.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_histo.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_ieee.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_ieee.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_integration.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_integration.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_interp.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_interp.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_linalg.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_linalg.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_math.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_math.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_complex.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_complex.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_complex_flat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_complex_flat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_flat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_matrix_flat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_min.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_min.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_misc.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_monte.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_monte.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_multifit.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_multifit.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_multifit_nlin.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_multifit_nlin.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_multimin.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_multimin.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_multiroot.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_multiroot.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_odeiv.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_odeiv.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_permut.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_permut.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_poly.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_poly.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_qrng.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_qrng.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_randist.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_randist.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_rng.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_rng.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_root.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_root.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_sf.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_sf.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_siman.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_siman.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_sort.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_sort.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_stats.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_stats.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_sum.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_sum.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_vectmat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_vectmat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_complex.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_complex.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_complex_flat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_complex_flat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_flat.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_vector_flat.cmx
+%%OCAML_SITELIBDIR%%/gsl/gsl_wavelet.cmi
+%%OCAML_SITELIBDIR%%/gsl/gsl_wavelet.cmx
+%%OCAML_SITELIBDIR%%/gsl/libmlgsl.a
+@dirrm %%OCAML_SITELIBDIR%%/gsl
+@dirrmtry %%OCAML_SITELIBDIR%%
+@dirrmtry lib/ocaml