aboutsummaryrefslogtreecommitdiff
path: root/academic/avogadro/avogadro.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-08-11 14:15:16 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-08-14 22:30:49 -0500
commitcf02daefd1f54c19a4678a7f50422800bdaef14e (patch)
tree6f1cc28f97a2c7f8a77876f9e26dd056d1c5a5b3 /academic/avogadro/avogadro.SlackBuild
parentcc0d329aafc2d8d26321df805ac717d923a3139e (diff)
academic/avogadro: Updated with patches for newer gcc and boost.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/avogadro/avogadro.SlackBuild')
-rw-r--r--academic/avogadro/avogadro.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/academic/avogadro/avogadro.SlackBuild b/academic/avogadro/avogadro.SlackBuild
index f8021e664e925..009b66ccd8b1d 100644
--- a/academic/avogadro/avogadro.SlackBuild
+++ b/academic/avogadro/avogadro.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=avogadro
VERSION=1.0.3
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,6 +51,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix gcc-4.7.x build issues.
+patch -p1 < $CWD/patches/gcc-4.7.patch
+# Fix for newer boost.
+patch -p1 < $CWD/patches/boost-1.48.patch
+# Fix mkspecs directory.
+patch -p1 < $CWD/patches/avogadro-1.0.3-mkspecs-dir.patch
+
# Fix manpage directory.
sed -i 's|share/man|man|' doc/CMakeLists.txt
@@ -63,7 +70,7 @@ cd build
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DENABLE_RPATH=OFF \
-DCMAKE_SKIP_RPATH=YES \
- -DENABLE_GLSL=ON \
+ -DENABLE_GLSL:BOOL=ON \
-DENABLE_UPDATE_CHECKER=OFF \
-DCMAKE_BUILD_TYPE=Release ..