Index: math/Makefile =================================================================== --- math/Makefile +++ math/Makefile @@ -294,6 +294,7 @@ SUBDIR += lybniz SUBDIR += mate-calc SUBDIR += math77 + SUBDIR += mathgl SUBDIR += mathmod SUBDIR += mathomatic SUBDIR += matio Index: math/mathgl/Makefile =================================================================== --- /dev/null +++ math/mathgl/Makefile @@ -0,0 +1,56 @@ +# $FreeBSD$ + +PORTNAME= mathgl +DISTVERSION= 2.4.1 +CATEGORIES= math graphics +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for high-quality scientific data visualization + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libgsl.so:math/gsl \ + libhdf5.so:science/hdf5 \ + libsz.so:science/szip \ + libpng16.so:graphics/png \ + libgif.so:graphics/giflib \ + libhpdf.so:print/libharu + +USES= cmake jpeg gettext-runtime python:2.7 +USE_GL= gl glu glut +USE_XORG= xmu xi +USE_LDCONFIG= yes + +.for v in double zlib opengl gif glut hdf5 jpeg mgl2 gsl pdf png +CMAKE_ARGS+= -Denable-${v}=ON +.endfor + +.for v in openmp mgltex doc-info doc-html +CMAKE_ARGS+= -Denable-${v}=OFF +.endfor + +OPTIONS_DEFINE= PYTHON QT5 FLTK WXGTK +OPTIONS_DEFAULT= PYTHON QT5 +OPTIONS_SUB= yes + +FLTK_DESC= Enable fltk widget +PYTHON_CMAKE_BOOL= enable-python +PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30 ${PYNUMPY} +PYTHON_RUN_DEPENDS= ${PYNUMPY} +QT5_CMAKE_BOOL= enable-qt5 +QT5_USE= QT5=core,gui,opengl,printsupport,widgets,buildtools_build,qmake_build +QT5_USES= desktop-file-utils shared-mime-info +FLTK_CMAKE_BOOL= enable-fltk +FLTK_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk +FLTK_USE= XORG=x11,sm,xext,ice +WXGTK_USE= WX=3.0+ + +post-patch-FLTK-on: + @${REINPLACE_CMD} -e 's|#include Index: math/mathgl/distinfo =================================================================== --- /dev/null +++ math/mathgl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1505889476 +SHA256 (mathgl-2.4.1.tar.gz) = 751488bb9454c057d6e2828867dd56e00507c84a47efa1b8546da55a3455a588 +SIZE (mathgl-2.4.1.tar.gz) = 22665490 Index: math/mathgl/pkg-descr =================================================================== --- /dev/null +++ math/mathgl/pkg-descr @@ -0,0 +1,6 @@ +Mathgl is a cross-platform library for making high-quality scientific graphics. +It provides fast data plotting and handling of large data arrays, as well as +window and console modes and for easy embedding into other programs. Mathgl +integrates into fltk, qt and opengl applications. + +WWW: http://mathgl.sourceforge.net Index: math/mathgl/pkg-plist =================================================================== --- /dev/null +++ math/mathgl/pkg-plist @@ -0,0 +1,125 @@ +%%QT5%%bin/mglconv +%%QT5%%bin/mglview +%%QT5%%bin/udav +%%FLTK%%bin/mgllab +include/mgl2/Fl_MathGL.h +include/mgl2/abstract.h +include/mgl2/addon.h +include/mgl2/base.h +include/mgl2/base_cf.h +include/mgl2/canvas.h +include/mgl2/canvas_cf.h +include/mgl2/canvas_wnd.h +include/mgl2/config.h +include/mgl2/cont.h +include/mgl2/data.h +include/mgl2/data_cf.h +include/mgl2/datac.h +include/mgl2/datac_cf.h +include/mgl2/define.h +include/mgl2/dllexport.h +include/mgl2/eval.h +include/mgl2/evalc.h +include/mgl2/fit.h +include/mgl2/font.h +include/mgl2/glut.h +include/mgl2/gsl.fs +include/mgl2/mathgl.fs +include/mgl2/mgl.fs +include/mgl2/mgl.h +include/mgl2/mgl_cf.h +include/mgl2/mgl_pas.pas +include/mgl2/mglplot.fs +include/mgl2/mpi.h +include/mgl2/opengl.h +include/mgl2/other.h +include/mgl2/parser.h +include/mgl2/pde.h +include/mgl2/plot.h +include/mgl2/prim.h +%%QT5%%include/mgl2/qmathgl.h +%%QT5%%include/mgl2/qt.h +%%FLTK%%include/mgl2/fltk.h +include/mgl2/surf.h +include/mgl2/thread.h +include/mgl2/type.h +include/mgl2/vect.h +include/mgl2/vectors.fs +include/mgl2/volume.h +include/mgl2/wnd.h +lib/cmake/mathgl2/mathgl2-config.cmake +lib/libmgl2-glut.a +lib/libmgl2-glut.so +lib/libmgl2-glut.so.7.5.0 +%%QT5%%lib/libmgl2-qt.a +%%QT5%%lib/libmgl2-qt.so +%%QT5%%lib/libmgl2-qt.so.7.5.0 +%%QT5%%lib/libmgl2-qt5.a +%%QT5%%lib/libmgl2-qt5.so +%%QT5%%lib/libmgl2-qt5.so.7.5.0 +%%FLTK%%lib/libmgl2-fltk.a +%%FLTK%%lib/libmgl2-fltk.so +%%FLTK%%lib/libmgl2-fltk.so.7.5.0 +%%FLTK%%lib/libmgl2-wnd.a +%%FLTK%%lib/libmgl2-wnd.so +%%FLTK%%lib/libmgl2-wnd.so.7.5.0 +lib/libmgl2.a +lib/libmgl2.so +lib/libmgl2.so.7.5.0 +%%PYTHON%%lib/python2.7/site-packages/_mathgl.so +%%PYTHON%%lib/python2.7/site-packages/mathgl.py +%%PYTHON%%lib/python2.7/site-packages/mathgl.pyc +%%QT5%%share/applications/udav.desktop +%%FLTK%%share/applications/mgllab.desktop +share/locale/es/LC_MESSAGES/mathgl.mo +share/locale/ru/LC_MESSAGES/mathgl.mo +%%DATADIR%%/fonts/STIX.vfm +%%DATADIR%%/fonts/STIX.vfmb +%%DATADIR%%/fonts/STIX_b.vfm +%%DATADIR%%/fonts/STIX_bi.vfm +%%DATADIR%%/fonts/STIX_i.vfm +%%DATADIR%%/fonts/adventor.vfm +%%DATADIR%%/fonts/adventor.vfmb +%%DATADIR%%/fonts/adventor_b.vfm +%%DATADIR%%/fonts/adventor_bi.vfm +%%DATADIR%%/fonts/adventor_i.vfm +%%DATADIR%%/fonts/bonum.vfm +%%DATADIR%%/fonts/bonum.vfmb +%%DATADIR%%/fonts/bonum_b.vfm +%%DATADIR%%/fonts/bonum_bi.vfm +%%DATADIR%%/fonts/bonum_i.vfm +%%DATADIR%%/fonts/chorus.vfm +%%DATADIR%%/fonts/cursor.vfm +%%DATADIR%%/fonts/cursor.vfmb +%%DATADIR%%/fonts/cursor_b.vfm +%%DATADIR%%/fonts/cursor_bi.vfm +%%DATADIR%%/fonts/cursor_i.vfm +%%DATADIR%%/fonts/heros.vfm +%%DATADIR%%/fonts/heros.vfmb +%%DATADIR%%/fonts/heros_b.vfm +%%DATADIR%%/fonts/heros_bi.vfm +%%DATADIR%%/fonts/heros_i.vfm +%%DATADIR%%/fonts/heroscn.vfm +%%DATADIR%%/fonts/heroscn.vfmb +%%DATADIR%%/fonts/heroscn_b.vfm +%%DATADIR%%/fonts/heroscn_bi.vfm +%%DATADIR%%/fonts/heroscn_i.vfm +%%DATADIR%%/fonts/pagella.vfm +%%DATADIR%%/fonts/pagella.vfmb +%%DATADIR%%/fonts/pagella_b.vfm +%%DATADIR%%/fonts/pagella_bi.vfm +%%DATADIR%%/fonts/pagella_i.vfm +%%DATADIR%%/fonts/schola.vfm +%%DATADIR%%/fonts/schola.vfmb +%%DATADIR%%/fonts/schola_b.vfm +%%DATADIR%%/fonts/schola_bi.vfm +%%DATADIR%%/fonts/schola_i.vfm +%%DATADIR%%/fonts/termes.vfm +%%DATADIR%%/fonts/termes.vfmb +%%DATADIR%%/fonts/termes_b.vfm +%%DATADIR%%/fonts/termes_bi.vfm +%%DATADIR%%/fonts/termes_i.vfm +%%DATADIR%%/mgl.cgi +%%QT5%%share/mime/packages/mgl.xml +%%QT5%%share/pixmaps/udav.png +%%QT5%%share/udav/udav_ru.qm