summaryrefslogtreecommitdiff
path: root/academic/grass/grass.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2013-06-05 19:45:02 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-06-05 19:45:02 -0400
commit9997e177ee70904810fa5018a8996bfd4cd9aaec (patch)
tree1a22d0654fe63919eecca418a23d280211426a58 /academic/grass/grass.SlackBuild
parent4d63a819ae88abf224ef149b377da94caecf474b (diff)
downloadslackbuilds-9997e177ee70904810fa5018a8996bfd4cd9aaec.tar.gz
academic/grass: Fixed build with recent ffmpeg + other tweaks.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/grass/grass.SlackBuild')
-rw-r--r--academic/grass/grass.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/academic/grass/grass.SlackBuild b/academic/grass/grass.SlackBuild
index 5e35f15657..fffbf3cbc5 100644
--- a/academic/grass/grass.SlackBuild
+++ b/academic/grass/grass.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=grass
VERSION=${VERSION:-6.4.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -78,12 +78,11 @@ while [[ "$1" != "" ]]; do
in
blas | \
lapack | \
- geos | \
sqlite )
WITHLIST[$((withnum++))]="--with-$1"
shift
;;
- mysql )
+ mysql | mariadb )
WITHLIST[$((withnum++))]="--with-mysql"
WITHLIST[$((withnum++))]="--with-mysql-includes=/usr/include/mysql"
shift
@@ -111,12 +110,15 @@ else
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
+# ffmpeg-0.11 patches, snarfed from Gentoo (thanks!)
+patch -p1 < $CWD/grass-6.4.2-configure-slack.patch
+patch -p1 < $CWD/grass-6.4.1-libav-0.8.patch
+patch -p1 < $CWD/grass-6.4.2-libav-9.patch
+patch -p1 < $CWD/grass-6.4.2-ffmpeg-1.patch
+
+# geos now always enabled: it's an indirect hard dep (via gdal), and makes grass nicer :-)
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -fpermissive" \
LDFLAGS="-ldl -lncurses" \
@@ -131,6 +133,7 @@ LDFLAGS="-ldl -lncurses" \
--with-proj-share=/usr/share/proj \
--with-cairo \
--with-wxwidgets \
+ --with-geos \
--enable-largefile \
"${WITHLIST[@]}" \
$BITNESS \