Index: math/asymptote/Makefile =================================================================== --- math/asymptote/Makefile (revision 472146) +++ math/asymptote/Makefile (working copy) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= asymptote -PORTVERSION= 2.41 -PORTREVISION= 4 +PORTVERSION= 2.44 CATEGORIES= math MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}.src @@ -14,18 +13,39 @@ LICENSE= GPLv3 LGPL3 LICENSE_COMB= dual -LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded \ - libsigsegv.so:devel/libsigsegv +ONLY_FOR_ARCHS= amd64 i386 + +LIB_DEPENDS= libsigsegv.so:devel/libsigsegv RUN_DEPENDS= animate:graphics/ImageMagick \ gv:print/gv \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} -ALL_TARGET= asy asy-keywords.el +USES= compiler:c++14-lang gettext-runtime ghostscript gmake ncurses perl5 python \ + shebangfix tar:tgz +SHEBANG_FILES= GUI/*.py +USE_GL= gl glu glut +USE_PERL5= build +USE_TEX= dvipsk formats -CONFIGURE_ARGS= --enable-gc=system CPPFLAGS+= -I${LOCALBASE}/include +GNU_CONFIGURE= yes +MAKE_ENV= ASYMPTOTE_HOME=${WRKDIR} HOME=${WRKDIR} +MAKE_JOBS_UNSAFE= yes + +ALL_TARGET= asy asy-keywords.el +INSTALL_TARGET= install-asy + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +OPTIONS_DEFAULT= FFTW GSL MANPAGES READLINE +OPTIONS_DEFINE= BDWGC DOCS EXAMPLES FFTW GSL MANPAGES OFFSCREEN READLINE + +BDWGC_LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded +BDWGC_DESC= Enable Boehm-Demers-Weiser garbage collector +BDWGC_CONFIGURE_ENABLE= gc=${LOCALBASE} + DOCS_ALL_TARGET= html DOCS_BUILD_DEPENDS= texi2dvi:print/texinfo DOCS_CONFIGURE_WITH= docdir=${DOCSDIR} @@ -35,15 +55,10 @@ FFTW_DESC= Use FFTW to compute the Discrete Fourier Transform FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3 -GNU_CONFIGURE= yes GSL_CONFIGURE_ENABLE= gsl GSL_DESC= Enable GNU Scientific library GSL_LIB_DEPENDS= libgsl.so:math/gsl -INSTALL_TARGET= install-asy - -MAKE_ENV= ASYMPTOTE_HOME=${WRKDIR} HOME=${WRKDIR} -MAKE_JOBS_UNSAFE= yes MANPAGES_ALL_TARGET= man MANPAGES_BUILD_DEPENDS= texi2dvi:print/texinfo MANPAGES_INFO= asy-faq @@ -52,32 +67,21 @@ OFFSCREEN_CONFIGURE_ENABLE= offscreen OFFSCREEN_DESC= Enable offscreen rendering using OSMesa library OFFSCREEN_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa -ONLY_FOR_ARCHS= amd64 i386 -OPTIONS_DEFAULT= FFTW GSL MANPAGES READLINE -OPTIONS_DEFINE= DOCS EXAMPLES FFTW GSL MANPAGES OFFSCREEN READLINE READLINE_CONFIGURE_ENABLE= readline -READLINE_DESC= ${LIBEDIT_DESC} -READLINE_USES= readline +READLINE_USES= readline:port -SHEBANG_FILES= GUI/*.py - -USES= gettext-runtime ghostscript gmake ncurses perl5 python \ - shebangfix tar:tgz -USE_GL= glut -USE_PERL5= build -USE_TEX= dvipsk formats - -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - post-patch: @${REINPLACE_CMD} 's/-lgc/-lgc-threaded/' ${WRKSRC}/configure @${REINPLACE_CMD} 's,/usr/lib/libgs.so,${LOCALBASE}/lib/libgs.so,' \ ${WRKSRC}/settings.cc + @${REINPLACE_CMD} 's,makeinfo,${LOCALBASE}/bin/makeinfo,' \ + ${WRKSRC}/doc/png/Makefile.in + # Fix the python interpreter in the generated file share/asymptote/GUI/xasyVersion.py: @${REINPLACE_CMD} 's,/usr/bin/env python,${PYTHON_CMD},' ${WRKSRC}/Makefile.in post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/asy + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/asy .include Index: math/asymptote/distinfo =================================================================== --- math/asymptote/distinfo (revision 472146) +++ math/asymptote/distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1500975929 -SHA256 (asymptote-2.41.src.tgz) = 1d6e7e89fb5293fad7d836fb0477f785a113f689bd71f37a05af18ff0c5eeef0 -SIZE (asymptote-2.41.src.tgz) = 3516426 +TIMESTAMP = 1527856340 +SHA256 (asymptote-2.44.src.tgz) = 6f9bd2f1ed2835aa69ec382fefbec55ba5ec859341a42a543631a7f04ada49e7 +SIZE (asymptote-2.44.src.tgz) = 3549129 Index: math/asymptote/files/patch-runtime.in =================================================================== --- math/asymptote/files/patch-runtime.in (nonexistent) +++ math/asymptote/files/patch-runtime.in (working copy) @@ -0,0 +1,11 @@ +--- runtime.in.orig 2018-06-03 13:52:26 UTC ++++ runtime.in +@@ -85,7 +85,7 @@ stringarray2* => stringArray2() + #include "process.h" + #include "arrayop.h" + +-#ifdef __APPLE__ ++#if defined(__APPLE__) || defined(__FreeBSD__) + extern "C" int isnan(double); + #endif + Property changes on: math/asymptote/files/patch-runtime.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: math/asymptote/files/patch-xstream.h =================================================================== --- math/asymptote/files/patch-xstream.h (nonexistent) +++ math/asymptote/files/patch-xstream.h (working copy) @@ -0,0 +1,23 @@ +--- xstream.h.orig 2018-06-10 15:14:47 UTC ++++ xstream.h +@@ -31,7 +31,7 @@ + #define quad_t long long + #define u_quad_t unsigned long long + +-#if defined(__CYGWIN__) || defined(__FreeBSD__) ++#if defined(__CYGWIN__) + #include + #define u_char unsigned char + #define u_int unsigned int +@@ -41,6 +41,11 @@ extern "C" int fseeko(FILE *, off_t, int + extern "C" off_t ftello(FILE *); + #endif + ++#ifdef __FreeBSD__ ++#define xdr_longlong_t xdr_int64_t ++#define xdr_u_longlong_t xdr_u_int64_t ++#endif ++ + #ifdef _POSIX_SOURCE + #undef _POSIX_SOURCE + #include Property changes on: math/asymptote/files/patch-xstream.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: math/asymptote/pkg-plist =================================================================== --- math/asymptote/pkg-plist (revision 472146) +++ math/asymptote/pkg-plist (working copy) @@ -160,6 +160,7 @@ %%DATADIR%%/plain_strings.asy %%DATADIR%%/plain_xasy.asy %%DATADIR%%/pstoedit.asy +%%DATADIR%%/rational.asy %%DATADIR%%/reload.js %%DATADIR%%/roundedpath.asy %%DATADIR%%/simplex.asy @@ -360,6 +361,7 @@ %%PORTEXAMPLES%%%%EXAMPLESDIR%%/limit.asy %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lineargraph.asy %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lineargraph0.asy +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/linearregression.asy %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lines.asy %%PORTEXAMPLES%%%%EXAMPLESDIR%%/linetype.asy %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lmfit1.asy