Switch to homebrew-extensions for geos on macOS [skip ci]

This commit is contained in:
Shivam Mathur
2026-09-28 09:43:39 +05:30
parent bbf0b638cc
commit 64cefab514
2 changed files with 10 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@ event=event
excimer=excimer excimer=excimer
expect=expect expect=expect
gearman=gearman gearman=gearman
geos=geos
gmagick=gmagick gmagick=gmagick
gnupg=gnupg gnupg=gnupg
grpc=grpc grpc=grpc
+9 -3
View File
@@ -1,8 +1,12 @@
# Helper function to compile and install geos # Helper function to compile and install geos
add_geos_helper() { add_geos_helper() {
export GEOS_LINUX_LIBS='libgeos-dev' if [ "$os" = "Linux" ]; then
export GEOS_DARWIN_LIBS='geos' export GEOS_LINUX_LIBS='libgeos-dev'
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get export GEOS_DARWIN_LIBS='geos'
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
else
add_brew_extension geos extension
fi
} }
# Function to add geos # Function to add geos
@@ -15,3 +19,5 @@ add_geos() {
add_extension_log "geos" "Installed and enabled" add_extension_log "geos" "Installed and enabled"
fi fi
} }
os="$(uname -s)"