diff options
Diffstat (limited to 'academic/fann/fann.SlackBuild')
-rw-r--r-- | academic/fann/fann.SlackBuild | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/academic/fann/fann.SlackBuild b/academic/fann/fann.SlackBuild index 093fef5d2637..4fcf4368743a 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 |