2022-01-30 18:41:29 +01:00
PORTNAME = pffft
PORTVERSION = g20210806
CATEGORIES = math
MAINTAINER = yuri@FreeBSD.org
COMMENT = Pretty Fast FFT ( PFFFT) library
LICENSE = BSD3CLAUSE
LICENSE_FILE = ${ WRKSRC } /LICENSE.txt
USES = cmake
USE_LDCONFIG = yes
USE_GITHUB = yes
GH_ACCOUNT = marton78
GH_TAGNAME = 9603871
CMAKE_ON = BUILD_SHARED_LIBS INSTALL_PFDSP INSTALL_PFFASTCONV
2022-02-10 10:20:27 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ${ARCH} = = i386
2022-02-13 18:16:56 +01:00
CFLAGS += -msse2
2022-02-10 10:20:27 +01:00
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'
2022-02-20 12:51:01 +01:00
.elif ${ARCH : Mpowerpc *}
CMAKE_ARGS += -DUSE_SIMD:BOOL= OFF #https://github.com/marton78/pffft/issues/55
2022-02-10 10:20:27 +01:00
. e n d i f
2022-01-30 18:41:29 +01:00
post-install : # move headers into a dedicated directory
cd ${ STAGEDIR } ${ PREFIX } && \
${ MKDIR } include/${ PORTNAME } && \
${ MV } include/*.h include/*.hpp include/${ PORTNAME }
2022-02-10 10:20:27 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >