math/pffft: Remove port
Niche use case, not aligned with broad server application needs
This commit is contained in:
@@ -4985,6 +4985,7 @@ math/pear-Math_Combinatorics
|
||||
math/perlinnoise
|
||||
math/petanque
|
||||
math/petiga
|
||||
math/pffft
|
||||
math/plplot
|
||||
math/poly2tri
|
||||
math/psurface
|
||||
|
||||
@@ -182,7 +182,6 @@
|
||||
SUBDIR += pear-Math_BigInteger
|
||||
SUBDIR += pecl-bitset
|
||||
SUBDIR += permlib
|
||||
SUBDIR += pffft
|
||||
SUBDIR += php81-bcmath
|
||||
SUBDIR += php81-gmp
|
||||
SUBDIR += php82-bcmath
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
PORTNAME= pffft
|
||||
PORTVERSION= 2022.12.19 # use date because this library is unlikely to ever have releases
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Pretty Fast FFT (PFFFT) library
|
||||
WWW= https://github.com/marton78/pffft
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||
|
||||
USES= cmake
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= marton78
|
||||
GH_TAGNAME= e0bf595
|
||||
|
||||
CMAKE_ON= BUILD_SHARED_LIBS INSTALL_PFDSP INSTALL_PFFASTCONV
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == i386
|
||||
CFLAGS+= -msse2
|
||||
CXXFLAGS+= -msse2 # fixes error: always_inline function '_mm_unpacklo_ps' requires target feature 'sse', but would be inlined into function 'pffft_zreorder' that is compiled without support for 'sse'
|
||||
.elif ${ARCH:Mpowerpc*}
|
||||
CMAKE_ARGS+= -DUSE_SIMD:BOOL=OFF #https://github.com/marton78/pffft/issues/55
|
||||
.endif
|
||||
|
||||
post-install: # move headers into a dedicated directory
|
||||
cd ${STAGEDIR}${PREFIX} && \
|
||||
${MKDIR} include/${PORTNAME} && \
|
||||
${MV} include/*.h include/*.hpp include/${PORTNAME}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1737159043
|
||||
SHA256 (marton78-pffft-2022.12.19-e0bf595_GH0.tar.gz) = 2bd6fb3df6a65588b6ef4ee36f4930449dabca392125a0e07d74b780fc32a943
|
||||
SIZE (marton78-pffft-2022.12.19-e0bf595_GH0.tar.gz) = 158769
|
||||
@@ -1,57 +0,0 @@
|
||||
--- CMakeLists.txt.orig 2022-12-19 10:24:43 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -170,7 +170,7 @@ endif()
|
||||
|
||||
######################################################
|
||||
|
||||
-add_library(PFFFT STATIC ${FLOAT_SOURCES} ${DOUBLE_SOURCES} pffft_common.c pffft_priv_impl.h pffft.hpp )
|
||||
+add_library(PFFFT ${FLOAT_SOURCES} ${DOUBLE_SOURCES} pffft_common.c pffft_priv_impl.h pffft.hpp )
|
||||
set_target_properties(PFFFT PROPERTIES OUTPUT_NAME "pffft")
|
||||
target_compile_definitions(PFFFT PRIVATE _USE_MATH_DEFINES)
|
||||
target_activate_c_compiler_warnings(PFFFT)
|
||||
@@ -196,7 +196,7 @@ if (PFFFT_USE_TYPE_FLOAT)
|
||||
######################################################
|
||||
|
||||
if (PFFFT_USE_TYPE_FLOAT)
|
||||
- add_library(PFDSP STATIC pf_mixer.cpp pf_mixer.h pf_cplx.h pf_carrier.cpp pf_carrier.h pf_cic.cpp pf_cic.h fmv.h )
|
||||
+ add_library(PFDSP pf_mixer.cpp pf_mixer.h pf_cplx.h pf_carrier.cpp pf_carrier.h pf_cic.cpp pf_cic.h fmv.h )
|
||||
set_property(TARGET PFDSP PROPERTY CXX_STANDARD 11)
|
||||
set_property(TARGET PFDSP PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
set_target_properties(PFDSP PROPERTIES OUTPUT_NAME "pfdsp")
|
||||
@@ -225,7 +225,7 @@ if (PFFFT_USE_FFTPACK)
|
||||
if (PFFFT_USE_FFTPACK)
|
||||
|
||||
# float / single precision
|
||||
- add_library(FFTPACK_FLOAT STATIC fftpack.c fftpack.h)
|
||||
+ add_library(FFTPACK_FLOAT fftpack.c fftpack.h)
|
||||
target_compile_definitions(FFTPACK_FLOAT PRIVATE _USE_MATH_DEFINES)
|
||||
target_activate_c_compiler_warnings(FFTPACK_FLOAT)
|
||||
target_link_libraries( FFTPACK_FLOAT ${MATHLIB} )
|
||||
@@ -234,7 +234,7 @@ if (PFFFT_USE_FFTPACK)
|
||||
)
|
||||
|
||||
# double precision
|
||||
- add_library(FFTPACK_DOUBLE STATIC fftpack.c fftpack.h)
|
||||
+ add_library(FFTPACK_DOUBLE fftpack.c fftpack.h)
|
||||
target_compile_definitions(FFTPACK_DOUBLE PRIVATE _USE_MATH_DEFINES)
|
||||
target_compile_definitions(FFTPACK_DOUBLE PUBLIC FFTPACK_DOUBLE_PRECISION)
|
||||
target_activate_c_compiler_warnings(FFTPACK_DOUBLE)
|
||||
@@ -258,7 +258,7 @@ if (PFFFT_USE_TYPE_FLOAT)
|
||||
|
||||
if (PFFFT_USE_TYPE_FLOAT)
|
||||
# only 'float' supported in PFFASTCONV
|
||||
- add_library(PFFASTCONV STATIC pffastconv.c pffastconv.h pffft.h )
|
||||
+ add_library(PFFASTCONV pffastconv.c pffastconv.h pffft.h )
|
||||
set_target_properties(PFFASTCONV PROPERTIES OUTPUT_NAME "pffastconv")
|
||||
target_compile_definitions(PFFASTCONV PRIVATE _USE_MATH_DEFINES)
|
||||
target_activate_c_compiler_warnings(PFFASTCONV)
|
||||
@@ -597,7 +597,9 @@ endif()
|
||||
|
||||
######################################################
|
||||
|
||||
+if (FREEBSD_BUILD_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
+endif()
|
||||
|
||||
######################################################
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- pffft_double.c.orig 2022-01-30 17:29:25 UTC
|
||||
+++ pffft_double.c
|
||||
@@ -75,6 +75,8 @@
|
||||
# include <malloc.h>
|
||||
#elif defined(__MINGW32__) || defined(__MINGW64__)
|
||||
# include <malloc.h>
|
||||
+#elif defined(__FreeBSD__)
|
||||
+# include <stdlib.h>
|
||||
#else
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
@@ -1,12 +0,0 @@
|
||||
PFFFT does 1D Fast Fourier Transforms, of single precision real and
|
||||
complex vectors. It tries do it fast, it tries to be correct, and it
|
||||
tries to be small. Computations do take advantage of SSE1 instructions
|
||||
on x86 cpus, Altivec on powerpc cpus, and NEON on ARM cpus.
|
||||
|
||||
PFFFT is a fork of Julien Pommier's library on bitbucket with some
|
||||
changes and additions.
|
||||
|
||||
PFFASTCONV does fast convolution (FIR filtering), of single precision
|
||||
real vectors, utilizing the PFFFT library.
|
||||
|
||||
PFDSP contains a few other signal processing functions.
|
||||
@@ -1,11 +0,0 @@
|
||||
include/pffft/pf_carrier.h
|
||||
include/pffft/pf_cic.h
|
||||
include/pffft/pf_cplx.h
|
||||
include/pffft/pf_mixer.h
|
||||
include/pffft/pffastconv.h
|
||||
include/pffft/pffft.h
|
||||
include/pffft/pffft.hpp
|
||||
include/pffft/pffft_double.h
|
||||
lib/libpfdsp.so
|
||||
lib/libpffastconv.so
|
||||
lib/libpffft.so
|
||||
Reference in New Issue
Block a user