2013-09-20 22:55:04 +02:00
|
|
|
# Created by: Lars Koeller <Lars.Koeller@Uni-Bielefeld.DE>
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1999-03-18 09:38:33 +01:00
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= fftw
|
2003-03-24 18:26:24 +01:00
|
|
|
PORTVERSION= 2.1.5
|
2014-03-05 18:27:27 +01:00
|
|
|
PORTREVISION?= 8
|
1999-03-18 09:38:33 +01:00
|
|
|
CATEGORIES= math
|
2003-03-24 18:26:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
|
|
|
|
ftp://ftp.fftw.org/pub/fftw/old/ \
|
1999-06-26 01:52:57 +02:00
|
|
|
ftp://theory.lcs.mit.edu/pub/fftw/ \
|
1999-04-03 02:56:05 +02:00
|
|
|
ftp://pm.cse.rmit.edu.au/pub/dsp/fftw/
|
1999-03-18 09:38:33 +01:00
|
|
|
|
2005-11-25 23:29:24 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-11-10 12:29:18 +01:00
|
|
|
COMMENT?= Fast C routines to compute the Discrete Fourier Transform
|
1999-03-18 09:38:33 +01:00
|
|
|
|
2012-03-24 17:25:21 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-22 18:06:45 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2004-11-10 12:29:18 +01:00
|
|
|
# current flavors: default, float
|
|
|
|
FFTW_FLAVOR?= default
|
|
|
|
|
2014-03-05 18:27:27 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-27 17:30:23 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared
|
2014-03-05 18:27:27 +01:00
|
|
|
USES= fortran gmake libtool
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-03-24 17:25:21 +01:00
|
|
|
|
2014-03-05 18:27:27 +01:00
|
|
|
BROKEN_sparc64= does not build
|
|
|
|
|
2004-11-10 12:29:18 +01:00
|
|
|
PLIST_SUB= FFTW_SUFX="${FFTW_SUFX}"
|
1999-03-18 09:38:33 +01:00
|
|
|
|
2012-05-03 18:11:26 +02:00
|
|
|
PORTSCOUT= limit:^2\.
|
|
|
|
|
2004-11-10 12:29:18 +01:00
|
|
|
.if ${FFTW_FLAVOR}=="float"
|
|
|
|
CONFIGURE_ARGS+= --enable-float --enable-type-prefix
|
|
|
|
FFTW_SUFX= s
|
2014-03-05 18:27:27 +01:00
|
|
|
PKGNAMESUFFIX= -float
|
2004-11-10 12:29:18 +01:00
|
|
|
.else
|
2014-03-05 18:27:27 +01:00
|
|
|
FFTW_SUFIX=
|
2012-05-03 18:11:26 +02:00
|
|
|
INFO= fftw
|
2004-11-10 12:29:18 +01:00
|
|
|
.endif
|
|
|
|
|
2013-12-22 18:06:45 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
1999-03-18 09:38:33 +01:00
|
|
|
.if ${ARCH} == "i386"
|
2003-07-27 17:30:23 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-i386-hacks
|
1999-03-18 09:38:33 +01:00
|
|
|
.endif
|
2003-07-27 17:30:23 +02:00
|
|
|
|
2004-11-10 12:29:18 +01:00
|
|
|
post-patch:
|
2014-03-05 18:27:27 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc | |' ${WRKSRC}/Makefile.in
|
1999-03-18 09:38:33 +01:00
|
|
|
|
2012-05-03 18:11:26 +02:00
|
|
|
post-build:
|
|
|
|
.if ${FFTW_FLAVOR}=="default"
|
|
|
|
@cd ${WRKSRC}/doc && makeinfo fftw.texi
|
|
|
|
.endif
|
2012-03-24 17:25:21 +01:00
|
|
|
|
1999-03-18 09:38:33 +01:00
|
|
|
post-install:
|
2004-11-10 12:29:18 +01:00
|
|
|
.if ${FFTW_FLAVOR}=="default"
|
2013-12-22 18:06:45 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${STAGEDIR}${DOCSDIR}/fftw.ps
|
2004-11-10 12:29:18 +01:00
|
|
|
.endif
|
1999-04-03 02:56:05 +02:00
|
|
|
.endif
|
|
|
|
|
2009-01-12 00:53:33 +01:00
|
|
|
regression-test: build
|
2013-12-22 18:06:45 +01:00
|
|
|
@(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check)
|
2009-01-12 00:53:33 +01:00
|
|
|
|
2013-12-22 18:06:45 +01:00
|
|
|
.include <bsd.port.mk>
|