summaryrefslogtreecommitdiff
path: root/fftw/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2007-02-23 15:10:12 +1100
committerDanny Rawlins <romster@shortcircuit.net.au>2007-02-23 15:10:12 +1100
commitbdaa213f34cd879b595e023f47632fabd965ffab (patch)
treef50c0734235463c52fef91d76046b5e96c331919 /fftw/Pkgfile
parent0f13621ad95350652c29222c9bdc4f08da662876 (diff)
downloadcontrib-bdaa213f34cd879b595e023f47632fabd965ffab.tar.gz
contrib-bdaa213f34cd879b595e023f47632fabd965ffab.tar.xz
fftw: edit config to include double precision support, thanks to vico, also added more optimize flags
Diffstat (limited to 'fftw/Pkgfile')
-rw-r--r--fftw/Pkgfile41
1 files changed, 28 insertions, 13 deletions
diff --git a/fftw/Pkgfile b/fftw/Pkgfile
index 976b064ed..11f553fc3 100644
--- a/fftw/Pkgfile
+++ b/fftw/Pkgfile
@@ -6,13 +6,15 @@
name=fftw
version=3.1.2
-release=1
-source=(http://www.fftw.org/$name-$version.tar.gz)
+release=2
+source=(http://www.fftw.org/fftw-$version.tar.gz)
build() {
- export CFLAGS="$CFLAGS -O3"
- export CXXFLAGS="$CXXFLAGS -O3"
- export FFLAGS="$FFLAGS -O3"
+ cd fftw-$version
+
+ export CFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
+ export CXXFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
+ export FFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
local Configure='
--prefix=/usr
@@ -21,11 +23,9 @@ build() {
--enable-type-prefix
--with-gnu-ld
--disable-nls
---enable-shared'
-
- cd $name-$version
- ## compiling double precision library
+--enable-shared'
+ ## compiling long double precision library
./configure \
$Configure \
--enable-long-double \
@@ -34,9 +34,11 @@ build() {
# --enable-sse2
# --enable-altivec
- make && make DESTDIR=$PKG install && make clean
- ## compiling single precision library
+ make
+ make DESTDIR=$PKG install
+ make clean
+ ## compiling single precision library
./configure \
$Configure \
--enable-single \
@@ -45,7 +47,20 @@ build() {
# --enable-sse2
# --enable-altivec
- make && make DESTDIR=$PKG install
- rm -r $PKG/usr/share/info
+ make
+ make DESTDIR=$PKG install
+ make clean
+
+ ## compiling double precision library
+ ./configure \
+ $Configure \
+# --enable-k7
+# --enable-sse
+# --enable-sse2
+# --enable-altivec
+
+ make
+ make DESTDIR=$PKG install
+ rm -r $PKG/usr/share
}

Generated by cgit