diff options
Diffstat (limited to 'academic/PhyML/PhyML.SlackBuild')
-rw-r--r-- | academic/PhyML/PhyML.SlackBuild | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/academic/PhyML/PhyML.SlackBuild b/academic/PhyML/PhyML.SlackBuild index d4b3d67cae..d82f9370f5 100644 --- a/academic/PhyML/PhyML.SlackBuild +++ b/academic/PhyML/PhyML.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for PhyML -# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com +# Copyright 2011-2017 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,13 +25,11 @@ # Thanks to Niels Horn for some handy modifications and corrections. PRGNAM=PhyML -VERSION=${VERSION:-3.2.20160530} +SRCNAM=$(echo $PRGNAM | tr A-Z a-z) +VERSION=${VERSION:-3.3.20170530} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=$(echo $PRGNAM | tr A-Z a-z) -SRCVER=3.2.20160530 - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -64,15 +62,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$SRCVER - -if [ -e $CWD/v${SRCVER}.tar.gz ]; then - tar xvf $CWD/v${SRCVER}.tar.gz -else - tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz -fi - -cd $SRCNAM-$SRCVER +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -145,6 +137,27 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# This is PhyTime +./autogen.sh +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --enable-phytime \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +# Use our CFLAGS +sed -i "/^CFLAGS/s/=/+=/" src/Makefile +sed -i "/^CFLAGS/s/=/+=/" Makefile + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make +make install DESTDIR=$PKG + 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 |