diff options
Diffstat (limited to 'academic/avogadro/avogadro.SlackBuild')
-rw-r--r-- | academic/avogadro/avogadro.SlackBuild | 11 |
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 .. |