Date: Wed, 7 Mar 2001 16:35:51 +0000 (GMT) From: George Reid <greid@dogma.freebsd-uk.eu.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/25589: New port: ccmath: A mathematics library with many different functions Message-ID: <Pine.BSF.4.21.0103071634560.8537-100000@sobek.openirc.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 25589 >Category: ports >Synopsis: New port: ccmath: A mathematics library with many different functions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 08:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: George Reid >Release: FreeBSD 5.0-CURRENT i386 >Organization: FreeBSD UKUG >Environment: n/a >Description: CCMATH is a mathematics library, coded in C, that contains functions for linear algebra, numerical integration, geometry and trigonometry, curve fitting, roots and optimization, Fourier analysis, simulation generation, statistics, special functions, sorts and searches, time series models, complex arithmetic, and high precision computations. - George Reid greid@ukug.uk.freebsd.org >How-To-Repeat: n/a >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ccmath # ccmath/Makefile # ccmath/distinfo # ccmath/pkg-descr # ccmath/pkg-comment # ccmath/files # ccmath/files/patch-aa # ccmath/files/patch-ab # ccmath/files/patch-ac # ccmath/pkg-plist # echo c - ccmath mkdir -p ccmath > /dev/null 2>&1 echo x - ccmath/Makefile sed 's/^X//' >ccmath/Makefile << 'END-of-ccmath/Makefile' X# New ports collection makefile for: ccmath X# Date created: 07 March 2001 X# Whom: George Reid <greid@ukug.uk.freebsd.org> X# X# $FreeBSD$ X# X XPORTNAME= ccmath XPORTVERSION= 2.2.0 XCATEGORIES= math XMASTER_SITES= ${MASTER_SITE_SUNSITE} XMASTER_SITE_SUBDIR= libs X XMAINTAINER= greid@ukug.uk.freebsd.org X XINSTALLS_SHLIB= yes X XPORTDOCS= C00-intro C01-matrix C02-intg C03-geom C04-cfit C05-roots \ X C06-fft C07-simu C08-statf C09-sfunc C10-sort C11-tseries \ X C12-complex C13-xarm C14-util X Xpost-configure: X.if (${MACHINE_ARCH} != "i386") X (cd ${WRKSRC} && ${SH} non_intel.sh) X.endif X Xdo-build: X (cd ${WRKSRC} && ${SH} makelibs.sh) X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/ccmath.h ${PREFIX}/include X ${INSTALL_DATA} ${WRKSRC}/tmp/libccm.a ${PREFIX}/lib X ${INSTALL_PROGRAM} ${WRKSRC}/tmp/libccm.so ${PREFIX}/lib X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/ccmath X.for D in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/manual/$D ${PREFIX}/share/doc/ccmath X.endfor X.endif X X.include <bsd.port.mk> END-of-ccmath/Makefile echo x - ccmath/distinfo sed 's/^X//' >ccmath/distinfo << 'END-of-ccmath/distinfo' XMD5 (ccmath-2.2.0.tar.gz) = 96d9b148d4dc06dba82441006b39a3d3 END-of-ccmath/distinfo echo x - ccmath/pkg-descr sed 's/^X//' >ccmath/pkg-descr << 'END-of-ccmath/pkg-descr' XCCMATH is a mathematics library, coded in C, that contains functions Xfor linear algebra, numerical integration, geometry and trigonometry, Xcurve fitting, roots and optimization, Fourier analysis, simulation Xgeneration, statistics, special functions, sorts and searches, time Xseries models, complex arithmetic, and high precision computations. X X- George Reid Xgreid@ukug.uk.freebsd.org END-of-ccmath/pkg-descr echo x - ccmath/pkg-comment sed 's/^X//' >ccmath/pkg-comment << 'END-of-ccmath/pkg-comment' XA mathematics library with many different functions END-of-ccmath/pkg-comment echo c - ccmath/files mkdir -p ccmath/files > /dev/null 2>&1 echo x - ccmath/files/patch-aa sed 's/^X//' >ccmath/files/patch-aa << 'END-of-ccmath/files/patch-aa' X--- non_intel.sh.orig Wed Mar 7 16:13:59 2001 X+++ non_intel.sh Wed Mar 7 16:14:20 2001 X@@ -13,9 +13,5 @@ X rm $MDR/simu/*.s X echo " .s code replaced in simu" X echo X-echo " bigendian byte order (y/n)" X-read F X-if [ $F = "y" ] X- then cp $MDR/xarm/supp/big-end/*.c $MDR/xarm X- echo " bigend code installed in xarm" X-fi X+cp $MDR/xarm/supp/big-end/*.c $MDR/xarm X+echo " bigend code installed in xarm" END-of-ccmath/files/patch-aa echo x - ccmath/files/patch-ab sed 's/^X//' >ccmath/files/patch-ab << 'END-of-ccmath/files/patch-ab' X--- tseries/sany.c.orig Wed Mar 7 16:20:33 2001 X+++ tseries/sany.c Wed Mar 7 16:20:40 2001 X@@ -5,7 +5,7 @@ X * public license (LGPL). ( See the lgpl.license file for details.) X * ------------------------------------------------------------------------ X */ X-#include "ccmath.h" X+#include "../ccmath.h" X int sany(double *x,int n,double *pm,double *cd,double *ci, X int nd,int ms,int lag) X { struct complex *pc,*p,**qc,**q; END-of-ccmath/files/patch-ab echo x - ccmath/files/patch-ac sed 's/^X//' >ccmath/files/patch-ac << 'END-of-ccmath/files/patch-ac' X--- makelibs.sh.orig Wed Mar 7 16:18:01 2001 X+++ makelibs.sh Wed Mar 7 16:18:36 2001 X@@ -9,23 +9,19 @@ X LST="cfit complex fft geom intg matrix roots sfunc simu sort statf tseries util xarm" X MDR=`pwd` X LSOD=$MDR/tmp X-echo "Intel platform ? (y/n)" X-read F X for dr in $LST X do X cd $MDR/$dr X echo `pwd` X- cc -c -O3 *.c X+ cc -c $CFLAGS *.c X mv *.o $LSOD X done X-if [ $F = "y" ] X- then cd $MDR/matrix X- cc -c -O3 solv.s X+ cd $MDR/matrix X+ cc -c $CFLAGS solv.s X mv *.o $LSOD X cd $MDR/simu X- cc -c -O3 *.s X+ cc -c $CFLAGS *.s X mv *.o $LSOD X-fi X cd $LSOD X ar r libccm.a *.o X ld -shared -o libccm.so *.o END-of-ccmath/files/patch-ac echo x - ccmath/pkg-plist sed 's/^X//' >ccmath/pkg-plist << 'END-of-ccmath/pkg-plist' Xinclude/ccmath.h Xlib/libccm.a Xlib/libccm.so X%%PORTDOCS%%share/doc/ccmath/C00-intro X%%PORTDOCS%%share/doc/ccmath/C01-matrix X%%PORTDOCS%%share/doc/ccmath/C02-intg X%%PORTDOCS%%share/doc/ccmath/C03-geom X%%PORTDOCS%%share/doc/ccmath/C04-cfit X%%PORTDOCS%%share/doc/ccmath/C05-roots X%%PORTDOCS%%share/doc/ccmath/C06-fft X%%PORTDOCS%%share/doc/ccmath/C07-simu X%%PORTDOCS%%share/doc/ccmath/C08-statf X%%PORTDOCS%%share/doc/ccmath/C09-sfunc X%%PORTDOCS%%share/doc/ccmath/C10-sort X%%PORTDOCS%%share/doc/ccmath/C11-tseries X%%PORTDOCS%%share/doc/ccmath/C12-complex X%%PORTDOCS%%share/doc/ccmath/C13-xarm X%%PORTDOCS%%share/doc/ccmath/C14-util X%%PORTDOCS%%@dirrm share/doc/ccmath END-of-ccmath/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103071634560.8537-100000>