From owner-dev-commits-ports-all@freebsd.org Sat Aug 14 08:56:14 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 441C36687ED; Sat, 14 Aug 2021 08:56:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmvRL1KxWz3FWQ; Sat, 14 Aug 2021 08:56:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 15B011F629; Sat, 14 Aug 2021 08:56:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17E8uEaN010079; Sat, 14 Aug 2021 08:56:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17E8uDin010078; Sat, 14 Aug 2021 08:56:13 GMT (envelope-from git) Date: Sat, 14 Aug 2021 08:56:13 GMT Message-Id: <202108140856.17E8uDin010078@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 5f4d541a6700 - main - science/dynare: Re-add port: Software platform for handling a wide class of economic models MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f4d541a6700b08d891d5ded5246d2e3d7fa3ed4 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2021 08:56:14 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f4d541a6700b08d891d5ded5246d2e3d7fa3ed4 commit 5f4d541a6700b08d891d5ded5246d2e3d7fa3ed4 Author: Yuri Victorovich AuthorDate: 2021-08-14 08:55:33 +0000 Commit: Yuri Victorovich CommitDate: 2021-08-14 08:56:11 +0000 science/dynare: Re-add port: Software platform for handling a wide class of economic models --- MOVED | 1 - science/Makefile | 1 + science/dynare/Makefile | 52 + science/dynare/distinfo | 3 + .../dynare/files/patch-dynare++_kord_journal.cc | 25 + science/dynare/files/pkg-message.in | 17 + science/dynare/pkg-descr | 16 + science/dynare/pkg-plist | 1465 ++++++++++++++++++++ 8 files changed, 1579 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index d80da839a360..051542e261a1 100644 --- a/MOVED +++ b/MOVED @@ -13655,7 +13655,6 @@ games/xtris||2020-01-10|Has expired: Broken for more than 3 months graphics/mapnik||2020-01-10|Has expired: Broken for more than 8 months lang/js_of_ocaml||2020-01-10|Has expired: Depends on broken and expiring devel/ocaml-deriving-ocsigen lang/rubinius||2020-01-10|Has expired: Broken for more than 7 months -math/dynare||2020-01-10|Has expired: Broken for more than 9 months science/meep||2020-01-10|Has expired: Broken for more than 6 months sysutils/hfm||2020-01-10|Has expired: Broken for more than 4 months sysutils/u-boot-zedboard||2020-01-10|Has expired: Broken for more than 6 months diff --git a/science/Makefile b/science/Makefile index 7d2ec40b8544..b0f3a0bc0eb6 100644 --- a/science/Makefile +++ b/science/Makefile @@ -65,6 +65,7 @@ SUBDIR += dlib-cpp SUBDIR += drawxtl SUBDIR += dvc + SUBDIR += dynare SUBDIR += eccodes SUBDIR += elk SUBDIR += elmerfem diff --git a/science/dynare/Makefile b/science/dynare/Makefile new file mode 100644 index 000000000000..d01a810ec34f --- /dev/null +++ b/science/dynare/Makefile @@ -0,0 +1,52 @@ +PORTNAME= dynare +DISTVERSION= 4.6.4 +CATEGORIES= science # economics +MASTER_SITES= https://www.dynare.org/release/source/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Software platform for handling a wide class of economic models + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/tokenizer.hpp:devel/boost-libs +LIB_DEPENDS= libhdf5.so:science/hdf5 \ + libmatio.so:math/matio \ + libopenblas.so:math/openblas \ + libsz.so:science/szip +RUN_DEPENDS= epstool:graphics/epstool \ + gnuplot:math/gnuplot \ + pstoedit:graphics/pstoedit \ + xfig:graphics/xfig # README says that these executables are required for the test suite + +USES= bison compiler:c++17-lang fortran gmake localbase tar:xz +USE_PDFLATEX= yes +USE_TEX= pdftex +USE_GCC= any # clang-11 fails: error: reference to local binding 'ii1' declared in enclosing function 'ss2Iteration_pruning' + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-matlab \ + --disable-doc + +SUB_FILES= pkg-message + +OPTIONS_DEFINE= OCTAVE +OPTIONS_DEFAULT= OCTAVE +OPTIONS_SUB= yes + +OCRAVE_DESC= Integrate with Octave (main way to use Dynare) +OCTAVE_CONFIGURE_ENABLE= octave +OCTAVE_CONFIGURE_ON= --disable-mex-kalman-steady-state # Kalman Steady State MEX file for Octave + +OCTAVE_DESC= Integrate with Octave (main way to use Dynare) +OCTAVE_BUILD_DEPENDS= octave:math/octave +OCTAVE_LIB_DEPENDS= libfftw3.so:math/fftw3 \ + libfftw3f.so:math/fftw3-float \ + libgsl.so:math/gsl \ + libumfpack.so:math/suitesparse-umfpack +OCTAVE_RUN_DEPENDS= octave:math/octave + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dynare/matlab/preprocessor64/dynare_m + +.include diff --git a/science/dynare/distinfo b/science/dynare/distinfo new file mode 100644 index 000000000000..0508325d3455 --- /dev/null +++ b/science/dynare/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1628902458 +SHA256 (dynare-4.6.4.tar.xz) = 3c2e0069a3e5c23866130d5c73c3da840a38612baa2aa3d90f42e3d984abad80 +SIZE (dynare-4.6.4.tar.xz) = 17282500 diff --git a/science/dynare/files/patch-dynare++_kord_journal.cc b/science/dynare/files/patch-dynare++_kord_journal.cc new file mode 100644 index 000000000000..2abfa11f8d4a --- /dev/null +++ b/science/dynare/files/patch-dynare++_kord_journal.cc @@ -0,0 +1,25 @@ +- FreeBSD compatibility. + +--- dynare++/kord/journal.cc.orig 2021-08-14 01:22:14 UTC ++++ dynare++/kord/journal.cc +@@ -33,7 +33,7 @@ + # include // For uname() + # include // For getloadavg() + # include // For sysconf() +-# ifdef __APPLE__ ++# if defined(__APPLE__) || defined(__FreeBSD__) + # include + # include + # endif +@@ -57,9 +57,9 @@ SystemResources::pageSize() + long + SystemResources::availableMemory() + { +-#if !defined(_WIN32) && !defined(__APPLE__) ++#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) + return sysconf(_SC_AVPHYS_PAGES)*pageSize(); +-#elif defined(__APPLE__) ++#elif defined(__APPLE__) || defined(__FreeBSD__) + unsigned long usermem = 0; + size_t len = sizeof usermem; + static int mib[2] = { CTL_HW, HW_USERMEM }; diff --git a/science/dynare/files/pkg-message.in b/science/dynare/files/pkg-message.in new file mode 100644 index 000000000000..91df93776944 --- /dev/null +++ b/science/dynare/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <