-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf925f3
commit 5e44673
Showing
11 changed files
with
128 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
function check_lerc() { | ||
if [[ "$WITH_LERC" == "true" ]]; then | ||
env_var_exists VERSION_lerc | ||
fi | ||
} | ||
|
||
function bundle_lerc() { | ||
if [[ "$WITH_LERC" == "true" ]]; then | ||
try cp -av $DEPS_LIB_DIR/libLerc.*dylib $BUNDLE_LIB_DIR | ||
fi | ||
} | ||
|
||
function fix_binaries_lerc() { | ||
if [[ "$WITH_LERC" == "true" ]]; then | ||
install_name_id @rpath/$LINK_liblerc $BUNDLE_LIB_DIR/$LINK_liblerc | ||
fi | ||
} | ||
|
||
function fix_binaries_lerc_check() { | ||
if [[ "$WITH_LERC" == "true" ]]; then | ||
verify_binary $BUNDLE_LIB_DIR/$LINK_liblerc | ||
fi | ||
} | ||
|
||
function fix_paths_lerc() { | ||
: | ||
} | ||
|
||
function fix_paths_lerc_check() { | ||
: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/bin/bash | ||
|
||
DESC_lerc="Limited Error Raster Compression" | ||
|
||
# version of your package | ||
VERSION_lerc=3.0 | ||
|
||
LINK_liblerc=libLerc.dylib | ||
|
||
# dependencies of this recipe | ||
DEPS_lerc=() | ||
|
||
# url of the package | ||
URL_lerc=https://github.com/Esri/lerc/archive/refs/tags/v$VERSION_lerc.tar.gz | ||
|
||
# md5 of the package | ||
MD5_lerc=916567b67ca55ae037b826717b5940ec | ||
|
||
# default build path | ||
BUILD_lerc=$BUILD_PATH/lerc/$(get_directory $URL_lerc) | ||
|
||
# default recipe path | ||
RECIPE_lerc=$RECIPES_PATH/lerc | ||
|
||
# function called for preparing source code if needed | ||
# (you can apply patch etc here.) | ||
function prebuild_lerc() { | ||
cd $BUILD_lerc | ||
|
||
# check marker | ||
if [ -f .patched ]; then | ||
return | ||
fi | ||
|
||
touch .patched | ||
} | ||
|
||
function shouldbuild_lerc() { | ||
if [ ${STAGE_PATH}/lib/${LINK_liblerc} -nt $BUILD_lerc/.patched ]; then | ||
DO_BUILD=0 | ||
fi | ||
} | ||
|
||
# function called to build the source code | ||
function build_lerc() { | ||
try mkdir -p $BUILD_PATH/lerc/build-$ARCH | ||
try cd $BUILD_PATH/lerc/build-$ARCH | ||
|
||
push_env | ||
|
||
try $CMAKE $BUILD_lerc . | ||
|
||
check_file_configuration CMakeCache.txt | ||
|
||
try $NINJA | ||
try $NINJA install | ||
|
||
try install_name_tool -id $STAGE_PATH/lib/$LINK_liblerc $STAGE_PATH/lib/$LINK_liblerc | ||
|
||
pop_env | ||
} | ||
|
||
# function called after all the compile have been done | ||
function postbuild_lerc() { | ||
verify_binary lib/$LINK_liblerc | ||
} | ||
|
||
# function to append information to config file | ||
function add_config_info_lerc() { | ||
append_to_config_file "# lerc-${VERSION_lerc}: ${DESC_lerc}" | ||
append_to_config_file "export VERSION_lerc=${VERSION_lerc}" | ||
append_to_config_file "export LINK_liblerc=${LINK_liblerc}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters