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>
This commit is contained in:
David Spencer 2015-09-18 11:00:44 +01:00 committed by Willy Sudiarto Raharjo
parent 614576c9a2
commit 6fefd76f69
2 changed files with 12 additions and 9 deletions

View File

@ -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

View File

@ -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"