pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/libfixmath math/libfixmath: import libfixmath-0.0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f87e2267d4c
branches:  trunk
changeset: 383924:2f87e2267d4c
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Wed Aug 24 12:49:24 2022 +0000

description:
math/libfixmath: import libfixmath-0.0.0pre20220623

Cross Platform Fixed Point Maths Library

Libfixmath implements Q16.16 format fixed point operations in C.

diffstat:

 math/libfixmath/DESCR                                     |   3 +
 math/libfixmath/Makefile                                  |  20 ++++++++
 math/libfixmath/PLIST                                     |   9 +++
 math/libfixmath/buildlink3.mk                             |  12 +++++
 math/libfixmath/distinfo                                  |   7 +++
 math/libfixmath/patches/patch-CMakeLists.txt              |  34 +++++++++++++++
 math/libfixmath/patches/patch-libfixmath_libfixmath.cmake |  18 +++++++
 7 files changed, 103 insertions(+), 0 deletions(-)

diffs (131 lines):

diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/DESCR     Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,3 @@
+Cross Platform Fixed Point Maths Library
+
+Libfixmath implements Q16.16 format fixed point operations in C.
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/Makefile  Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+
+DISTNAME=      libfixmath-0.0.0pre20220623
+CATEGORIES=    math
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=PetteriAimonen/}
+GITHUB_PROJECT=        libfixmath
+GITHUB_TAG=    809bceac540b14d182589ce4c6f74330a2ff682a
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/PetteriAimonen/libfixmath
+COMMENT=       Q16.16 format fixed point operations in C
+LICENSE=       mit
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++11
+
+CMAKE_ARGS+=   -DBUILD_SHARED_LIBS=ON
+INSTALL_TARGET=        install
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/PLIST     Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+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/liblibfixmath.so
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/buildlink3.mk     Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+
+BUILDLINK_TREE+=       libfixmath
+
+.if !defined(LIBFIXMATH_BUILDLINK3_MK)
+LIBFIXMATH_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libfixmath+=     libfixmath>=0.0.0pre20220623
+BUILDLINK_PKGSRCDIR.libfixmath?=       ../../math/libfixmath
+.endif # LIBFIXMATH_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libfixmath
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/distinfo  Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+
+BLAKE2s (libfixmath-0.0.0pre20220623-809bceac540b14d182589ce4c6f74330a2ff682a.tar.gz) = d2098885fea9dad90fcc23b2d8c2e55e9b58211886f3e440431425755e139f07
+SHA512 (libfixmath-0.0.0pre20220623-809bceac540b14d182589ce4c6f74330a2ff682a.tar.gz) = 
45cead77ef06c670d3ec4fbd8ebdafb3b9f7e053d1aa9b9ac9d6bea3127df103a9bdf020bde58e35bc42c66e59b8c8e53ddbcc24b2a2284b80120929d44125a3
+Size (libfixmath-0.0.0pre20220623-809bceac540b14d182589ce4c6f74330a2ff682a.tar.gz) = 267419 bytes
+SHA1 (patch-CMakeLists.txt) = 514b8cab50ff75cc8c3e3f445728c484462ec08d
+SHA1 (patch-libfixmath_libfixmath.cmake) = b4e736b324c54340c6086b9266bce79bb178c82f
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/patches/patch-CMakeLists.txt      Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+
+* Do not conflict with directories.
+* Install library and header files.
+
+--- CMakeLists.txt.orig        2022-06-23 05:57:58.000000000 +0000
++++ CMakeLists.txt
+@@ -14,14 +14,19 @@ include(libfixmath/libfixmath.cmake)
+ include(tests/tests.cmake)
+ 
+ file(GLOB fixsingen-srcs fixsingen/*.c)
+-file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h)
++file(GLOB fixtest-srcs fixtest/*.c)
+ 
+-add_executable(fixtest ${fixtest-srcs})
+-target_link_libraries(fixtest PRIVATE libfixmath m)
+-target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR})
++add_executable(fixtest.bin ${fixtest-srcs})
++target_link_libraries(fixtest.bin PRIVATE libfixmath m)
++target_include_directories(fixtest.bin PRIVATE ${CMAKE_SOURCE_DIR})
+ 
+-add_executable(fixsingen ${fixsingen-srcs})
+-target_link_libraries(fixsingen PRIVATE libfixmath m)
+-target_include_directories(fixsingen PRIVATE ${CMAKE_SOURCE_DIR})
++add_executable(fixsingen.bin ${fixsingen-srcs})
++target_link_libraries(fixsingen.bin PRIVATE libfixmath m)
++target_include_directories(fixsingen.bin PRIVATE ${CMAKE_SOURCE_DIR})
+ 
++install(TARGETS libfixmath
++      ARCHIVE DESTINATION lib
++      LIBRARY DESTINATION lib
++)
+ 
++install(FILES ${libfixmath-includes} DESTINATION include/libfixmath)
diff -r 2c1183d7b722 -r 2f87e2267d4c math/libfixmath/patches/patch-libfixmath_libfixmath.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/libfixmath/patches/patch-libfixmath_libfixmath.cmake Wed Aug 24 12:49:24 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-libfixmath_libfixmath.cmake,v 1.1 2022/08/24 12:49:24 ryoon Exp $
+
+* Honor BUILD_SHARED_LIBS.
+* install libraries and header files.
+
+--- libfixmath/libfixmath.cmake.orig   2022-06-23 05:57:58.000000000 +0000
++++ libfixmath/libfixmath.cmake
+@@ -1,3 +1,8 @@
+-file(GLOB libfixmath-srcs libfixmath/*.h libfixmath/*.hpp libfixmath/*.c)
++file(GLOB libfixmath-srcs libfixmath/*.c)
++file(GLOB libfixmath-includes libfixmath/*.h libfixmath/*.hpp)
+ 
+-add_library(libfixmath STATIC ${libfixmath-srcs})
++add_library(libfixmath ${libfixmath-srcs})
++target_include_directories(libfixmath INTERFACE
++      $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libfixmath>
++      $<INSTALL_INTERFACE:include>
++)



Home | Main Index | Thread Index | Old Index