diff options
Diffstat (limited to 'academic/grass/grass.SlackBuild')
-rw-r--r-- | academic/grass/grass.SlackBuild | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/academic/grass/grass.SlackBuild b/academic/grass/grass.SlackBuild index 4232e19bad..5e35f15657 100644 --- a/academic/grass/grass.SlackBuild +++ b/academic/grass/grass.SlackBuild @@ -1,11 +1,29 @@ #!/bin/bash # Slackware build script for grass -# Written by David Spencer <baildon.research@googlemail.com> -# This script is dedicated to the public domain + +# Copyright 2011 David Spencer, Baildon, West Yorkshire, U.K. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=grass -VERSION=${VERSION:-6.4.1} +VERSION=${VERSION:-6.4.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -92,8 +110,15 @@ else BITNESS="" fi +# gcc-4.7 patch from grass svn, see http://trac.osgeo.org/grass/ticket/1533 +sed -i 's/mm.cpp/mm.cc/' $CWD/changeset_r50130.diff +patch -p3 < $CWD/changeset_r50130.diff +# ffmpeg-0.8 patch from Gentoo, see https://bugs.gentoo.org/show_bug.cgi?id=392371#c9 +# it's good for ffmpeg-0.10 too ;-) +patch -p1 < $CWD/gentoo392371b.patch + CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -fpermissive" \ LDFLAGS="-ldl -lncurses" \ ./configure \ --prefix=/opt \ |