From nobody Tue Oct 18 07:40:19 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 4Ms5PH6v6Nz4gKVY; Tue, 18 Oct 2022 07:40:19 +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 4Ms5PH6Kgbz3mPb; Tue, 18 Oct 2022 07:40:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666078819; 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=Yop06b0vrbKmcRP+Zgi3luwggmJ+64pzBiopuLoqNWk=; b=D+XbFeACqzGCa2M4hIr4JMHCZBbJHmo2Gk4kixOAYZ+Y466Og/tA8HDT8v2ExYt0OK9WQN Hqz0ADGKpbeXfA844bixT2dqEdtmdiUL66ZWaEfTK0QNsKnO524vsgY7spKoLPzDahkZeQ HxqZaJ84NZ2p+ZY5hSeDpV33ovz+ywoYYAj6ADf9QBN58aIWzeMN3rK0k0rJxooFgc5WMd YfuuSzJexYqdAqC6O3KppW1Z2Fp+LOpb53K9mm2g1PC549rwKCwwyrH3iK6uhSOX5IjZ1/ M2wIOWQIwJhA/ORAU7wzu1INqMY8KXxK8VbYzJZUt6WtWXzzdxc9CXQK9WnOYA== 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 4Ms5PH5Nyhz16D4; Tue, 18 Oct 2022 07:40:19 +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 29I7eJTr017629; Tue, 18 Oct 2022 07:40:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29I7eJdM017623; Tue, 18 Oct 2022 07:40:19 GMT (envelope-from git) Date: Tue, 18 Oct 2022 07:40:19 GMT Message-Id: <202210180740.29I7eJdM017623@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: 1ca7c87009aa - main - graphics/py-f3d: New port: Fast and minimalist 3D viewer 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: 1ca7c87009aa947e76936ece632870064b76aa4a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666078819; 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=Yop06b0vrbKmcRP+Zgi3luwggmJ+64pzBiopuLoqNWk=; b=y3JXMgAJ5Wa+uhtgpLmeaMVmrzBq+h7aCVK2OECRk/2ftXYI7ncAItDWMfyLsgiN58yUNC W9e4VmhC5VORhDBwr+w6QboO+a/oVEM5B1Aq/CUW7WPiFv5K+nJgocBs/3Q8dvUkH+O1JJ ibiDISQLc98dtmhO9cMnjKcRUFRtZxr17+2MSuk9aVW7UD28QNJ+5dbjRRsqsWV3A7YEJI vEJuSS9fYAO0+M0Le/ij/dTF+KScvqPX9a4uarRXKH62c6rbjMimAuUSWmiwnlPd8kl2Du y7+spa4qUYJLMjvMDluXzIMZ7CvkmsmO33TDYe2h9nJ8vk1qoAwQzqQKcoHXiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666078819; a=rsa-sha256; cv=none; b=l1/hy4+1/r9GTpaYO2sfkKpAz1zS8mBqKpOVtDFlWQoK1QKw2HEl1qFlXaO+3T3nA0Xzdd UsFiiezihewWztaGR/tGGRbNkOLio1/t7FkndPXsddozjzf7AKgurZrLAc35PyuGVTVFbK igm7ifHnxB8S9/DhbctAptyrzd8EolV1bpRYJ7HZDb1RbgdO94wEGIfOlkP3KjZ1Hvd6du 58BtK2u79DUuZ+lXvfyJEFyNLdGtngXGGYA3erLKRTfEVB9sxsqh84gCjKQscdaHv1rwAh BOX4AHF0qBT/A+9UqPsXqZaudoAtQqjv0jCst+N8S5l5N34hlB6XfvqJEkO57Q== 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=1ca7c87009aa947e76936ece632870064b76aa4a commit 1ca7c87009aa947e76936ece632870064b76aa4a Author: Yuri Victorovich AuthorDate: 2022-10-18 07:39:35 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-18 07:40:15 +0000 graphics/py-f3d: New port: Fast and minimalist 3D viewer --- graphics/Makefile | 1 + graphics/py-f3d/Makefile | 26 ++++++++++++++++++++++++++ graphics/py-f3d/distinfo | 3 +++ graphics/py-f3d/files/patch-CMakeLists.txt | 28 ++++++++++++++++++++++++++++ graphics/py-f3d/pkg-descr | 5 +++++ graphics/py-f3d/pkg-plist | 1 + 6 files changed, 64 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index f5a7fff6c58f..914365b62d2e 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -846,6 +846,7 @@ SUBDIR += py-django-easy-thumbnails SUBDIR += py-djvulibre SUBDIR += py-exifread + SUBDIR += py-f3d SUBDIR += py-face_recognition SUBDIR += py-face_recognition_models SUBDIR += py-fiona diff --git a/graphics/py-f3d/Makefile b/graphics/py-f3d/Makefile new file mode 100644 index 000000000000..3bbc5ea8518b --- /dev/null +++ b/graphics/py-f3d/Makefile @@ -0,0 +1,26 @@ +PORTNAME= f3d +DISTVERSIONPREFIX= v +DISTVERSION= 1.3.1 +CATEGORIES= graphics +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Fast and minimalist 3D viewer +WWW= https://f3d-app.github.io/f3d/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/../LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 +LIB_DEPENDS= libf3d.so:graphics/f3d + +USES= cmake:testing compiler:c++17-lang localbase:ldflags python + +USE_GITHUB= yes +GH_ACCOUNT= f3d-app + +WRKSRC_SUBDIR= python + +CXXFLAGS+= -I${LOCALBASE}/include/f3d + +.include diff --git a/graphics/py-f3d/distinfo b/graphics/py-f3d/distinfo new file mode 100644 index 000000000000..07fcead13c5e --- /dev/null +++ b/graphics/py-f3d/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662604096 +SHA256 (f3d-app-f3d-v1.3.1_GH0.tar.gz) = 653dc4044e14d0618c1d947a8ee85d2513e100b3fc24bd6e51830131a13e795d +SIZE (f3d-app-f3d-v1.3.1_GH0.tar.gz) = 35586414 diff --git a/graphics/py-f3d/files/patch-CMakeLists.txt b/graphics/py-f3d/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..434d9bd56e1a --- /dev/null +++ b/graphics/py-f3d/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +--- CMakeLists.txt.orig 2022-09-07 10:17:51 UTC ++++ CMakeLists.txt +@@ -1,10 +1,13 @@ ++cmake_minimum_required(VERSION 3.12) ++find_package(Python COMPONENTS Interpreter Development) + find_package(pybind11 2.2 REQUIRED) ++set(CMAKE_INSTALL_LIBDIR lib) + + pybind11_add_module(pyf3d F3DPythonBindings.cxx) + + target_compile_features(pyf3d PRIVATE cxx_std_14) + +-target_link_libraries(pyf3d PRIVATE libf3d) ++target_link_libraries(pyf3d PRIVATE f3d) + + set_target_properties(pyf3d PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" +@@ -23,6 +26,10 @@ endif() + if (APPLE OR UNIX) + set_target_properties(pyf3d PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") + endif () ++ ++set(PYTHON_INSTALL_PATH "${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages") ++install(TARGETS pyf3d ++ LIBRARY DESTINATION ${PYTHON_INSTALL_PATH} COMPONENT pythonmodule) + + # testing + if(BUILD_TESTING) diff --git a/graphics/py-f3d/pkg-descr b/graphics/py-f3d/pkg-descr new file mode 100644 index 000000000000..24a732007338 --- /dev/null +++ b/graphics/py-f3d/pkg-descr @@ -0,0 +1,5 @@ +F3D is a VTK-based 3D viewer following the KISS principle, so it is minimalist, +efficient, has no GUI, has simple interaction mechanisms and is fully +controllable using arguments in the command line. + +It supports a range of file formats, rendering and texturing options. diff --git a/graphics/py-f3d/pkg-plist b/graphics/py-f3d/pkg-plist new file mode 100644 index 000000000000..e570bcd7d382 --- /dev/null +++ b/graphics/py-f3d/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/f3d%%PYTHON_EXT_SUFFIX%%.so