|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2009,2010,2011 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2009,2010,2011,2012 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-EMBOSS} |
|
|
|
VERSION=${VERSION:-6.4.0} |
|
|
|
VERSION=${VERSION:-6.5.7} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-ftp://emboss.open-bio.org/pub/EMBOSS/$ARCHIVE} |
|
|
|
|
|
|
@ -69,7 +69,6 @@ i?86) |
|
|
|
x86_64) |
|
|
|
CPUOPT="-O2 -fPIC" |
|
|
|
LIBDIRSUFFIX="64" |
|
|
|
ENABLE64="--enable-64" |
|
|
|
;; |
|
|
|
*) |
|
|
|
CPUOPT="-O2" |
|
|
@ -98,13 +97,14 @@ cd $TMP |
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
# Disable pointless execution of embossupdate during make install |
|
|
|
patch -p 1 < $CWD/EMBOSS-6.5.7-no-embossupdate.diff |
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
./configure \ |
|
|
|
--prefix=/usr \ |
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
--includedir=/usr/include/EMBOSS \ |
|
|
|
$ENABLE64 \ |
|
|
|
--disable-dependency-tracking \ |
|
|
|
--disable-static \ |
|
|
|
--enable-systemlibs \ |
|
|
|