2020-12-14 12:52:00 +05:30
|
|
|
# Helper function to compile and install geos
|
|
|
|
add_geos_helper() {
|
2021-04-03 05:13:18 +05:30
|
|
|
export GEOS_LINUX_LIBS='libgeos-dev'
|
|
|
|
export GEOS_DARWIN_LIBS='geos'
|
2021-04-19 17:03:57 +05:30
|
|
|
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
|
2020-12-14 12:52:00 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
# Function to add geos
|
|
|
|
add_geos() {
|
|
|
|
enable_extension "geos" "extension"
|
|
|
|
if check_extension "geos"; then
|
|
|
|
add_log "${tick:?}" "geos" "Enabled"
|
|
|
|
else
|
2025-04-03 04:23:15 +05:30
|
|
|
add_geos_helper
|
2020-12-14 12:52:00 +05:30
|
|
|
add_extension_log "geos" "Installed and enabled"
|
|
|
|
fi
|
|
|
|
}
|