contrib/fftw/Pkgfile

52 lines
1.0 KiB
Plaintext
Raw Normal View History

# Description: C subroutine library for computing discrete Fourier transform.
# URL: http://www.fftw.org/
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: acrux, acrux at linuxmail dot org
# Depends on: gcc-fortran
name=fftw
version=3.1.2
release=1
source=(http://www.fftw.org/$name-$version.tar.gz)
build() {
export CFLAGS="$CFLAGS -O3"
export CXXFLAGS="$CXXFLAGS -O3"
export FFLAGS="$FFLAGS -O3"
local Configure='
--prefix=/usr
--mandir=/usr/man
--enable-threads
--enable-type-prefix
--with-gnu-ld
--disable-nls
--enable-shared'
cd $name-$version
## compiling double precision library
./configure \
$Configure \
--enable-long-double \
# --enable-k7
# --enable-sse
# --enable-sse2
# --enable-altivec
make && make DESTDIR=$PKG install && make clean
## compiling single precision library
./configure \
$Configure \
--enable-single \
# --enable-k7
# --enable-sse
# --enable-sse2
# --enable-altivec
make && make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}