2013-01-31 13:29:49 +01:00
|
|
|
# Created by: Frederic Han <han@math.jussieu.fr>
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= giacxcas
|
2013-09-10 03:23:13 +02:00
|
|
|
PORTVERSION= 1.1.0
|
2014-07-03 21:38:49 +02:00
|
|
|
PORTREVISION= 6
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
CATEGORIES= math
|
2014-06-20 17:39:25 +02:00
|
|
|
MASTER_SITES= http://www-fourier.ujf-grenoble.fr/~parisse/giac/ \
|
|
|
|
http://www.math.jussieu.fr/~han/xcas/sources/v2/
|
2013-01-31 13:29:49 +01:00
|
|
|
DISTFILES= fltk-giac.tar.gz CoCoALib-0.9950.tgz giac-${PORTVERSION}.tar.gz
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2014-05-26 04:33:38 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
COMMENT= Computer algebra system by Bernard Parisse
|
|
|
|
|
2013-01-31 13:29:49 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-05-11 19:58:55 +02:00
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl
|
2013-09-10 03:23:13 +02:00
|
|
|
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
|
2014-02-02 23:31:11 +01:00
|
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
2014-06-20 17:39:25 +02:00
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
2013-09-10 03:23:13 +02:00
|
|
|
libpari.so:${PORTSDIR}/math/pari \
|
|
|
|
libmpfr.so:${PORTSDIR}/math/mpfr \
|
|
|
|
libgsl.so:${PORTSDIR}/math/gsl \
|
|
|
|
liblapack.so:${PORTSDIR}/math/lapack
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
|
2013-01-31 13:29:49 +01:00
|
|
|
NO_CDROM= French documentation is for non-commercial use only
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-07-03 21:38:49 +02:00
|
|
|
USES= desktop-file-utils gettext gmake libtool shebangfix
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
USE_GL= gl
|
2014-04-23 15:25:16 +02:00
|
|
|
USE_XORG= x11 xcursor xft xi
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= latex:build dvipsk:build
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-06-20 17:39:25 +02:00
|
|
|
# Warning: don't remove the USE_GCC without a runtime test *after* make install
|
2014-02-02 23:31:11 +01:00
|
|
|
USE_GCC= yes
|
2013-01-31 13:29:49 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/giac
|
|
|
|
PORTDOCS= *
|
|
|
|
DATADIR= ${PREFIX}/share/giac
|
|
|
|
PORTDATA= *
|
2014-02-02 23:31:11 +01:00
|
|
|
SHEBANG_FILES= src/pgiac
|
2013-01-31 13:29:49 +01:00
|
|
|
|
2014-04-23 15:25:16 +02:00
|
|
|
CONFIGURE_ENV= X_LIBS=-lX11
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib -L${LOCALBASE}/lib
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2010-10-10 00:26:00 +02:00
|
|
|
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/giac-${PORTVERSION}
|
2013-01-31 13:29:49 +01:00
|
|
|
FLTKDEV-GIAC= ${WRKDIR}/fltk-1.3.0
|
|
|
|
COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9950
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
|
|
|
|
INFO= giac_es giac_us
|
|
|
|
|
2014-04-23 15:25:16 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-06-20 17:39:25 +02:00
|
|
|
#NB: built of giacxcas with USE_GCC and nlt is successfull if the ntl port is also
|
|
|
|
# installed with USE_GCC
|
2014-02-02 23:31:11 +01:00
|
|
|
.if ${OSVERSION} >= 1000000
|
|
|
|
CONFIGURE_ARGS+= --disable-ntl
|
|
|
|
.endif
|
|
|
|
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
post-patch:
|
2013-01-31 13:29:49 +01:00
|
|
|
@${GREP} -Rl --null /bin/bash ${COCOALIB-GIAC} | ${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|'
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \
|
2011-11-01 18:32:02 +01:00
|
|
|
${WRKSRC}/xcas.applications ${WRKSRC}/xcas.desktop
|
2014-02-02 23:31:11 +01:00
|
|
|
.if ${OSVERSION} >= 1000000
|
|
|
|
@${REINPLACE_CMD} -e 's|friend class Fl_Group;|friend class Fl_Group;friend class Fl_X;|' \
|
|
|
|
${FLTKDEV-GIAC}/FL/Fl_Widget.H
|
|
|
|
.endif
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${COCOALIB-GIAC} && \
|
2014-02-02 23:31:11 +01:00
|
|
|
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a --with-cxx=${CXX}&& \
|
2014-06-25 07:35:31 +02:00
|
|
|
${MAKE_CMD} library && \
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
cd ${FLTKDEV-GIAC} && \
|
|
|
|
./configure --prefix=${FLTKDEV-GIAC} \
|
2014-06-20 17:39:25 +02:00
|
|
|
&& cd src && ${MAKE}
|
Add new port math/giacxcas:
General purpose Computer algebra system by Bernard Parisse released
under GPLv3. The french documentation by Renee De Graeve is for non
commercial use only.
it consists of:
- a C++ library (libgiac). It is build on C and C++ libraries:
PARI, NTL (arithmetic), CoCoA (Groebner basis), GSL (numerics),
GMP (big integers), MPFR (bigfloats) and provides algorithms for
basic polynomial operations (product, GCD) and symbolic
computations (simplifications, limits/series, symbolic
integration, sommation, ...). The library can be configured to
accept Maple or TI syntax to ease the transition for users of
these systems.
- a command line interpreter (icas or giac). It can be called from texmacs.
- a FLTK-based GUI (xcas). It is a GUI for symbolic computation
with several modules added: 2-d and 3-d graphics, dynamic 2-d and
3-d geometry (exact or numeric), spreadsheet, programming
environment.
WWW: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
PR: ports/150395
Submitted by: Han Frederic <han at math.jussieu.fr>
2010-09-21 17:29:52 +02:00
|
|
|
|
2014-04-23 15:25:16 +02:00
|
|
|
.include <bsd.port.mk>
|