diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-11 22:23:39 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:23:39 +0200 |
commit | 3c71e7c1bc2af30d88c9d05a5cc272fd2219ae7d (patch) | |
tree | 14587ddd23f8aa63360d69d170110bffc44908d1 /libraries/fftw/fftw.SlackBuild | |
parent | 38d4affcd5939552a1f861e165f1e3c54b8f6638 (diff) |
libraries/fftw: Updated for version 3.2
Diffstat (limited to 'libraries/fftw/fftw.SlackBuild')
-rw-r--r-- | libraries/fftw/fftw.SlackBuild | 109 |
1 files changed, 54 insertions, 55 deletions
diff --git a/libraries/fftw/fftw.SlackBuild b/libraries/fftw/fftw.SlackBuild index 7f207e2125853..6f5f5c8ecfd37 100644 --- a/libraries/fftw/fftw.SlackBuild +++ b/libraries/fftw/fftw.SlackBuild @@ -3,15 +3,24 @@ # Slackware build script for fftw # Written by Kyle Guinn <elyk03@gmail.com> -PRGNAM=fftw -VERSION=3.1.2 -ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} +PRGNAM="fftw" +VERSION=${VERSION:="3.2"} +ARCH=${ARCH:-"custom"} +BUILD=${BUILD:-"1"} +TAG=${TAG:-"_SBo"} + CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} +TMP=${TMP:-"/tmp/SBo"} +PKG="$TMP/package-$PRGNAM-$VERSION" +OUTPUT=${OUTPUT:-"/tmp"} + +DOCS="AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog INSTALL NEWS README TODO doc/html" + +# According to doc/fftw3.pdf, the configure script should choose the best value +# for $CFLAGS. We will assume that the script knows what it is doing. +unset CFLAGS +unset CXXFLAGS +unset FFLAGS set -e @@ -19,14 +28,11 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +chmod -R u+w,go+r-w,a-st . -# According to doc/fftw3.pdf, the configure script should choose the best value -# for $CFLAGS. We will assume that the script knows what it is doing. -# # By default we will leave out these machine-dependent optimizations. If your # machine supports these, feel free to add them to the configure options. # Note that fftw may refuse to compile by doing so -- watch for error messages @@ -56,69 +62,62 @@ chmod -R u+w,go+r-w,a-s . # precision, but not another. (This should be documented somewhere...) # compile fftw3 -CFLAGS= \ -CXXFLAGS= \ -FFLAGS= \ ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --docdir=/usr/doc/fftw-$VERSION \ - --enable-shared \ - --disable-static \ - --enable-threads + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/fftw-$VERSION \ + --enable-shared \ + --disable-static \ + --enable-threads make make install-strip DESTDIR=$PKG # compile fftw3f -CFLAGS= \ -CXXFLAGS= \ -FFLAGS= \ ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --docdir=/usr/doc/fftw-$VERSION \ - --enable-shared \ - --disable-static \ - --enable-threads \ - --enable-float + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/fftw-$VERSION \ + --enable-shared \ + --disable-static \ + --enable-threads \ + --enable-float make make install-strip DESTDIR=$PKG # compile fftw3l -CFLAGS= \ -CXXFLAGS= \ -FFLAGS= \ ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --docdir=/usr/doc/fftw-$VERSION \ - --enable-shared \ - --disable-static \ - --enable-threads \ - --enable-long-double + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/fftw-$VERSION \ + --enable-shared \ + --disable-static \ + --enable-threads \ + --enable-long-double make make install-strip DESTDIR=$PKG ( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l); do \ + ln -s $(readlink $i).gz $i.gz; \ + rm $i; \ + done ) rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/*.info* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog INSTALL \ - NEWS README TODO doc/html $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |