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