pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math add math/kissfft
details: https://anonhg.NetBSD.org/pkgsrc/rev/9759bc3c1a1b
branches: trunk
changeset: 450023:9759bc3c1a1b
user: nia <nia%pkgsrc.org@localhost>
date: Fri Apr 09 11:00:28 2021 +0000
description:
add math/kissfft
KISS FFT - A mixed-radix Fast Fourier Transform
There are many great fft libraries already around. Kiss FFT is not trying
to be better than any of them. It only attempts to be a reasonably efficient,
moderately useful FFT that can use fixed or floating data types and can be
incorporated into someone's C program in a few minutes with trivial licensing.
diffstat:
math/Makefile | 3 +-
math/kissfft/DESCR | 6 +++++
math/kissfft/Makefile | 22 ++++++++++++++++++++
math/kissfft/PLIST | 18 ++++++++++++++++
math/kissfft/distinfo | 7 ++++++
math/kissfft/patches/patch-CMakeLists.txt | 33 +++++++++++++++++++++++++++++++
6 files changed, 88 insertions(+), 1 deletions(-)
diffs (123 lines):
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/Makefile
--- a/math/Makefile Fri Apr 09 10:32:39 2021 +0000
+++ b/math/Makefile Fri Apr 09 11:00:28 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.491 2021/03/18 03:46:56 markd Exp $
+# $NetBSD: Makefile,v 1.492 2021/04/09 11:00:28 nia Exp $
COMMENT= Mathematics
@@ -220,6 +220,7 @@
SUBDIR+= kalgebra
SUBDIR+= kalk
SUBDIR+= kcalc
+SUBDIR+= kissfft
SUBDIR+= lapack
SUBDIR+= libffm
SUBDIR+= libint
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/kissfft/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kissfft/DESCR Fri Apr 09 11:00:28 2021 +0000
@@ -0,0 +1,6 @@
+KISS FFT - A mixed-radix Fast Fourier Transform
+
+There are many great fft libraries already around. Kiss FFT is not trying
+to be better than any of them. It only attempts to be a reasonably efficient,
+moderately useful FFT that can use fixed or floating data types and can be
+incorporated into someone's C program in a few minutes with trivial licensing.
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/kissfft/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kissfft/Makefile Fri Apr 09 11:00:28 2021 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2021/04/09 11:00:28 nia Exp $
+
+DISTNAME= kissfft-131.1.0
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mborgerding/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/mborgerding/kissfft
+COMMENT= Simple mixed-radix Fast Fourier Transform
+LICENSE= modified-bsd
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DKISSFFT_TEST=OFF
+
+PKGCONFIG_OVERRIDE+= kissfft.pc.in
+PKGCONFIG_OVERRIDE+= kissfft-float.pc
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/kissfft/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kissfft/PLIST Fri Apr 09 11:00:28 2021 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/09 11:00:28 nia Exp $
+bin/fastconv-float
+bin/fastconvr-float
+bin/fft-float
+bin/psdpng-float
+include/kissfft/kiss_fft.h
+include/kissfft/kiss_fftnd.h
+include/kissfft/kiss_fftndr.h
+include/kissfft/kiss_fftr.h
+include/kissfft/kissfft.hh
+lib/cmake/kissfft/kissfft-config-version.cmake
+lib/cmake/kissfft/kissfft-config.cmake
+lib/cmake/kissfft/kissfft-float-shared-targets-noconfig.cmake
+lib/cmake/kissfft/kissfft-float-shared-targets.cmake
+lib/libkissfft-float.so
+lib/libkissfft-float.so.131
+lib/libkissfft-float.so.${PKGVERSION}
+lib/pkgconfig/kissfft-float.pc
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/kissfft/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kissfft/distinfo Fri Apr 09 11:00:28 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/04/09 11:00:28 nia Exp $
+
+SHA1 (kissfft-131.1.0.tar.gz) = e313f318ed7bf1b2d4226f3ce4434788896fb089
+RMD160 (kissfft-131.1.0.tar.gz) = 3a9022bda35f4b845da93fc679aa8517d146a6e4
+SHA512 (kissfft-131.1.0.tar.gz) = bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708
+Size (kissfft-131.1.0.tar.gz) = 52383 bytes
+SHA1 (patch-CMakeLists.txt) = 630b68eacad245051ffd0350abb09ab3707ca864
diff -r 2fdd630264c2 -r 9759bc3c1a1b math/kissfft/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kissfft/patches/patch-CMakeLists.txt Fri Apr 09 11:00:28 2021 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2021/04/09 11:00:28 nia Exp $
+
+-lm is not GNU/Linux specific...
+
+--- CMakeLists.txt.orig 2021-04-09 10:52:02.217349618 +0000
++++ CMakeLists.txt
+@@ -105,7 +105,7 @@ endif()
+ # Add GNUInstallDirs for GNU infrastructure before target)include_directories
+ #
+
+-if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
++if(UNIX)
+ include(GNUInstallDirs)
+ endif()
+
+@@ -242,7 +242,7 @@ add_library(kissfft::kissfft-${KISSFFT_D
+ # Build with libm (-lm) on Linux and kFreeBSD
+ #
+
+-if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
++if(UNIX)
+ target_link_libraries(kissfft PRIVATE m)
+ endif()
+
+@@ -258,7 +258,7 @@ function(add_kissfft_executable NAME)
+ # Build with libm (-lm) on Linux and kFreeBSD
+ #
+
+- if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
++ if(UNIX)
+ target_link_libraries(${NAME} PRIVATE m)
+ endif()
+
Home |
Main Index |
Thread Index |
Old Index