# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name		djbfft
version		0.76
revision    1
categories	math
license		public-domain
platforms	darwin
maintainers	nomaintainer

description	D.J. Bernstein's fast fourier transform library
long_description	\
		djbfft is an extremely fast library for floating-point	\
		convolution. The current version holds most of the	\
		speed records for double-precision FFTs on general	\
		purpose computers.					\
									\
		djbfft provides power-of-2 complex FFTs, real FFTs at	\
		twice the speed, and fast multiplication of complex	\
		arrays. Single precision and double precision are	\
		equally supported.

homepage	https://cr.yp.to/djbfft.html
master_sites	https://cr.yp.to/djbfft/

checksums       rmd160  46de3a7ed5d6ca4b245d02a12d969702e57f7381 \
                sha256  799d929c3631a77ef0e16a2449e4fc11af8540b62359f8733ac2899fca2b394c

pre-configure {
    reinplace s|/usr/local/djbfft|${destroot}${prefix}| ${worksrcpath}/conf-home
}

configure.pre_args
configure.universal_args
configure.cmd {
    echo "$CC $CPPFLAGS $CFLAGS" > conf-cc;
    echo "$CC $LDFLAGS" > conf-ld
}

build.target

destroot.target	setup check

livecheck.type	regex
livecheck.url	https://cr.yp.to/djbfft/install.html
livecheck.regex	${name}-(\[0-9.\]+)\\.tar
