Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEP: PROJ 9 #50

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CURL_VERSION=7.76.1
NGHTTP2_VERSION=1.43.0

export PROJ_WHEEL=true
export PROJ_VERSION=8.2.0
export PROJ_VERSION=9.0.0RC1


function install_curl_certs {
Expand Down Expand Up @@ -82,27 +82,18 @@ function build_proj {
get_modern_cmake
fetch_unpack https://download.osgeo.org/proj/proj-${PROJ_VERSION}.tar.gz
suppress build_curl_ssl
if [ -n "$IS_OSX" ]; then
(cd proj-${PROJ_VERSION:0:5} \
&& ./configure \
--prefix=$PROJ_DIR \
--with-curl=$BUILD_PREFIX/bin/curl-config \
&& make -j$(nproc) \
&& make install)
else
(cd proj-${PROJ_VERSION:0:5} \
&& cmake . \
-DCMAKE_INSTALL_PREFIX=$PROJ_DIR \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_IPO=ON \
-DBUILD_APPS:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_PREFIX_PATH=$BUILD_PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
&& cmake --build . -j$(nproc) \
&& cmake --install .)
fi
(cd proj-${PROJ_VERSION:0:5} \
&& cmake . \
-DCMAKE_INSTALL_PREFIX=$PROJ_DIR \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_IPO=ON \
-DBUILD_APPS:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_PREFIX_PATH=$BUILD_PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
&& cmake --build . -j$(nproc) \
&& cmake --install .)
touch proj-stamp
}

Expand All @@ -116,6 +107,9 @@ function pre_build {
export PROJ_DIR=$PWD/pyproj/pyproj/proj_dir
build_proj
remove_curl_certs
if [ -n "$IS_OSX" ]; then
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${PROJ_DIR}/lib"
fi
}

function run_tests {
Expand Down