mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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>
This commit is contained in:
parent
2d59a993f8
commit
362c645450
2 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue