summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-11-05 12:51:10 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-05 18:53:45 -0600
commit362c645450b480d308e8af204398286243929742 (patch)
tree9e4a91e6682098f29dbfa571f55bf221da285c76 /academic
parent2d59a993f8c9a72b5a549c794b9b0d57c1fbe665 (diff)
downloadslackbuilds-362c645450b480d308e8af204398286243929742.tar.gz
academic/fann: Updated for version 2.2.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/fann/fann.SlackBuild36
-rw-r--r--academic/fann/fann.info6
2 files changed, 21 insertions, 21 deletions
diff --git a/academic/fann/fann.SlackBuild b/academic/fann/fann.SlackBuild
index 093fef5d26..4fcf436874 100644
--- a/academic/fann/fann.SlackBuild
+++ b/academic/fann/fann.SlackBuild
@@ -5,11 +5,11 @@
# Written by Andrew Conway (ajc AT countingthoughts DOT com)
PRGNAM=fann
-VERSION=${VERSION:-2.1.0beta}
+VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SHORTVERSION=${SHORTVERSION:-2.1.0}
+SRCNAME=FANN-$VERSION-Source
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -43,9 +43,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SHORTVERSION
-unzip $CWD/$PRGNAM-${VERSION}.zip
-cd $PRGNAM-$SHORTVERSION
+rm -rf $SRCNAME
+unzip $CWD/$SRCNAME.zip
+cd $SRCNAME
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -53,25 +53,25 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING INSTALL README \
+ COPYING.txt README.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/academic/fann/fann.info b/academic/fann/fann.info
index 7cdbf4ad48..9aa1884028 100644
--- a/academic/fann/fann.info
+++ b/academic/fann/fann.info
@@ -1,8 +1,8 @@
PRGNAM="fann"
-VERSION="2.1.0beta"
+VERSION="2.2.0"
HOMEPAGE="http://leenissen.dk/fann/wp/"
-DOWNLOAD="http://prdownloads.sourceforge.net/fann/fann-2.1.0beta.zip"
-MD5SUM="9c53d96ce415c927cb97b8f9de2ea881"
+DOWNLOAD="http://prdownloads.sourceforge.net/fann/FANN-2.2.0-Source.zip"
+MD5SUM="292d914684c9eab1d84eb1f59b0fbf69"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""