fftw: edit config to include double precision support, thanks to vico, also added more optimize flags
This commit is contained in:
parent
0f13621ad9
commit
bdaa213f34
|
@ -1,5 +1,6 @@
|
|||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/fftw-wisdom
|
||||
-rwxr-xr-x root/root usr/bin/fftw-wisdom-to-conf
|
||||
-rwxr-xr-x root/root usr/bin/fftwf-wisdom
|
||||
-rwxr-xr-x root/root usr/bin/fftwl-wisdom
|
||||
|
@ -7,6 +8,16 @@ drwxr-xr-x root/root usr/include/
|
|||
-rw-r--r-- root/root usr/include/fftw3.f
|
||||
-rw-r--r-- root/root usr/include/fftw3.h
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
-rw-r--r-- root/root usr/lib/libfftw3.a
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3.la
|
||||
lrwxrwxrwx root/root usr/lib/libfftw3.so -> libfftw3.so.3.1.2
|
||||
lrwxrwxrwx root/root usr/lib/libfftw3.so.3 -> libfftw3.so.3.1.2
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3.so.3.1.2
|
||||
-rw-r--r-- root/root usr/lib/libfftw3_threads.a
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3_threads.la
|
||||
lrwxrwxrwx root/root usr/lib/libfftw3_threads.so -> libfftw3_threads.so.3.1.2
|
||||
lrwxrwxrwx root/root usr/lib/libfftw3_threads.so.3 -> libfftw3_threads.so.3.1.2
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3_threads.so.3.1.2
|
||||
-rw-r--r-- root/root usr/lib/libfftw3f.a
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3f.la
|
||||
lrwxrwxrwx root/root usr/lib/libfftw3f.so -> libfftw3f.so.3.1.2
|
||||
|
@ -28,11 +39,12 @@ lrwxrwxrwx root/root usr/lib/libfftw3l_threads.so -> libfftw3l_threads.so.3.1.2
|
|||
lrwxrwxrwx root/root usr/lib/libfftw3l_threads.so.3 -> libfftw3l_threads.so.3.1.2
|
||||
-rwxr-xr-x root/root usr/lib/libfftw3l_threads.so.3.1.2
|
||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/fftw3.pc
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/fftw3f.pc
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/fftw3l.pc
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/fftw-wisdom-to-conf.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/fftw-wisdom.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/fftwf-wisdom.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/fftwl-wisdom.1.gz
|
||||
drwxr-xr-x root/root usr/share/
|
||||
|
|
41
fftw/Pkgfile
41
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user