From nobody Sat Dec 03 21:56:58 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 4NPkDV3gf4z4jXrH; Sat, 3 Dec 2022 21:56:58 +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 4NPkDV2yFcz3KD5; Sat, 3 Dec 2022 21:56:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670104618; 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=HNcowBOQdZN43ATOB5Iehpf42OmpL9W721gtDxJHtzk=; b=S5nqIuL9j3SmbcuniqdKAhg6mIjHZFq+nhOWO7Vjbhd+yh1wZyyjBtn1i3HCNJzOb24RJf kgndSWNofH5qWnEwJ6J4NUAqbCmclUi4TssPiH1Gu1SgOIJrjB1kZ/kjtVvuffXMIxA+4+ aJLLLgOJQA5CySPqSv6SRF1F/zUnE/Fj8Pw2d9tHiWvt9JMkBENiqpDGG+V68V6nHIx2M2 zYjnLH7C28k9Ntc4LzNwHzVzSVgHxBJXGrQG0wuxTLMxMqeyPFDdjcOc+5EUdWkUWKGc43 +ceXVGirKeMAd4PlyXE/225dVxvk/8hETnHmtqYiOHJCsQTthEP8e0dR1VRmQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670104618; 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=HNcowBOQdZN43ATOB5Iehpf42OmpL9W721gtDxJHtzk=; b=sxY1D3T0ZoqFmtwhnFFrMN/llYizFtGbfK1JvUVaC5CK/AhoYj8Kc7GEI7cXDw/7B6Aag3 oPSd4amPi3Iz4g/wlp6cmBgvywhbpSnw2GbpR4im0an4ITr2trGX3pSBbdPFwYMTzWV0ig w1cy0wvBKojqG7WCEkx9dswzLOCgeMcclZQNEmqFB82EBTny0of+IcnwLL6++XJsDXLP5x 2GABBxcegidTl6+1250QRplGqiO42vMeD7qy2HVE07EyFu8x0MPjUGV31qrfu4II5p+o19 x7wGg08lT777TMgwhDaKH01p5Z/8MBHZnP5O6/A4j0l05VvLTBPSpU4joVOx3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670104618; a=rsa-sha256; cv=none; b=JXOUzT+0UATAJi3zfymFXkd2VSMys6gl8yXQXe5SjhEgcW9uysVX9QTidCFRzwnPk2g9rc VNtJ6KWvQWQVteoMMlg1fA55uyABIwzThnuEEUCVm92ZsSbMGCj1Sxc1Rbd59LmOWtXjdv nu+OEBF6CsboV/eR8ofrQUN3yiinLanzZszi+g+QxaW9jV2STjZuLyn5PfH/heVL/NaqdR dpo5G8LX37nt1EoYkGYAJkVga+4kUlcMNSgwJGpRMrof3pqX1BQrOcRJwV8IVr4XDzDOwO P5nGpqTsv5B2GsmLijluBLa7ObYxEki9I7SfptCjZ5/KQWChU1ZcvCJcBgc0QQ== 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 4NPkDV1W0lz1961; Sat, 3 Dec 2022 21:56:58 +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 2B3LuwEX005638; Sat, 3 Dec 2022 21:56:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B3Luwg4005637; Sat, 3 Dec 2022 21:56:58 GMT (envelope-from git) Date: Sat, 3 Dec 2022 21:56:58 GMT Message-Id: <202212032156.2B3Luwg4005637@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: 0dce9995e605 - main - math/polyclipper: New port: Library to clip polygons (in 2D) and polyhedra (in 3D) by planes 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: 0dce9995e60532c01b84c3fc0b008ce017811f36 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0dce9995e60532c01b84c3fc0b008ce017811f36 commit 0dce9995e60532c01b84c3fc0b008ce017811f36 Author: Yuri Victorovich AuthorDate: 2022-12-03 21:55:34 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-03 21:56:55 +0000 math/polyclipper: New port: Library to clip polygons (in 2D) and polyhedra (in 3D) by planes --- math/Makefile | 1 + math/polyclipper/Makefile | 36 +++++++++++++++++++++++++++++ math/polyclipper/distinfo | 7 ++++++ math/polyclipper/files/patch-CMakeLists.txt | 32 +++++++++++++++++++++++++ math/polyclipper/pkg-descr | 8 +++++++ math/polyclipper/pkg-plist | 11 +++++++++ 6 files changed, 95 insertions(+) diff --git a/math/Makefile b/math/Makefile index 46326e070e49..9808e93301c4 100644 --- a/math/Makefile +++ b/math/Makefile @@ -842,6 +842,7 @@ SUBDIR += ploticus-nox11 SUBDIR += plplot SUBDIR += poly2tri + SUBDIR += polyclipper SUBDIR += polylib SUBDIR += polymake SUBDIR += primecount diff --git a/math/polyclipper/Makefile b/math/polyclipper/Makefile new file mode 100644 index 000000000000..c18d8c3713b0 --- /dev/null +++ b/math/polyclipper/Makefile @@ -0,0 +1,36 @@ +PORTNAME= polyclipper +DISTVERSIONPREFIX= v +DISTVERSION= 1.2.3-2 +DISTVERSIONSUFFIX= -g2a727eb +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library to clip polygons (in 2D) and polyhedra (in 3D) by planes +WWW= https://github.com/LLNL/PolyClipper + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake + +USE_GITHUB= yes +GH_ACCOUNT= LLNL +GH_PROJECT= PolyClipper +GH_TUPLE= llnl:blt:0ae6bd2:blt/cmake/blt \ + jmikeowen:PYB11Generator:f351df2:cmake/PYB11Generator + +CMAKE_ON= ENABLE_CXXONLY # otherwise it looks for python2 +CMAKE_OFF= BUILD_TESTING + +NO_BUILD= yes +NO_ARCH= yes + +do-test: +.for f in test_array_vector_2d.cc test_array_vector_3d.cc + @${ECHO} "==> testing $f" + @cd ${WRKSRC}/test/test_array_vector && \ + ${CXX} ${CXXFLAGS} ${LDFLAGS} -o ${f}.bin ${f} -I${STAGEDIR}${PREFIX}/include && \ + ./${f}.bin +.endfor + +.include diff --git a/math/polyclipper/distinfo b/math/polyclipper/distinfo new file mode 100644 index 000000000000..7faa1e547491 --- /dev/null +++ b/math/polyclipper/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1670066215 +SHA256 (LLNL-PolyClipper-v1.2.3-2-g2a727eb_GH0.tar.gz) = 6a0d2734a9cdc88e575134a7a4f0603456aa80d90fd316ace20f85d1526e7e98 +SIZE (LLNL-PolyClipper-v1.2.3-2-g2a727eb_GH0.tar.gz) = 275308 +SHA256 (llnl-blt-0ae6bd2_GH0.tar.gz) = a881609c8b3048487a230b696e38a48cb3f11c2a00bbb03034d0700fa18cf2d7 +SIZE (llnl-blt-0ae6bd2_GH0.tar.gz) = 1178467 +SHA256 (jmikeowen-PYB11Generator-f351df2_GH0.tar.gz) = 036462d577b08ac6e6c45eac4b691cda9314364ebb931dfd93d677a71c3b3e3d +SIZE (jmikeowen-PYB11Generator-f351df2_GH0.tar.gz) = 64833 diff --git a/math/polyclipper/files/patch-CMakeLists.txt b/math/polyclipper/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..24c560204f66 --- /dev/null +++ b/math/polyclipper/files/patch-CMakeLists.txt @@ -0,0 +1,32 @@ +--- CMakeLists.txt.orig 2021-12-29 18:25:59 UTC ++++ CMakeLists.txt +@@ -22,18 +22,18 @@ option(ENABLE_DOCS "enable the sphinx documentation" O + #------------------------------------------------------------------------------- + set(ENABLE_OPENMP ON CACHE BOOL "") + +-if (NOT POLYCLIPPER_BLT_DIR) ++if (FALSE AND NOT POLYCLIPPER_BLT_DIR) + set (POLYCLIPPER_BLT_REL_DIR "${PROJECT_SOURCE_DIR}/cmake/blt" CACHE PATH "") + get_filename_component(POLYCLIPPER_BLT_DIR "${POLYCLIPPER_BLT_REL_DIR}" ABSOLUTE) + endif() + +-if (NOT EXISTS "${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake") ++if (FALSE AND NOT EXISTS "${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake") + message(FATAL_ERROR + "${POLYCLIPPER_BLT_DIR} is not present.\n" + "call cmake with -DPOLYCLIPPER_BLT_DIR=/your/installation/of/blt\n") + endif() + +-include(${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake) ++#include(${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake) + + #------------------------------------------------------------------------------- + # Install +@@ -118,4 +118,6 @@ endif() + #------------------------------------------------------------------------------- + # Add any tests + #------------------------------------------------------------------------------- +-add_subdirectory(test/test_array_vector) ++if (BUILD_TESTING) ++ add_subdirectory(test/test_array_vector) ++endif() diff --git a/math/polyclipper/pkg-descr b/math/polyclipper/pkg-descr new file mode 100644 index 000000000000..fbeefbde9e46 --- /dev/null +++ b/math/polyclipper/pkg-descr @@ -0,0 +1,8 @@ +Polytope is a C++ library for generating polygonal and polyhedral meshes. +It makes use of various 2D and 3D tessellation techniques, but provides +a single representation for these tessellations, and a simple interface +for generating them. + +Polytope has a simple C interface for use with other languages. It also +includes bindings for Python. These bindings allow you to easily incorporate +Polytope into your own mesh generation tools. diff --git a/math/polyclipper/pkg-plist b/math/polyclipper/pkg-plist new file mode 100644 index 000000000000..43c53739800a --- /dev/null +++ b/math/polyclipper/pkg-plist @@ -0,0 +1,11 @@ +include/polyclipper2d.hh +include/polyclipper2dImpl.hh +include/polyclipper3d.hh +include/polyclipper3dImpl.hh +include/polyclipper_adapter.hh +include/polyclipper_plane.hh +include/polyclipper_serialize.hh +include/polyclipper_serializeImpl.hh +include/polyclipper_utilities.hh +include/polyclipper_vector2d.hh +include/polyclipper_vector3d.hh