2007-09-15 14:44:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2007/09/15 18:44:36 steven Exp $
|
2005-10-03 17:41:52 -04:00
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT-main= C routines for computing the Discrete Fourier Transform
|
|
|
|
COMMENT-common= common files for the fftw3 packages
|
2005-10-03 17:41:52 -04:00
|
|
|
|
2006-07-14 10:37:40 -04:00
|
|
|
V= 3.1.2
|
2005-10-03 17:41:52 -04:00
|
|
|
DISTNAME= fftw-${V}
|
|
|
|
PKGNAME= fftw3-${V}
|
2006-11-21 15:42:30 -05:00
|
|
|
FULLPKGNAME-main= fftw3-${V}p2
|
2006-12-01 09:24:55 -05:00
|
|
|
FULLPKGNAME-common= fftw3-common-${V}p0
|
2006-10-18 13:40:38 -04:00
|
|
|
SHARED_LIBS= fftw3 4.2 \
|
|
|
|
fftw3f 4.2
|
2005-10-03 17:41:52 -04:00
|
|
|
CATEGORIES= math
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.fftw.org/
|
|
|
|
|
2006-03-05 18:17:29 -05:00
|
|
|
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
2005-10-03 17:41:52 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
|
2006-02-18 16:14:42 -05:00
|
|
|
http://fftw.mirror.fr/ \
|
|
|
|
ftp://ftp.fftw.org/pub/fftw/old/
|
2005-10-03 17:41:52 -04:00
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
|
2006-11-21 15:42:30 -05:00
|
|
|
MULTI_PACKAGES= -main -common
|
2006-10-18 13:40:38 -04:00
|
|
|
|
|
|
|
FLAVORS= double float
|
|
|
|
FLAVOR?= double
|
|
|
|
|
2005-10-03 17:41:52 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
2006-03-05 18:17:29 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2006-10-18 13:40:38 -04:00
|
|
|
--with-portable-binary
|
|
|
|
|
|
|
|
.if ${FLAVOR} == "float"
|
|
|
|
CONFIGURE_ARGS+=--enable-float
|
2006-11-21 15:42:30 -05:00
|
|
|
FULLPKGNAME-main= fftw3-float-${V}p0
|
2006-10-18 13:40:38 -04:00
|
|
|
.endif
|
|
|
|
|
2006-12-01 09:24:55 -05:00
|
|
|
FULLPKGPATH-common= math/fftw3,-common
|
|
|
|
RUN_DEPENDS-main= ::${FULLPKGPATH-common}
|
2006-11-21 15:42:30 -05:00
|
|
|
WANTLIB-main= c m
|
|
|
|
PKG_ARCH-common= *
|
2005-10-03 17:41:52 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fftw3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw3.pdf ${PREFIX}/share/doc/fftw3
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|