Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #103 from opengisch/proj721
Browse files Browse the repository at this point in the history
Update PROJ to 8.0.1
  • Loading branch information
nirvn committed May 15, 2021
2 parents a685f32 + 41819d0 commit 359a33b
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .docker/qt-ndk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ RUN dpkg --add-architecture i386 && apt-get -qq update && apt-get -qq dist-upgra
sudo \
curl \
make \
autoconf \
automake \
autotools-dev \
libtool \
openjdk-8-jdk \
ant \
libarchive-tools \
Expand Down
65 changes: 65 additions & 0 deletions recipes/librttopo/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/bin/bash

# version of your package
VERSION_librttopo=1.1.0

# dependencies of this recipe
DEPS_librttopo=(geos)

# url of the package
URL_librttopo=https://git.osgeo.org/gitea/rttopo/librttopo/archive/librttopo-${VERSION_librttopo}.tar.gz

# md5 of the package
MD5_librttopo=0952b78943047ca69a9e6cbef6146869

# default build path
BUILD_librttopo=$BUILD_PATH/librttopo/$(get_directory $URL_librttopo)

# default recipe path
RECIPE_librttopo=$RECIPES_PATH/librttopo

# function called for preparing source code if needed
# (you can apply patch etc here.)
function prebuild_librttopo() {
cd $BUILD_librttopo

# check marker
if [ -f .patched ]; then
return
fi

./autogen.sh

touch .patched
}

function shouldbuild_librttopo() {
# If lib is newer than the sourcecode skip build
if [ $BUILD_PATH/librttopo/build-$ARCH/lib/librttopo.so -nt $BUILD_librttopo/.patched ]; then
DO_BUILD=0
fi
}

# function called to build the source code
function build_librttopo() {
try mkdir -p $BUILD_PATH/librttopo/build-$ARCH
try cd $BUILD_PATH/librttopo/build-$ARCH

push_arm

#try $BUILD_librttopo/autogen.sh
try $BUILD_librttopo/configure \
--host=$TOOLCHAIN_PREFIX \
--build=x86_64 \
--prefix=$STAGE_PATH \
--with-geosconfig=$STAGE_PATH/bin/geos-config
try $MAKESMP
try $MAKESMP install

pop_arm
}

# function called after all the compile have been done
function postbuild_librttopo() {
true
}
4 changes: 2 additions & 2 deletions recipes/libspatialite/patches/spatialite.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/configure
+++ b/configure
@@ -11971,8 +11971,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
@@ -12535,8 +12535,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
Expand All @@ -20,7 +20,7 @@
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
@@ -15808,8 +15817,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
@@ -16372,8 +16381,17 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
Expand Down
23 changes: 16 additions & 7 deletions recipes/libspatialite/recipe.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# version of your package
VERSION_libspatialite=4.3.0a
VERSION_libspatialite=5.0.1

# dependencies of this recipe
DEPS_libspatialite=(sqlite3 proj iconv freexl geos)
Expand All @@ -10,7 +10,7 @@ DEPS_libspatialite=(sqlite3 proj iconv freexl geos)
URL_libspatialite=http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-${VERSION_libspatialite}.tar.gz

# md5 of the package
MD5_libspatialite=6b380b332c00da6f76f432b10a1a338c
MD5_libspatialite=5f4a961afbb95dcdc715b5d7f8590573

# default build path
BUILD_libspatialite=$BUILD_PATH/libspatialite/$(get_directory $URL_libspatialite)
Expand Down Expand Up @@ -44,22 +44,31 @@ function shouldbuild_libspatialite() {

# function called to build the source code
function build_libspatialite() {
try mkdir -p $BUILD_PATH/libspatialite/build-$ARCH
try rsync -a $BUILD_libspatialite/ $BUILD_PATH/libspatialite/build-$ARCH/
try cd $BUILD_PATH/libspatialite/build-$ARCH

push_arm

export CPPFLAGS=$CXXFLAGS
LDFLAGS="$LDFLAGS -llog" \
CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" \
try $BUILD_libspatialite/configure \
try $BUILD_PATH/libspatialite/build-$ARCH/configure \
--prefix=$STAGE_PATH \
--host=$TOOLCHAIN_PREFIX \
--build=x86_64 \
--target=android \
--enable-examples=no \
--enable-proj=yes \
--enable-static=no \
--with-geosconfig=$STAGE_PATH/bin/geos-config \
--enable-libxml2=no

--enable-libxml2=no \
--enable-rttopo=no \
--enable-gcp=no \
--enable-minizip=no \
--disable-dependency-tracking

try $MAKESMP
try make install &> install.log

pop_arm
}

Expand Down
4 changes: 2 additions & 2 deletions recipes/libtiff/recipe.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# version of your package
VERSION_libtiff=4.0.9
VERSION_libtiff=4.2.0

# dependencies of this recipe
DEPS_libtiff=()
Expand All @@ -10,7 +10,7 @@ DEPS_libtiff=()
URL_libtiff=http://download.osgeo.org/libtiff/tiff-${VERSION_libtiff}.tar.gz

# md5 of the package
MD5_libtiff=54bad211279cc93eb4fca31ba9bfdc79
MD5_libtiff=2bbf6db1ddc4a59c89d6986b368fc063

# default build path
BUILD_libtiff=$BUILD_PATH/libtiff/$(get_directory $URL_libtiff)
Expand Down
8 changes: 5 additions & 3 deletions recipes/proj/recipe.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

# version of your package
VERSION_proj=6.3.2
VERSION_proj=8.0.1

# dependencies of this recipe
DEPS_proj=(sqlite3)
DEPS_proj=(sqlite3 libtiff)

# url of the package
URL_proj=https://download.osgeo.org/proj/proj-${VERSION_proj}.tar.gz

# md5 of the package
MD5_proj=2ca6366e12cd9d34d73b4602049ee480
MD5_proj=c2511f070f0e4854b1b8bf8baccf294c

# default build path
BUILD_proj=$BUILD_PATH/proj/$(get_directory $URL_proj)
Expand Down Expand Up @@ -50,6 +50,8 @@ function build_proj() {
-DCMAKE_INSTALL_PREFIX:PATH=$STAGE_PATH \
-DPROJ_TESTS=OFF \
-DEXE_SQLITE3=$(which sqlite3) \
-DENABLE_CURL=OFF \
-DBUILD_PROJSYNC=OFF \
$BUILD_proj
try $MAKESMP install
pop_arm
Expand Down

0 comments on commit 359a33b

Please sign in to comment.