--- configure 2023-12-21 04:23:48.000000000 +0800 +++ configure 2023-12-23 00:07:05.000000000 +0800 @@ -12,7 +12,7 @@ PKG_RPM_NAME="unixODBC-devel" PKG_CSW_NAME="unixodbc_dev" PKG_PACMAN_NAME="unixodbc" -PKG_BREW_NAME="unixodbc" +PKG_MP_NAME="@ODBC@" PKG_TEST_HEADER="" PKG_LIBS="${PKG_LIBS:--lodbc}" @@ -40,15 +40,6 @@ if [ "$PKGCONFIG_CFLAGS" ] || [ "$PKGCONFIG_LIBS" ]; then PKG_CFLAGS=${PKGCONFIG_CFLAGS} PKG_LIBS=${PKGCONFIG_LIBS} - elif [ "`uname`" = 'Darwin' ]; then - if [ "`command -v brew`" ]; then - BREWDIR=`brew --prefix` - PKG_CFLAGS="-I$BREWDIR/opt/$PKG_BREW_NAME/include" - PKG_LIBS="-L$BREWDIR/lib $PKG_LIBS" - else - curl -sfL "https://autobrew.github.io/scripts/unixodbc" > autobrew - . ./autobrew - fi fi fi @@ -75,7 +66,7 @@ echo " * rpm: $PKG_RPM_NAME (Fedora, CentOS, RHEL)" echo " * csw: $PKG_CSW_NAME (Solaris)" echo " * pacman: $PKG_PACMAN_NAME (Archlinux, Manjaro, etc)" - echo " * brew: $PKG_BREW_NAME (Mac OSX)" + echo " * port: $PKG_MP_NAME (MacOS)" echo "To use a custom $PKG_CONFIG_NAME set INCLUDE_DIR and LIB_DIR and PKG_LIBS manually via:" echo "R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=... PKG_LIBS=...'" echo "--------------------------------------------------------------------"