1999-03-18 08:38:33 +00:00
|
|
|
# New ports collection makefile for: fftw
|
|
|
|
# Date created: Dec 28 1998
|
1999-10-02 16:54:38 +00:00
|
|
|
# Whom: Lars Koeller <Lars.Koeller@Uni-Bielefeld.DE>
|
1999-03-18 08:38:33 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-03-18 08:38:33 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= fftw
|
2003-03-24 17:26:24 +00:00
|
|
|
PORTVERSION= 2.1.5
|
2009-09-13 00:08:01 +00:00
|
|
|
PORTREVISION?= 6
|
1999-03-18 08:38:33 +00:00
|
|
|
CATEGORIES= math
|
2003-03-24 17:26:24 +00:00
|
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
|
|
|
|
ftp://ftp.fftw.org/pub/fftw/old/ \
|
1999-06-25 23:52:57 +00:00
|
|
|
ftp://theory.lcs.mit.edu/pub/fftw/ \
|
1999-04-03 00:56:05 +00:00
|
|
|
ftp://pm.cse.rmit.edu.au/pub/dsp/fftw/
|
2004-11-10 11:29:18 +00:00
|
|
|
PKGNAMESUFFIX= ${FFTW_PKGNAMESUFFIX}
|
1999-03-18 08:38:33 +00:00
|
|
|
|
2005-11-25 22:29:24 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-11-10 11:29:18 +00:00
|
|
|
COMMENT?= Fast C routines to compute the Discrete Fourier Transform
|
1999-03-18 08:38:33 +00:00
|
|
|
|
2012-03-24 16:25:21 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2004-11-10 11:29:18 +00:00
|
|
|
# current flavors: default, float
|
|
|
|
FFTW_FLAVOR?= default
|
|
|
|
FFTW_SUFIX=
|
|
|
|
|
2007-07-12 08:51:23 +00:00
|
|
|
USE_FORTRAN= yes
|
1999-04-03 00:56:05 +00:00
|
|
|
USE_GMAKE= yes
|
2012-05-03 16:11:26 +00:00
|
|
|
USE_AUTOTOOLS= aclocal automake autoconf libtool
|
|
|
|
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
|
2009-01-10 12:05:49 +00:00
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
|
2003-07-27 15:30:23 +00:00
|
|
|
CONFIGURE_ARGS= --enable-shared
|
2006-08-15 00:29:13 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-03-24 16:25:21 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2004-11-10 11:29:18 +00:00
|
|
|
PLIST_SUB= FFTW_SUFX="${FFTW_SUFX}"
|
1999-03-18 08:38:33 +00:00
|
|
|
|
2012-05-03 16:11:26 +00:00
|
|
|
PORTSCOUT= limit:^2\.
|
|
|
|
|
2003-07-27 15:30:23 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-11-10 11:29:18 +00:00
|
|
|
.if ${FFTW_FLAVOR}=="float"
|
|
|
|
CONFIGURE_ARGS+= --enable-float --enable-type-prefix
|
|
|
|
FFTW_SUFX= s
|
|
|
|
FFTW_PKGNAMESUFFIX= -float
|
|
|
|
PLIST_SUB+= DEF="@comment "
|
|
|
|
.else
|
2012-05-03 16:11:26 +00:00
|
|
|
INFO= fftw
|
2004-11-10 11:29:18 +00:00
|
|
|
PLIST_SUB+= DEF=""
|
|
|
|
.endif
|
|
|
|
|
1999-03-18 08:38:33 +00:00
|
|
|
.if ${ARCH} == "i386"
|
2003-07-27 15:30:23 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-i386-hacks
|
1999-03-18 08:38:33 +00:00
|
|
|
.endif
|
2003-07-27 15:30:23 +00:00
|
|
|
|
2012-03-24 16:25:21 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
2011-08-10 09:09:28 +00:00
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
2004-11-10 11:29:18 +00:00
|
|
|
post-patch:
|
2012-05-03 16:11:26 +00:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc | |' ${WRKSRC}/Makefile.am
|
1999-03-18 08:38:33 +00:00
|
|
|
|
2012-05-03 16:11:26 +00:00
|
|
|
post-build:
|
|
|
|
.if ${FFTW_FLAVOR}=="default"
|
|
|
|
@cd ${WRKSRC}/doc && makeinfo fftw.texi
|
|
|
|
.endif
|
2012-03-24 16:25:21 +00:00
|
|
|
|
1999-03-18 08:38:33 +00:00
|
|
|
post-install:
|
2004-11-10 11:29:18 +00:00
|
|
|
.if ${FFTW_FLAVOR}=="default"
|
2012-05-03 16:11:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw.info ${PREFIX}/${INFO_PATH}
|
1999-04-03 00:56:05 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-27 15:30:23 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-11-10 11:29:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${DOCSDIR}/fftw.ps
|
|
|
|
.endif
|
1999-04-03 00:56:05 +00:00
|
|
|
.endif
|
|
|
|
|
2009-01-11 23:53:33 +00:00
|
|
|
regression-test: build
|
|
|
|
@cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
1999-04-03 00:56:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|