aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-09-18 11:00:44 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit6fefd76f698228a5bb74bf87515b38750767386b (patch)
treeaa56259804d1d317a22ae2d55478cda49f23dd6d /libraries
parent614576c9a227dbda3c8405672db28fe0fe00beac (diff)
libraries/mathgl: Updated for version 2.3.3.
Fixes build failure with giflib-5.1. Removed bashist "[[...]]". Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/mathgl/mathgl.SlackBuild13
-rw-r--r--libraries/mathgl/mathgl.info8
2 files changed, 12 insertions, 9 deletions
diff --git a/libraries/mathgl/mathgl.SlackBuild b/libraries/mathgl/mathgl.SlackBuild
index b1682184d9cca..87dbc2451ae93 100644
--- a/libraries/mathgl/mathgl.SlackBuild
+++ b/libraries/mathgl/mathgl.SlackBuild
@@ -16,7 +16,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mathgl
-VERSION=${VERSION:-2.0.3}
+VERSION=${VERSION:-2.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,21 +48,21 @@ else
fi
# GSL support
-if [[ ${GSL:-no} = "no" ]]; then
+if [ ${GSL:-no} = "no" ]; then
GSL_FLAG="NO"
else
GSL_FLAG="YES"
fi
# Octave support
-if [[ ${OCTAVE:-no} = "no" ]]; then
+if [ ${OCTAVE:-no} = "no" ]; then
OCTAVE_FLAG="NO"
else
OCTAVE_FLAG="YES"
fi
-# Open MPI support
-if [[ ${OPENMPI:-no} = "no" ]]; then
+# OpenMPI support
+if [ ${OPENMPI:-no} = "no" ]; then
OPENMPI_FLAG="NO"
else
OPENMPI_FLAG="YES"
@@ -88,6 +88,7 @@ cd build
cmake -D CMAKE_C_FLAGS="$SLKCFLAGS" \
-D CMAKE_CXX_FLAGS="$SLKCFLAGS" \
-D CMAKE_INSTALL_PREFIX:PATH=/usr \
+ -D MGL_LIB_INSTALL_DIR:STRING=lib$LIBDIRSUFFIX \
-D enable-doc:BOOL=OFF \
-D enable-double:BOOL=ON \
-D enable-gif:BOOL=ON \
@@ -100,9 +101,11 @@ cd build
-D enable-mpi:BOOL=$OPENMPI_FLAG \
-D enable-python:BOOL=ON \
-D enable-pthread:BOOL=ON \
+ -D enable-openmp:BOOL=OFF \
-D enable-octave:BOOL=$OCTAVE_FLAG \
-D enable-opengl:BOOL=ON \
-D enable-wx:BOOL=ON \
+ -D enable-qt4:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=$ARCH-slackware-linux .. -L
make
make install DESTDIR=$PKG
diff --git a/libraries/mathgl/mathgl.info b/libraries/mathgl/mathgl.info
index 44a7f2b8a2c55..df540155a2ab2 100644
--- a/libraries/mathgl/mathgl.info
+++ b/libraries/mathgl/mathgl.info
@@ -1,10 +1,10 @@
PRGNAM="mathgl"
-VERSION="2.0.3"
+VERSION="2.3.3"
HOMEPAGE="http://mathgl.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/mathgl/mathgl-2.0.3.tar.gz"
-MD5SUM="37b7857594dd17306d34475afec87aa5"
+DOWNLOAD="http://downloads.sourceforge.net/mathgl/mathgl-2.3.3.tar.gz"
+MD5SUM="c37d6f42d4897675bf89fae635aa6868"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="wxPython"
+REQUIRES="libharu wxPython"
MAINTAINER="Jože Zobec"
EMAIL="jozze.zepl@gmail.com"