From nobody Mon Nov 07 08:04:32 2022 X-Original-To: dev-commits-ports-all@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 4N5P010f7Dz4hJn5; Mon, 7 Nov 2022 08:04:33 +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 4N5P0103ZBz3pks; Mon, 7 Nov 2022 08:04:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667808273; 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=4zM9oC4GXMRidkV1MRY8S9X1Z3kTp8ApdAphqmXd9ME=; b=S6TRjHzeGNOoBb7Xql3ovKPNoXYgjckhlc/gGP7G8dXXm5cYpnxgcLhOTKPwNog5CrXIsS GG5dlUExgozBf3pKPohxlG5JTdvL7rc8oWdlBFSi+Wx1pZryZB5LE4vfa3KzIViqfa/al1 j67qh2uqXP8OqnPWxJB6iT4fvYA5cxICU6PWEv9eCYADvlEMxB2kzC6BqiB/8KB7ygF5KH rbyhvWrm18MMePft9ju5dmaaytGbWiUgJBK9DHPEoEifgjrWtHqt3nppiOlqHMN5dIyX+3 xzABn6F8DCp5zuczkluBJcyyA7CWzJ0lwRRpNNIWqo7LduTgPsMLp8mSvvvgBw== 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 4N5P006CFcztDt; Mon, 7 Nov 2022 08:04:32 +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 2A784Wk7010000; Mon, 7 Nov 2022 08:04:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A784Wvu009999; Mon, 7 Nov 2022 08:04:32 GMT (envelope-from git) Date: Mon, 7 Nov 2022 08:04:32 GMT Message-Id: <202211070804.2A784Wvu009999@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: 683f6ce2cb85 - main - math/libfixmath: New port: Cross-platform fixed point math library List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 683f6ce2cb85fd474aa55a04f6f2188bc76a0c41 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667808273; 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=4zM9oC4GXMRidkV1MRY8S9X1Z3kTp8ApdAphqmXd9ME=; b=t4CwbMRVedtY79hS8EXNP+Dlgn8qp5Go5gUe4xOaiNsPsVVOjjr4O0Vse0yWjt8qFuPM2g oKZ0nELaj44eP4t9MXCAjaXtZf6OlmgpTeiIJWfMCOFxLCevi8DBDjAu4mcWBxYpDxXu2P Xk1cRlFA3EiK5K3nsogj6H2MSuzgyZdXFI3wpCWW9WpRnixY7ep4O+fIyqijnLi5d9GYGh 3PCCzWEnoxeecsijXDgBPnlFEN6xtzplF6vbiJK3Ln4TbsHFLFpGa6zmZopl6IhjQe0hUL TEOsY/95BfFjVRDarsX6rdesovSdQZYv1hkIg/3RMsaiyRUNKdJEzRfOGeJPjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667808273; a=rsa-sha256; cv=none; b=JgOwHBa9LaDUe+qlz0odB/+GpiwBue7pJlxHb0tuN8cMJqxvgeaoquUbupCelGpQtPjRPX a63aq4CR5WxNPAoTy/bOf5CpaNbF42H6QCQoKax7R/otlSWPnISgBG83r7W3CKk4Ylp+sx iJmvzMKHU61WFIjt2x245TGEqqH3gWxMGLLBfMDzVSLPjblCRKfZhfCVUC4ANZErx6Bxr9 95yry+8duwiy7Iv7TEAZ/DQOwrYS76Y+TR6dVWMet7Pd3NaRtUjGr53ELsl6rks6vw7P4i F+zuntX0SsfBl8HXawnNxRiU4k7rRJXhrYKBgENqtue1khDNW0PoszvlxmhxYQ== 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=683f6ce2cb85fd474aa55a04f6f2188bc76a0c41 commit 683f6ce2cb85fd474aa55a04f6f2188bc76a0c41 Author: Yuri Victorovich AuthorDate: 2022-11-07 07:05:49 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-07 08:04:27 +0000 math/libfixmath: New port: Cross-platform fixed point math library --- math/Makefile | 1 + math/libfixmath/Makefile | 27 +++++++++++++++++++++ math/libfixmath/distinfo | 3 +++ math/libfixmath/files/patch-CMakeLists.txt | 28 ++++++++++++++++++++++ .../files/patch-libfixmath_libfixmath.cmake | 13 ++++++++++ math/libfixmath/pkg-descr | 1 + math/libfixmath/pkg-plist | 8 +++++++ 7 files changed, 81 insertions(+) diff --git a/math/Makefile b/math/Makefile index 6aa7f98e331d..e3dd42b1f730 100644 --- a/math/Makefile +++ b/math/Makefile @@ -433,6 +433,7 @@ SUBDIR += libbraiding SUBDIR += libccd SUBDIR += libdivide + SUBDIR += libfixmath SUBDIR += libflame SUBDIR += libhomfly SUBDIR += libmesh diff --git a/math/libfixmath/Makefile b/math/libfixmath/Makefile new file mode 100644 index 000000000000..70419da7eb79 --- /dev/null +++ b/math/libfixmath/Makefile @@ -0,0 +1,27 @@ +PORTNAME= libfixmath +PORTVERSION= g20220915 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cross-platform fixed point math library +WWW= https://github.com/PetteriAimonen/libfixmath + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing compiler:c++11-lang + +USE_GITHUB= yes +GH_ACCOUNT= PetteriAimonen +GH_TAGNAME= 1416c99 + +CMAKE_ON= BUILD_SHARED_LIBS + +do-install: + # headers + ${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/libfixmath/*.h* ${STAGEDIR}${PREFIX}/include/${PORTNAME} + # library + ${INSTALL_LIB} ${BUILD_WRKSRC}/libfixmath.so ${STAGEDIR}${PREFIX}/lib + +.include diff --git a/math/libfixmath/distinfo b/math/libfixmath/distinfo new file mode 100644 index 000000000000..22ce4ad2a711 --- /dev/null +++ b/math/libfixmath/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1667802450 +SHA256 (PetteriAimonen-libfixmath-g20220915-1416c99_GH0.tar.gz) = 3e9ee9cb4c6aa06763c5be01ae24486ebc888fd51f8412f33424154e78c6eca3 +SIZE (PetteriAimonen-libfixmath-g20220915-1416c99_GH0.tar.gz) = 267430 diff --git a/math/libfixmath/files/patch-CMakeLists.txt b/math/libfixmath/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..0647c6b3251c --- /dev/null +++ b/math/libfixmath/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +--- CMakeLists.txt.orig 2022-09-15 10:24:31 UTC ++++ CMakeLists.txt +@@ -11,17 +11,23 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=return-type") + + include(libfixmath/libfixmath.cmake) ++if (BUILD_TESTING) + include(tests/tests.cmake) ++endif() + + file(GLOB fixsingen-srcs fixsingen/*.c) ++if (BUILD_TESTING) + file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h) ++endif() + ++if (BUILD_TESTING) + add_executable(fixtest ${fixtest-srcs}) +-target_link_libraries(fixtest PRIVATE libfixmath m) ++target_link_libraries(fixtest PRIVATE fixmath m) + target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR}) ++endif() + + add_executable(fixsingen ${fixsingen-srcs}) +-target_link_libraries(fixsingen PRIVATE libfixmath m) ++target_link_libraries(fixsingen PRIVATE fixmath m) + target_include_directories(fixsingen PRIVATE ${CMAKE_SOURCE_DIR}) + + diff --git a/math/libfixmath/files/patch-libfixmath_libfixmath.cmake b/math/libfixmath/files/patch-libfixmath_libfixmath.cmake new file mode 100644 index 000000000000..2a95d084d169 --- /dev/null +++ b/math/libfixmath/files/patch-libfixmath_libfixmath.cmake @@ -0,0 +1,13 @@ +--- libfixmath/libfixmath.cmake.orig 2022-09-15 10:24:31 UTC ++++ libfixmath/libfixmath.cmake +@@ -1,6 +1,6 @@ + file(GLOB libfixmath-srcs libfixmath/*.c) + +-add_library(libfixmath STATIC ${libfixmath-srcs}) ++add_library(fixmath ${libfixmath-srcs}) + +-target_include_directories(libfixmath INTERFACE +- ${CMAKE_CURRENT_SOURCE_DIR}) +\ No newline at end of file ++target_include_directories(fixmath INTERFACE ++ ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/math/libfixmath/pkg-descr b/math/libfixmath/pkg-descr new file mode 100644 index 000000000000..9e67c9f90bba --- /dev/null +++ b/math/libfixmath/pkg-descr @@ -0,0 +1 @@ +Libfixmath implements Q16.16 format fixed point operations in C. diff --git a/math/libfixmath/pkg-plist b/math/libfixmath/pkg-plist new file mode 100644 index 000000000000..bf98271e96eb --- /dev/null +++ b/math/libfixmath/pkg-plist @@ -0,0 +1,8 @@ +include/libfixmath/fix16.h +include/libfixmath/fix16.hpp +include/libfixmath/fix16_trig_sin_lut.h +include/libfixmath/fixmath.h +include/libfixmath/fract32.h +include/libfixmath/int64.h +include/libfixmath/uint32.h +lib/libfixmath.so