9415b45e40
a bit complex, but doesn't work well with SUBST_VARS for now
63 lines
1.3 KiB
Makefile
63 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2006/10/18 17:40:38 steven Exp $
|
|
|
|
COMMENT= "C routines for computing the Discrete Fourier Transform"
|
|
COMMENT-common= "common files for the fftw3 packages"
|
|
|
|
V= 3.1.2
|
|
DISTNAME= fftw-${V}
|
|
PKGNAME= fftw3-${V}
|
|
FULLPKGNAME= fftw3-${V}p0
|
|
FULLPKGNAME-common= fftw3-common-${V}
|
|
SHARED_LIBS= fftw3 4.2 \
|
|
fftw3f 4.2
|
|
CATEGORIES= math
|
|
|
|
HOMEPAGE= http://www.fftw.org/
|
|
|
|
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c m
|
|
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
|
|
http://fftw.mirror.fr/ \
|
|
ftp://ftp.fftw.org/pub/fftw/old/
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
MULTI_PACKAGES= -common
|
|
SUBPACKAGE?=
|
|
|
|
FLAVORS= double float
|
|
FLAVOR?= double
|
|
|
|
USE_GMAKE= Yes
|
|
USE_LIBTOOL= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--with-portable-binary
|
|
|
|
.if ${FLAVOR} == "float"
|
|
CONFIGURE_ARGS+=--enable-float
|
|
FULLPKGNAME= fftw3-float-${V}
|
|
.endif
|
|
|
|
.if defined(PACKAGING)
|
|
. if empty(SUBPACKAGE)
|
|
RUN_DEPENDS= ::math/fftw3,-common
|
|
. elif ${SUBPACKAGE} == "-common"
|
|
PKG_ARCH= *
|
|
WANTLIB=
|
|
. endif
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fftw3
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fftw3.pdf ${PREFIX}/share/doc/fftw3
|
|
|
|
.include <bsd.port.mk>
|