summaryrefslogtreecommitdiff
path: root/math/fftwf/Makefile
blob: 7b7fed00e117dc069b3635c5072f0f6a48d9430c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.6 2006/11/15 01:11:13 wulf Exp $

.if (${MACHINE_ARCH} == "powerpc")
DISTNAME=		fftw-3.1.2-fma
.else
DISTNAME=		fftw-3.1.2
.endif
PKGNAME=		fftwf-3.1.2
CATEGORIES=		math
MASTER_SITES=		ftp://ftp.fftw.org/pub/fftw/ \
			http://www.fftw.org/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.fftw.org/
COMMENT=		Collection of fast C routines to compute DFTs

USE_LIBTOOL=		yes
PKGCONFIG_OVERRIDE+=	fftw.pc.in
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--enable-float

DEPENDS+=		fftw>=3.1.2:../../math/fftw

.if (${MACHINE_ARCH} == "i386")
#CONFIGURE_ARGS+=	--enable-sse
CONFIGURE_ARGS+=	--with-our-malloc16
.endif
USE_LANGUAGES=		c fortran
USE_TOOLS+=		gmake

TEST_TARGET=		check

INSTALLATION_DIRS=	${PKGMANDIR}/man1

do-install:
	gmake -C ${WRKSRC} install-libLTLIBRARIES
	gmake -C ${WRKSRC} install-pkgconfigDATA
	gmake -C ${WRKSRC}/tools install-binPROGRAMS
	${INSTALL_MAN} ${WRKSRC}/tools/fftwf-wisdom.1 \
		${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"