pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/libfixmath
Module Name: pkgsrc
Committed By: ryoon
Date: Wed Aug 24 12:49:25 UTC 2022
Added Files:
pkgsrc/math/libfixmath: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/math/libfixmath/patches: patch-CMakeLists.txt
patch-libfixmath_libfixmath.cmake
Log Message:
math/libfixmath: import libfixmath-0.0.0pre20220623
Cross Platform Fixed Point Maths Library
Libfixmath implements Q16.16 format fixed point operations in C.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/math/libfixmath/DESCR \
pkgsrc/math/libfixmath/Makefile pkgsrc/math/libfixmath/PLIST \
pkgsrc/math/libfixmath/buildlink3.mk pkgsrc/math/libfixmath/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/libfixmath/patches/patch-CMakeLists.txt \
pkgsrc/math/libfixmath/patches/patch-libfixmath_libfixmath.cmake
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/math/libfixmath/DESCR
diff -u /dev/null pkgsrc/math/libfixmath/DESCR:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/DESCR Wed Aug 24 12:49:24 2022
@@ -0,0 +1,3 @@
+Cross Platform Fixed Point Maths Library
+
+Libfixmath implements Q16.16 format fixed point operations in C.
Index: pkgsrc/math/libfixmath/Makefile
diff -u /dev/null pkgsrc/math/libfixmath/Makefile:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/Makefile Wed Aug 24 12:49:24 2022
@@ -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"
Index: pkgsrc/math/libfixmath/PLIST
diff -u /dev/null pkgsrc/math/libfixmath/PLIST:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/PLIST Wed Aug 24 12:49:24 2022
@@ -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
Index: pkgsrc/math/libfixmath/buildlink3.mk
diff -u /dev/null pkgsrc/math/libfixmath/buildlink3.mk:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/buildlink3.mk Wed Aug 24 12:49:24 2022
@@ -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
Index: pkgsrc/math/libfixmath/distinfo
diff -u /dev/null pkgsrc/math/libfixmath/distinfo:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/distinfo Wed Aug 24 12:49:24 2022
@@ -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
Index: pkgsrc/math/libfixmath/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/math/libfixmath/patches/patch-CMakeLists.txt:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/patches/patch-CMakeLists.txt Wed Aug 24 12:49:24 2022
@@ -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)
Index: pkgsrc/math/libfixmath/patches/patch-libfixmath_libfixmath.cmake
diff -u /dev/null pkgsrc/math/libfixmath/patches/patch-libfixmath_libfixmath.cmake:1.1
--- /dev/null Wed Aug 24 12:49:25 2022
+++ pkgsrc/math/libfixmath/patches/patch-libfixmath_libfixmath.cmake Wed Aug 24 12:49:24 2022
@@ -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