aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-05-15 06:46:27 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-05-15 06:46:27 +0000
commitf26643cc57a640eb1f3deb37103ae0c33451c78d (patch)
tree61e9754904050b93d65f49cd7a1869553a5f8b2f /math
parent58e4a7d5240713b395997c93f00af25423ee9be1 (diff)
downloadports-f26643cc57a640eb1f3deb37103ae0c33451c78d.tar.gz
ports-f26643cc57a640eb1f3deb37103ae0c33451c78d.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/p5-Math-Symbolic-Custom-CCompiler/Makefile32
-rw-r--r--math/p5-Math-Symbolic-Custom-CCompiler/distinfo3
-rw-r--r--math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr21
-rw-r--r--math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist9
5 files changed, 66 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 860cfb26c1f9..271fea7f1209 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -190,6 +190,7 @@
SUBDIR += p5-Math-SimpleVariable
SUBDIR += p5-Math-Spline
SUBDIR += p5-Math-Symbolic
+ SUBDIR += p5-Math-Symbolic-Custom-CCompiler
SUBDIR += p5-Math-Symbolic-Custom-Contains
SUBDIR += p5-Math-SymbolicX-Inline
SUBDIR += p5-Math-TrulyRandom
diff --git a/math/p5-Math-Symbolic-Custom-CCompiler/Makefile b/math/p5-Math-Symbolic-Custom-CCompiler/Makefile
new file mode 100644
index 000000000000..49ca38e64dd4
--- /dev/null
+++ b/math/p5-Math-Symbolic-Custom-CCompiler/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: Math-Symbolic-Custom-CCompiler
+# Date created: 15 May 2006
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Math-Symbolic-Custom-CCompiler
+PORTVERSION= 1.00
+CATEGORIES= math perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Math
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= Compile Math::Symbolic trees to C
+
+BUILD_DEPENDS= ${SITE_PERL}/Math/Symbolic.pm:${PORTSDIR}/math/p5-Math-Symbolic \
+ ${SITE_PERL}/Inline/C.pm:${PORTSDIR}/devel/p5-Inline
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+MAN3= Math::Symbolic::Custom::CCompiler.3
+
+PERL_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/p5-Math-Symbolic-Custom-CCompiler/distinfo b/math/p5-Math-Symbolic-Custom-CCompiler/distinfo
new file mode 100644
index 000000000000..910d517b2d96
--- /dev/null
+++ b/math/p5-Math-Symbolic-Custom-CCompiler/distinfo
@@ -0,0 +1,3 @@
+MD5 (Math-Symbolic-Custom-CCompiler-1.00.tar.gz) = 11d843ad737c4e5180cf258e15899226
+SHA256 (Math-Symbolic-Custom-CCompiler-1.00.tar.gz) = fdf97bbc9aff43d44a65cd3988b53a38c19f5c30e0061f84a4912f7271eaf9dc
+SIZE (Math-Symbolic-Custom-CCompiler-1.00.tar.gz) = 4829
diff --git a/math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr b/math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr
new file mode 100644
index 000000000000..ed5f1556d37f
--- /dev/null
+++ b/math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr
@@ -0,0 +1,21 @@
+This module extends the functionality of Math::Symbolic by offering
+facilities to compile symbolic math trees (formulas) to C code. It also
+uses Inline::C to compile and link the generated C code at run-time, thus
+allowing the user to do symbolic calculations in Perl with Math::Symbolic
+and then use the results in a fast numeric environment.
+
+This software generates code. Code generators are difficult to test, but
+the first release of the module is now 1.5 years old and I haven't
+received any bug reports, so I consider it somewhat stable now.
+
+Please read the manpage of Math::Symbolic::Compiler which comes with the
+Math::Symbolic distribution. Most of the gotchas involved with compiling
+the functions to Perl subroutines also apply to this module which compiles
+to C instead.
+
+Alternatively, you can use the module not for faster calculations from
+your Perl program, but to generate C code for you. I have used it to
+generate an implementation for (many!) Zernike Polynomials for work in C.
+
+WWW: http://search.cpan.org/dist/Math-Symbolic-Custom-CCompiler
+Author: Steffen Mueller <symbolic-module@steffen-mueller.net>
diff --git a/math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist b/math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist
new file mode 100644
index 000000000000..21ac48b7931f
--- /dev/null
+++ b/math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Math/Symbolic/Custom/CCompiler.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Symbolic/Custom/CCompiler/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Symbolic/Custom/CCompiler
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Symbolic/Custom
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Symbolic
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math
+@dirrmtry %%SITE_PERL%%/Math/Symbolic/Custom
+@dirrmtry %%SITE_PERL%%/Math/Symbolic
+@dirrmtry %%SITE_PERL%%/Math