Skip to content

Commit b828f74

Browse files
committed
Add geos, libzip, protobuf and qgis
1 parent 2f166fb commit b828f74

File tree

4 files changed

+271
-0
lines changed

4 files changed

+271
-0
lines changed

geos.3.8.1.cmake

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This file is part of OpenOrienteering.
2+
3+
# Copyright 2016-2020 Kai Pastor
4+
#
5+
# Redistribution and use is allowed according to the terms of the BSD license:
6+
#
7+
# Redistribution and use in source and binary forms, with or without
8+
# modification, are permitted provided that the following conditions
9+
# are met:
10+
#
11+
# 1. Redistributions of source code must retain the copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
# 2. Redistributions in binary form must reproduce the copyright
14+
# notice, this list of conditions and the following disclaimer in the
15+
# documentation and/or other materials provided with the distribution.
16+
# 3. The name of the author may not be used to endorse or promote products
17+
# derived from this software without specific prior written permission.
18+
#
19+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
30+
# https://tracker.debian.org/pkg/gdal
31+
32+
set(version 3.8.1)
33+
set(download_hash SHA256=605df3f99056b7bb9c48f20d67e90e539f5a9ca5b2c7896d58ba06e3217dc106)
34+
set(patch_version ${version})
35+
set(base_url https://github.com/libgeos/geos/archive/)
36+
37+
superbuild_package(
38+
NAME geos
39+
VERSION ${patch_version}
40+
DEPENDS
41+
common-licenses
42+
43+
SOURCE
44+
URL ${base_url}${version}.tar.gz
45+
URL_HASH ${download_hash}
46+
47+
USING patch_version extra_cflags extra_cxxflags
48+
BUILD [[
49+
CMAKE_ARGS
50+
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
51+
"-DCMAKE_BUILD_TYPE:STRING=$<CONFIG>"
52+
-DBUILD_SHARED_LIBS=ON
53+
-DBUILD_TESTING=ON
54+
-DDISABLE_GEOS_INLINE=ON
55+
$<$<NOT:$<OR:$<BOOL:@CMAKE_CROSSCOMPILING@>,$<BOOL:@MSYS@>>>:
56+
INSTALL_COMMAND
57+
"${CMAKE_COMMAND}" --build . --target install/strip/fast
58+
]]
59+
)

libzip.1.7.3.cmake

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This file is part of OpenOrienteering.
2+
3+
# Copyright 2016-2020 Kai Pastor
4+
#
5+
# Redistribution and use is allowed according to the terms of the BSD license:
6+
#
7+
# Redistribution and use in source and binary forms, with or without
8+
# modification, are permitted provided that the following conditions
9+
# are met:
10+
#
11+
# 1. Redistributions of source code must retain the copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
# 2. Redistributions in binary form must reproduce the copyright
14+
# notice, this list of conditions and the following disclaimer in the
15+
# documentation and/or other materials provided with the distribution.
16+
# 3. The name of the author may not be used to endorse or promote products
17+
# derived from this software without specific prior written permission.
18+
#
19+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
30+
# https://tracker.debian.org/pkg/gdal
31+
32+
set(version 1.7.3)
33+
set(download_hash SHA256=c0a086901dfc8bda0fb8695f2d3c8050ed140b7899536b9348bcc72b47b2f307)
34+
set(patch_version ${version})
35+
set(base_url https://github.com/nih-at/libzip/archive/)
36+
37+
superbuild_package(
38+
NAME libzip
39+
VERSION ${patch_version}
40+
DEPENDS
41+
common-licenses
42+
43+
SOURCE
44+
URL ${base_url}v${version}.tar.gz
45+
URL_HASH ${download_hash}
46+
47+
USING patch_version extra_cflags extra_cxxflags
48+
BUILD [[
49+
CMAKE_ARGS
50+
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
51+
"-DCMAKE_BUILD_TYPE:STRING=$<CONFIG>"
52+
"-DBUILD_SHARED_LIBS=ON"
53+
"-DCMAKE_C_STANDARD_LIBRARIES:STRING=-latomic -lm -lc"
54+
$<$<NOT:$<OR:$<BOOL:@CMAKE_CROSSCOMPILING@>,$<BOOL:@MSYS@>>>:
55+
INSTALL_COMMAND
56+
"${CMAKE_COMMAND}" --build . --target install/strip/fast
57+
]]
58+
)

protobuf.3.6.1.cmake

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This file is part of OpenOrienteering.
2+
3+
# Copyright 2016-2020 Kai Pastor
4+
#
5+
# Redistribution and use is allowed according to the terms of the BSD license:
6+
#
7+
# Redistribution and use in source and binary forms, with or without
8+
# modification, are permitted provided that the following conditions
9+
# are met:
10+
#
11+
# 1. Redistributions of source code must retain the copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
# 2. Redistributions in binary form must reproduce the copyright
14+
# notice, this list of conditions and the following disclaimer in the
15+
# documentation and/or other materials provided with the distribution.
16+
# 3. The name of the author may not be used to endorse or promote products
17+
# derived from this software without specific prior written permission.
18+
#
19+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
30+
# https://tracker.debian.org/pkg/gdal
31+
32+
set(version 3.6.1)
33+
set(download_hash SHA256=3d4e589d81b2006ca603c1ab712c9715a76227293032d05b26fca603f90b3f5b)
34+
set(patch_version ${version})
35+
set(base_url https://github.com/protocolbuffers/protobuf/archive/)
36+
37+
superbuild_package(
38+
NAME protobuf
39+
VERSION ${patch_version}
40+
DEPENDS
41+
common-licenses
42+
zlib
43+
44+
SOURCE
45+
URL ${base_url}v${version}/protobuf-cpp-${version}.tar.gz
46+
URL_HASH ${download_hash}
47+
48+
USING patch_version extra_cflags extra_cxxflags
49+
BUILD [[
50+
CMAKE_ARGS
51+
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
52+
"-DCMAKE_BUILD_TYPE:STRING=$<CONFIG>"
53+
-DBUILD_SHARED_LIBS=ON
54+
-Dprotobuf_BUILD_TESTS=OFF
55+
"-DANDROID_LINKER_FLAGS=-landroid -llog"
56+
${SOURCE_DIR}/cmake
57+
58+
INSTALL_COMMAND
59+
"${CMAKE_COMMAND}" --build . --target install/strip/fast
60+
]]
61+
)

qgis-master.cmake

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# This file is part of OpenOrienteering.
2+
3+
# Copyright 2016-2020 Kai Pastor
4+
#
5+
# Redistribution and use is allowed according to the terms of the BSD license:
6+
#
7+
# Redistribution and use in source and binary forms, with or without
8+
# modification, are permitted provided that the following conditions
9+
# are met:
10+
#
11+
# 1. Redistributions of source code must retain the copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
# 2. Redistributions in binary form must reproduce the copyright
14+
# notice, this list of conditions and the following disclaimer in the
15+
# documentation and/or other materials provided with the distribution.
16+
# 3. The name of the author may not be used to endorse or promote products
17+
# derived from this software without specific prior written permission.
18+
#
19+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
30+
# https://tracker.debian.org/pkg/gdal
31+
32+
set(version master)
33+
set(download_hash SHA256=a06b47271827892f1897464c04a2a484f682f930d96b4d0329634512e973fe29)
34+
set(patch_version ${version})
35+
set(patch_hash SHA256=50314f747a4813566d0005b677f83eab50c5e2b32ce23e513830724d86ae5640)
36+
set(base_url https://github.com/qgis/QGIS/archive/)
37+
set(QGIS_QT_VERSION 5.15)
38+
39+
superbuild_package(
40+
NAME qgis
41+
VERSION ${patch_version}
42+
DEPENDS
43+
common-licenses
44+
gdal
45+
geos
46+
libzip
47+
protobuf
48+
qtandroidextras-${QGIS_QT_VERSION}
49+
qtbase-${QGIS_QT_VERSION}
50+
qtimageformats-${QGIS_QT_VERSION}
51+
qtlocation-${QGIS_QT_VERSION}
52+
qtsensors-${QGIS_QT_VERSION}
53+
qttools-${QGIS_QT_VERSION}
54+
qttranslations-${QGIS_QT_VERSION}
55+
56+
SOURCE
57+
URL ${base_url}${version}.tar.gz
58+
URL_HASH ${download_hash}
59+
60+
USING patch_version extra_cflags extra_cxxflags
61+
BUILD [[
62+
CMAKE_ARGS
63+
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
64+
"-DCMAKE_BUILD_TYPE:STRING=$<CONFIG>"
65+
-DBUILD_SHARED_LIBS=ON
66+
-DUSE_THREAD=ON
67+
-DWITH_QTWEBKIT=OFF
68+
$<$<NOT:$<BOOL:@CMAKE_CROSSCOMPILING@>>:
69+
-DBUILD_TESTING=ON
70+
>
71+
$<$<BOOL:@CMAKE_CROSSCOMPILING@>:
72+
-DCMAKE_PROGRAM_PATH=${HOST_DIR}/bin # for sqlite3
73+
-DBUILD_TESTING=OFF
74+
>
75+
$<$<NOT:$<OR:$<BOOL:@CMAKE_CROSSCOMPILING@>,$<BOOL:@MSYS@>>>:
76+
TEST_COMMAND
77+
"${CMAKE_COMMAND}" -E env
78+
"PROJ_LIB=${DESTDIR}${CMAKE_STAGING_PREFIX}/share/proj"
79+
"${CMAKE_COMMAND}" --build . --target test
80+
TEST_AFTER_INSTALL
81+
>
82+
INSTALL_COMMAND
83+
"${CMAKE_COMMAND}" --build . --target install/strip/fast
84+
COMMAND
85+
"${CMAKE_COMMAND}" -E copy_directory
86+
"<SOURCE_DIR>/../proj-patches-${patch_version}/data"
87+
"${DESTDIR}${CMAKE_STAGING_PREFIX}/share/proj"
88+
COMMAND
89+
"${CMAKE_COMMAND}" -E copy
90+
"<SOURCE_DIR>/../proj-patches-${patch_version}/copyright"
91+
"${DESTDIR}${CMAKE_STAGING_PREFIX}/share/doc/copyright/proj-${patch_version}.txt"
92+
]]
93+
)

0 commit comments

Comments
 (0)