commit ab56e58b6f612636322dd62c672763772264ca92
parent 8ee2828cb63bd1d4f861685e11299c7991a807f4
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 1 Oct 2024 16:02:25 +0200
Revive the star-cpr 0.5 build script
The reason is that star-cpr 0.5.1 relies on cliper2 1.4, which, while
introducing a lot of fixes required to run city_generator2, also
introduces new requirements on the C++ compiler that are not met by older
versions of gcc.
Diffstat:
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/src/star-cpr_0.5.sh b/src/star-cpr_0.5.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# Copyright (C) 2023, 2024 |Méso|Star> (contact@meso-star.com)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+set -e
+
+[ -n "${STAR_CPR_SH}" ] && return
+export STAR_CPR_SH=1
+
+. "build.sh"
+. "clipper2_1.1.1.sh"
+. "polygon_0.2.sh"
+. "rsys_0.14.sh"
+
+name="star-cpr"
+url="$\(REPO\)/star-cpr.git"
+tag="0.5"
+dep="clipper2 polygon rsys"
+opt="BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\)"
+git_repo