mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add new port Asir.
The system Risa/Asir is a general computer algebra system. It performs arithmetics in various rings and fields, factorization, and Groebner basis computations. It can call outer modules complient to the OpenXM protocols. PR: ports/30158 Submitted by: Saito Tomokatsu <saito@asir.org>
This commit is contained in:
parent
cc46bdc064
commit
c7d20b1d74
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47162
@ -10,6 +10,7 @@
|
||||
SUBDIR += abs
|
||||
SUBDIR += add
|
||||
SUBDIR += apc
|
||||
SUBDIR += asir2000
|
||||
SUBDIR += blas
|
||||
SUBDIR += calc
|
||||
SUBDIR += calctool
|
||||
|
48
math/asir2000/Makefile
Normal file
48
math/asir2000/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# New ports collection makefile for: asir
|
||||
# Date created: 30 Aug 2001
|
||||
# Whom: Tomokatsu SAITO <saito@asir.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= asir
|
||||
PORTVERSION= 20010830
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= ftp://ftp.asir.org/pub/asir/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASIR_DOC}
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= saito@asir.org
|
||||
|
||||
LIB_DEPENDS= pari.1:${PORTSDIR}/math/pari \
|
||||
lapack.3:${PORTSDIR}/math/lapack
|
||||
|
||||
WRKSRC= ${WRKDIR}/asir2000
|
||||
PREFIX?= ${LOCALBASE}
|
||||
USE_IMAKE= YES
|
||||
HAS_CONFIGURE= YES
|
||||
CONFIGURE_ARGS= -oxhome ${PREFIX} -plot -pari -fep -interval -lapack
|
||||
|
||||
ASIR_DOC= asirdoc-${PORTVERSION}.tar.gz
|
||||
LIB_DATA= alpi bfct bgk const cyclic defs.h dfff dmul fctrdata fctrtest \
|
||||
fff gr ifplot katsura launch mat nf num primdec \
|
||||
ratint robot solve sp sturm xm
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
||||
post-install:
|
||||
@(\
|
||||
cd ${WRKSRC}/lib ; \
|
||||
for i in ${LIB_DATA} ; do \
|
||||
${INSTALL_DATA} $$i ${DATADIR} ; \
|
||||
done \
|
||||
)
|
||||
@(cd ${WRKSRC}; make install-doc)
|
||||
@${LN} -s ${PREFIX}/bin/asir ${DATADIR}/ox_asir
|
||||
@${LN} -s ${PREFIX}/bin/asir ${DATADIR}/ox_plot
|
||||
@${LN} -s ${PREFIX}/bin/asir ${DATADIR}/ox_launch
|
||||
@${TAR} xfz ${DISTDIR}/${ASIR_DOC} -C ${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/asir2000/distinfo
Normal file
2
math/asir2000/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (asir-20010830.tar.gz) = fdb5dd953120294d3f65ad23b1519c19
|
||||
MD5 (asirdoc-20010830.tar.gz) = 5987e90fdea3214aa4d238d8d0c8db4a
|
45
math/asir2000/files/patch-aa
Normal file
45
math/asir2000/files/patch-aa
Normal file
@ -0,0 +1,45 @@
|
||||
--- include/Risa.tmpl.orig Wed Aug 29 11:35:21 2001
|
||||
+++ include/Risa.tmpl Wed Aug 29 12:09:55 2001
|
||||
@@ -11,7 +11,7 @@
|
||||
/* #define USE_FFT_FLOAT */
|
||||
/* #define USE_LAPACK */
|
||||
/* #define USE_FEP */
|
||||
-/* #undef OpenXM_HOME */
|
||||
+#undef OpenXM_HOME
|
||||
/* #define USE_INTERVAL */
|
||||
|
||||
#if defined(LinuxArchitecture)
|
||||
@@ -38,7 +38,7 @@
|
||||
#endif
|
||||
|
||||
ASIR_BINDIR=$(ROOTDIR)/bin
|
||||
-ASIR_LIBDIR=$(ROOTDIR)/lib/asir
|
||||
+ASIR_LIBDIR=$(ROOTDIR)/share/asir
|
||||
ASIR_INCDIR=$(ROOTDIR)/include/asir
|
||||
GC_INCDIR=$(ROOTDIR)/include/gc
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
CC= cc
|
||||
#endif
|
||||
|
||||
-CDEBUGFLAGS= -g -O
|
||||
-
|
||||
#if defined(SunArchitecture)
|
||||
#if SystemV4
|
||||
#if defined(SparcArchitecture)
|
||||
@@ -114,7 +112,15 @@
|
||||
|
||||
#ifdef USE_LAPACK
|
||||
LAPACK=1
|
||||
+#if defined(OpenXM_HOME)
|
||||
LAPACKLIB = -llapack -lblas -lI77 -lF77
|
||||
+#else
|
||||
+#if defined(FreeBSDArchitecture) && OSMajorVersion >= 4
|
||||
+LAPACKLIB = -L/usr/local/lib -lg2c -llapack -lblas
|
||||
+#else
|
||||
+LAPACKLIB = -L/usr/local/lib -lf2c -llapack -lblas
|
||||
+#endif
|
||||
+#endif
|
||||
#else
|
||||
LAPACK=0
|
||||
LAPACKLIB =
|
11
math/asir2000/files/patch-ab
Normal file
11
math/asir2000/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- Imakefile.org Sun Feb 4 20:11:38 2001
|
||||
+++ Imakefile Sun Feb 4 20:12:03 2001
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
install:: $(PROGRAMS)
|
||||
MakeDir($(ASIR_LIBDIR))
|
||||
- $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
|
||||
+ $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
|
||||
|
||||
install-bin-lib:: $(PROGRAMS)
|
||||
MakeDir($(ASIR_LIBDIR))
|
12
math/asir2000/files/patch-ac
Normal file
12
math/asir2000/files/patch-ac
Normal file
@ -0,0 +1,12 @@
|
||||
--- include/version.h.orig Thu Aug 9 10:20:46 2001
|
||||
+++ include/version.h Thu Aug 16 19:00:40 2001
|
||||
@@ -47,5 +47,7 @@
|
||||
*
|
||||
* $OpenXM: OpenXM_contrib2/asir2000/include/version.h,v 1.45 2001/07/03 01:41:27 noro Exp $
|
||||
*/
|
||||
-#define ASIR_VERSION 20010703
|
||||
-#define ASIR_DISTRIBUTION "Kobe"
|
||||
+#define ASIR_VERSION 20010809
|
||||
+#define ASIR_DISTRIBUTION "Plotting Group"
|
||||
+#define PARI_VERSION "PARI CALCULATOR Version 2.1.1 (released) Copyright (C) 2000 The PARI Group"
|
||||
+#define LAPACK_VERSION "LAPACK Project Version 3.0"
|
33
math/asir2000/files/patch-ad
Normal file
33
math/asir2000/files/patch-ad
Normal file
@ -0,0 +1,33 @@
|
||||
--- configure.org Thu Aug 16 18:36:16 2001
|
||||
+++ configure Thu Aug 16 18:38:59 2001
|
||||
@@ -4,6 +4,7 @@
|
||||
use_plot=0
|
||||
use_pari=0
|
||||
use_interval=0
|
||||
+use_lapack=0
|
||||
use_fep=0
|
||||
oxhome=/usr/local
|
||||
|
||||
@@ -22,6 +23,8 @@
|
||||
use_pari=1 ;;
|
||||
-interval)
|
||||
use_interval=1 ;;
|
||||
+ -lapack)
|
||||
+ use_lapack=1 ;;
|
||||
-fep)
|
||||
use_fep=1 ;;
|
||||
esac
|
||||
@@ -48,8 +51,12 @@
|
||||
fi
|
||||
|
||||
if [ $use_interval != 0 ]; then
|
||||
-libname=$libname"_itv"
|
||||
echo "#define USE_INTERVAL" >> include/config.h
|
||||
+fi
|
||||
+
|
||||
+if [ $use_lapack != 0 ]; then
|
||||
+libname=$libname"_itv"
|
||||
+echo "#define USE_LAPACK" >> include/config.h
|
||||
fi
|
||||
|
||||
if [ $use_fep != 0 ]; then
|
14
math/asir2000/files/patch-ae
Normal file
14
math/asir2000/files/patch-ae
Normal file
@ -0,0 +1,14 @@
|
||||
--- builtin/numerical.c.org Thu Aug 16 18:47:06 2001
|
||||
+++ builtin/numerical.c Thu Aug 16 18:47:52 2001
|
||||
@@ -51,7 +51,11 @@
|
||||
#include "parse.h"
|
||||
|
||||
#if LAPACK
|
||||
+#if (__FreeBSD__ >= 4)
|
||||
+#include <g2c.h>
|
||||
+#else
|
||||
#include <f2c.h>
|
||||
+#endif
|
||||
|
||||
void Pflinsolve();
|
||||
|
30
math/asir2000/files/patch-af
Normal file
30
math/asir2000/files/patch-af
Normal file
@ -0,0 +1,30 @@
|
||||
--- parse/glob.c.orig Thu Aug 9 10:20:46 2001
|
||||
+++ parse/glob.c Thu Aug 16 19:04:59 2001
|
||||
@@ -50,6 +50,7 @@
|
||||
#include "ca.h"
|
||||
#include "al.h"
|
||||
#include "parse.h"
|
||||
+#include "version.h"
|
||||
#if PARI
|
||||
#include "genpari.h"
|
||||
#endif
|
||||
@@ -688,11 +689,15 @@
|
||||
printf("This is Risa/Asir, Version %d (%s Distribution).\n",
|
||||
get_asir_version(), get_asir_distribution());
|
||||
#endif
|
||||
+
|
||||
printf("Copyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.\n");
|
||||
printf("Copyright 2000,2001, Risa/Asir committers, http://www.openxm.org/.\n");
|
||||
printf("GC 5.3, copyright 1999, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.\n");
|
||||
- printf("PARI 2.0.17(beta), copyright (C) 1989-1999,\n");
|
||||
- printf(" C. Batut, K. Belabas, D. Bernardi, H. Cohen and M. Olivier.\n");
|
||||
-}
|
||||
-
|
||||
+#if defined(PARI)
|
||||
+ printf("%s.\n",PARI_VERSION);
|
||||
+#endif
|
||||
|
||||
+#if defined(LAPACK)
|
||||
+ printf("%s.\n",LAPACK_VERSION);
|
||||
+#endif
|
||||
+}
|
1
math/asir2000/pkg-comment
Normal file
1
math/asir2000/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
The system Risa/Asir is a general computer algebra system
|
16
math/asir2000/pkg-descr
Normal file
16
math/asir2000/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
The system Risa/Asir is a general computer algebra system.
|
||||
It performs arithmetics in various rings and fields, factorization,
|
||||
and Groebner basis computations. It can call outer modules complient
|
||||
to the OpenXM protocols.
|
||||
|
||||
The asir user language is like C.
|
||||
|
||||
The most recent source distribution from Kobe University can be found at
|
||||
|
||||
http://www.asir.org/
|
||||
|
||||
Risa/Asir was originally developed at Fujitsu Research Laboratory.
|
||||
Fujitsu Research Laboratory holds the copyright of Risa/Asir.
|
||||
See the COPYRIGHT file in the source distribution.
|
||||
|
||||
WWW: http://www.asir.org/
|
1120
math/asir2000/pkg-plist
Normal file
1120
math/asir2000/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user