diff options
Diffstat (limited to 'academic/sundials')
-rw-r--r-- | academic/sundials/sundials.SlackBuild | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/academic/sundials/sundials.SlackBuild b/academic/sundials/sundials.SlackBuild index f3658e990a..46375d2908 100644 --- a/academic/sundials/sundials.SlackBuild +++ b/academic/sundials/sundials.SlackBuild @@ -62,19 +62,28 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -mkdir build chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -cd build -cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=BOOL:ON "../" -make -make DESTDIR="$PKG/" install +sed -i \ + -e 's:DESTINATION lib:DESTINATION lib${LIB_SUFFIX}:' \ + src/*/CMakeLists.txt \ + src/*/*/CMakeLists.txt +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DBUILD_SHARED_LIBS=BOOL:ON \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |