Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
add libzstd
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 14, 2020
1 parent 09c8664 commit b450229
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions recipes/libzstd/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

# version of your package
VERSION_libzstd=v1.4.5

# dependencies of this recipe
DEPS_libzstd=()

# url of the package
URL_libzstd=https://github.com/facebook/zstd/archive/${VERSION_libzstd}.zip

# md5 of the package
MD5_libzstd=beb47f4f92ef69d28400be661cf95c20

# default build path
BUILD_libzstd=$BUILD_PATH/libzstd/$(get_directory $URL_libzstd)

# default recipe path
RECIPE_libzstd=$RECIPES_PATH/libzstd

# function called for preparing source code if needed
# (you can apply patch etc here.)
function prebuild_libzstd() {
cd $BUILD_libzstd

# check marker
if [ -f .patched ]; then
return
fi
}

function shouldbuild_libzstd() {
# If lib is newer than the sourcecode skip build
if [ $BUILD_PATH/libzstd/build-$ARCH/lib/libzstd.so -nt $BUILD_libzstd/.patched ]; then
DO_BUILD=0
fi
}

# function called to build the source code
function build_libzstd() {
try mkdir -p $BUILD_PATH/libzstd/build-$ARCH
try cd $BUILD_PATH/libzstd/build-$ARCH
push_arm

# configure
try $CMAKECMD \
-DCMAKE_INSTALL_PREFIX:PATH=$STAGE_PATH \
$BUILD_libzstd/build/cmake/

# try $MAKESMP
try $MAKESMP install

pop_arm
}

# function called after all the compile have been done
function postbuild_libzstd() {
true
}
2 changes: 1 addition & 1 deletion recipes/qgis/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VERSION_qgis=3.13

# dependencies of this recipe
DEPS_qgis=(zlib gdal qca libspatialite libspatialindex expat gsl postgresql libzip qtkeychain exiv2 protobuf)
DEPS_qgis=(zlib gdal qca libspatialite libspatialindex expat gsl postgresql libzip qtkeychain exiv2 protobuf libzstd)
# DEPS_qgis=()

# url of the package
Expand Down

0 comments on commit b450229

Please sign in to comment.