From nobody Wed Aug 24 18:37:04 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MCZZS6qjMz4ZY5D; Wed, 24 Aug 2022 18:37:04 +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 4MCZZS6DXFz3Kvs; Wed, 24 Aug 2022 18:37:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661366224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9bo/ZteiPrGRy6R3DDo1LFYr8ksWeEAD3TUYkvtU4Vg=; b=mBKSa/Z1tICG+XmZVawDN9ws7U6JFtkDorH3/yw9vHhEYpKS0Jh2GEJ5eU+fyXWTN8UF+c pcXkmFfxR8+08eBpbrMFA7VPD8hy6l6mfsftiuzKjQBwGeEbjblxeEPGRygaqEqXDCOTpf divlAp73/IHlISleafuOdI7x2SduUp9386JIA67OtaNOcrZxZU5GclHwlNcDAUA+vSfiJH unTub0phgxeftYx8Y+kwmFCTi9ww+Iqr39N8LwG0QVIhhsnoHCUc/xkYGTFRc/dU6c4gj/ zIKukZv42VaVH2hvadEiFSZXeu0llKT9L7VPXGlDBFRcHsk4ZQxnOXrlwRxI/A== 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 4MCZZS5HdKzJyp; Wed, 24 Aug 2022 18:37:04 +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 27OIb4K7098080; Wed, 24 Aug 2022 18:37:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27OIb4Mu098079; Wed, 24 Aug 2022 18:37:04 GMT (envelope-from git) Date: Wed, 24 Aug 2022 18:37:04 GMT Message-Id: <202208241837.27OIb4Mu098079@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: ef177a7e9a6e - main - graphics/glvis: New port: Lightweight tool for accurate & flexible finite element visualization List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org 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: ef177a7e9a6ee5227dbd474170f02fed98e3fb2c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661366224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9bo/ZteiPrGRy6R3DDo1LFYr8ksWeEAD3TUYkvtU4Vg=; b=bPYPtgIV4JDM9t4Ngo1Aax9AG7umlIGyh9/JyB4HcYfGRjUjW8iHxOs2mQZiNMGrdA3V2R d4RGVmNq4ky+lSDHC+vUdX71fdu/t7bNo9Z5Y+IX2XfJxWoEFOleRzdHHqbL96mWdJu53W 2T6WyCcupFDWuOvpCMPeeIwlkfX45fZPGoDasUPmXZpU7qe0/zTJEOsqyNRqrGhOVzw19g 6lY5kpFFth490IJxjN7KOKSScrndUXiXEwFbOWWsuraWTQCQU/tTmgR8wmm+1p6IuJGXLx 94phkdni8ku02yHkaY7HUvHu6O6+uhg/snbPq6rKyr+hHvdNqTfUrQW1NOz6Rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661366224; a=rsa-sha256; cv=none; b=S2bWUwNZbL5+UeUu+HuoBftHJkuQBZz2ihqOa7yO3kMidp+FFmHZaeFKtwbZCn28MWbpRR DdoMNKBKeFZK8Z15TGt4HV3rtthgDfDS9AOzgwvVFyTUGNBTibw3Ll0kkCUiH1p08rr2T/ MLblG8OVjYpNSSwgWEIos5HSaKvk+R7qioK4Qg9mQiKclT85RemcMkb4BTDmEta6nJHKjc 9LtSRKQltdk59VIbjb/l2Ky1LFAJDxtAynEZn11qvfNg9iZ5Zl4l/FN9Ew7SmTRoQu9Fzt pc7O6uWDzr4u2C9Gb5FNVezZHEyN3ZPyBttedbKM3P3hEiOSf7fsHnsGUdiYPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ef177a7e9a6ee5227dbd474170f02fed98e3fb2c commit ef177a7e9a6ee5227dbd474170f02fed98e3fb2c Author: Yuri Victorovich AuthorDate: 2022-08-24 18:36:23 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-24 18:37:02 +0000 graphics/glvis: New port: Lightweight tool for accurate & flexible finite element visualization --- graphics/Makefile | 1 + graphics/glvis/Makefile | 41 +++++++++++++++++++++++++++++++ graphics/glvis/distinfo | 5 ++++ graphics/glvis/files/patch-CMakeLists.txt | 15 +++++++++++ graphics/glvis/pkg-descr | 11 +++++++++ 5 files changed, 73 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 100f871e58c7..5fc713d14b0d 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -277,6 +277,7 @@ SUBDIR += glosm SUBDIR += glpng SUBDIR += glslang + SUBDIR += glvis SUBDIR += glx-utils SUBDIR += gmic SUBDIR += gmic-qt diff --git a/graphics/glvis/Makefile b/graphics/glvis/Makefile new file mode 100644 index 000000000000..7ce6340ba83d --- /dev/null +++ b/graphics/glvis/Makefile @@ -0,0 +1,41 @@ +PORTNAME= glvis +DISTVERSION= 4.2 +CATEGORIES= graphics +MASTER_SITES= https://glvis.github.io/releases/ +PKGNAMESUFFIX= -mesh-visualizer # other software also has the name glvis +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Lightweight tool for accurate & flexible finite element visualization + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= glm>0:math/glm \ + xxd:editors/vim +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libHYPRE.so:science/hypre \ + libmetis.so:math/metis \ + libmfem.so:math/mfem \ + libpng.so:graphics/png +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR} + +USES= cmake:testing gl python:test sdl tar:tgz +USE_GL= gl glew +USE_SDL= sdl2 + +USE_GITHUB= nodefault +GH_TUPLE= GLVis:data:1fc2954:data/tests/data + +CMAKE_TESTING_ON= ENABLE_TESTS # 5 tests fail, likely because test baseline is for ubuntu +CMAKE_ARGS= -DGLVIS_BASELINE_SYS=ubuntu-20.04 # baseline for tests + +PLIST_FILES= bin/${PORTNAME} + +BINARY_ALIAS= python3=${PYTHON_CMD} + +do-install: # workaround for https://github.com/GLVis/glvis/issues/234 + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/glvis ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/graphics/glvis/distinfo b/graphics/glvis/distinfo new file mode 100644 index 000000000000..2d22b844cb41 --- /dev/null +++ b/graphics/glvis/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1661361561 +SHA256 (glvis-4.2.tgz) = 314fb04040cd0a8128d6dac62ba67d7067c2c097364e5747182ee8371049b42a +SIZE (glvis-4.2.tgz) = 2477717 +SHA256 (GLVis-data-1fc2954_GH0.tar.gz) = 130f75ada7c1b4abebb85f0a60a387456fa532f194f4d196b9ea58d1dfc1189d +SIZE (GLVis-data-1fc2954_GH0.tar.gz) = 15711923 diff --git a/graphics/glvis/files/patch-CMakeLists.txt b/graphics/glvis/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..725bede416c6 --- /dev/null +++ b/graphics/glvis/files/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +--- CMakeLists.txt.orig 2022-08-24 16:49:50 UTC ++++ CMakeLists.txt +@@ -333,10 +333,12 @@ if(NOT EMSCRIPTEN) + install(TARGETS app + RUNTIME DESTINATION . + BUNDLE DESTINATION .) ++ if (FALSE) + install(CODE [[ + include (BundleUtilities) + fixup_bundle("${CMAKE_INSTALL_PREFIX}/GLVis.app" "" "") + ]] COMPONENT RUNTIME) ++ endif() + + endif(NOT EMSCRIPTEN) + diff --git a/graphics/glvis/pkg-descr b/graphics/glvis/pkg-descr new file mode 100644 index 000000000000..1d8cf1b133da --- /dev/null +++ b/graphics/glvis/pkg-descr @@ -0,0 +1,11 @@ +GLVis is a lightweight tool for accurate and flexible finite element +visualization. + +Features: +* Accurate functional representation of many finite elements. +* Support for arbitrary high-order and NURBS meshes. +* Desktop, Web and Jupyter versions from the same code base. +* Server mode accepting multiple socket connections. +* Visualization of parallel meshes and solutions. + +WWW: https://glvis.org/