pkgsrc/math/fftw/Makefile
jlam b6b853727d Nuke USE_FORTRAN and bring the f2c handling within the mk/compiler
framework.  The list of changes include:

  * Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES,
    so we no longer need to say it in package Makefiles.  Packages
    should now append to USE_LANGUAGES instead of setting it.

  * Create mk/compiler/f2c.mk which implements another pseudo-compiler
    "f2c" that may be used with any C compiler backend, e.g.

	PKGSRC_COMPILER= f2c ccache gcc

  * Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk,
    etc., to use f2c if the native Fortran compiler isn't present.

Packages that use Fortran should now simply include the line:

	USE_LANGUAGES+=	fortran

in the package Makefile.
2005-01-12 15:31:58 +00:00

28 lines
626 B
Makefile

# $NetBSD: Makefile,v 1.17 2005/01/12 15:32:01 jlam Exp $
.if (${MACHINE_ARCH} == "powerpc")
DISTNAME= fftw-3.0.1-fma
.else
DISTNAME= fftw-3.0.1
.endif
PKGNAME= fftw-3.0.1
PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
http://www.fftw.org/
MAINTAINER= root@garbled.net
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
USE_LANGUAGES= fortran
USE_GNU_TOOLS+= make
INFO_FILES= fftw3.info
TEST_TARGET= check
.include "../../mk/bsd.pkg.mk"