diff options
author | Euan Thoms <euan at potensol dot com> | 2017-11-17 21:12:08 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:35 +0700 |
commit | f055f79ddf8ef48fb68af8a9844a5faf5d876007 (patch) | |
tree | 5caf77f7f9043e32e462064250ffcc41baf5b65d /libraries/mbedtls/mbedtls.SlackBuild | |
parent | 595a414ca9994b69bce6afb00dbdb6aaae8b77dd (diff) |
libraries/mbedtls: Updated for version 2.6.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/mbedtls/mbedtls.SlackBuild')
-rw-r--r-- | libraries/mbedtls/mbedtls.SlackBuild | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/libraries/mbedtls/mbedtls.SlackBuild b/libraries/mbedtls/mbedtls.SlackBuild index cadb659cfeef..c7c57925d298 100644 --- a/libraries/mbedtls/mbedtls.SlackBuild +++ b/libraries/mbedtls/mbedtls.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mbedtls -VERSION=${VERSION:-2.2.0} +VERSION=${VERSION:-2.6.1} LICENSE=apache BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,14 +35,14 @@ OUTPUT=${OUTPUT:-/tmp} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -62,9 +62,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-$LICENSE.tgz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -72,30 +72,27 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ - mkdir build cd build -cmake \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DSYSCONF_INSTALL_DIR:PATH=/etc \ - -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ - -DLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ - -DMAN_INSTALL_DIR:PATH=/usr/man \ - -DCMAKE_BUILD_TYPE:STRING=Release \ - -DBUILD_SHARED_LIBS:BOOL=ON \ - -DCMAKE_SKIP_RPATH:BOOL=ON \ - -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ - -DUSE_SHARED_POLARSSL_LIBRARY:BOOL=ON \ - -DUSE_STATIC_POLARSSL_LIBRARY:BOOL=OFF \ - .. - -make -make install DESTDIR=$PKG - + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DSYSCONF_INSTALL_DIR:PATH=/etc \ + -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ + -DLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ + -DMAN_INSTALL_DIR:PATH=/usr/man \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ + -DUSE_SHARED_MBEDTLS_LIBRARY=On \ + -DUSE_STATIC_MBEDTLS_LIBRARY=Off \ + -DENABLE_TESTING=Off \ + -DCMAKE_BUILD_TYPE:STRING=Release .. + make + make install DESTDIR=$PKG cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |