mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Adding port math/p5-Math-Symbolic-Custom-CCompiler, Compile Math::Symbolic trees to C
Approved by: tobez (implicit)
This commit is contained in:
parent
58e4a7d524
commit
f26643cc57
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162405
5 changed files with 66 additions and 0 deletions
|
@ -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
|
||||
|
|
32
math/p5-Math-Symbolic-Custom-CCompiler/Makefile
Normal file
32
math/p5-Math-Symbolic-Custom-CCompiler/Makefile
Normal file
|
@ -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>
|
3
math/p5-Math-Symbolic-Custom-CCompiler/distinfo
Normal file
3
math/p5-Math-Symbolic-Custom-CCompiler/distinfo
Normal file
|
@ -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
|
21
math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr
Normal file
21
math/p5-Math-Symbolic-Custom-CCompiler/pkg-descr
Normal file
|
@ -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>
|
9
math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist
Normal file
9
math/p5-Math-Symbolic-Custom-CCompiler/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue