diff --git a/ArchLinux/Dockerfile b/ArchLinux/Dockerfile index 1c8d2f9..1c234a7 100644 --- a/ArchLinux/Dockerfile +++ b/ArchLinux/Dockerfile @@ -66,18 +66,19 @@ WORKDIR /tmp/makepkg RUN pacman -U --noconfirm *.pkg.tar.zst && \ rm *.pkg.tar.zst -RUN pacman -Sy --noconfirm unzip \ - && cd /tmp \ - && curl -sSL "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -o master.zip \ - && unzip master.zip \ - && cd ./LAStools-LAStools-2020-11-09 \ - && cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \ - && make -j "$(nproc)" \ - && make install \ - && cd .. \ - && rm -rf LAStools-LAStools-2020-11-09 \ - && rm -rf master.zip \ - && pacman -Scc +RUN pacman -Sy --noconfirm unzip wget && pacman -Scc + +RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \ + && unzip fix_make_install.zip \ + && cd LAStools-fix_make_install \ + && mkdir build \ + && cd build \ + && cmake -DCMAKE_BUILD_TYPE=Release .. \ + && make -j "$(nproc)" \ + && make install \ + && cd .. \ + && rm -rf LAStools-fix_make_install fix_make_install.zip + # LEDA includes are in a nonstandard location (/usr/include/LEDA/LEDA/... # instead of just /usr/include/LEDA/...) in Stephan Friedrich's AUR package, diff --git a/Fedora/Dockerfile b/Fedora/Dockerfile index 1e14652..90709a3 100644 --- a/Fedora/Dockerfile +++ b/Fedora/Dockerfile @@ -37,15 +37,17 @@ RUN dnf -y install \ lsb-release \ json-devel -RUN wget "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -O laslib.zip \ - && unzip laslib.zip \ - && cd ./LAStools-LAStools-2020-11-09 \ - && cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \ +RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \ + && unzip fix_make_install.zip \ + && cd LAStools-fix_make_install \ + && mkdir build \ + && cd build \ + && cmake -DCMAKE_BUILD_TYPE=Release .. \ && make -j "$(nproc)" \ && make install \ && cd .. \ - && rm -rf LAStools-LAStools-2020-11-09 \ - && rm -rf laslib.zip + && rm -rf LAStools-fix_make_install fix_make_install.zip + ENV CGAL_TEST_PLATFORM="Fedora" diff --git a/Ubuntu-clang-latest/Dockerfile b/Ubuntu-clang-latest/Dockerfile index d1fc11e..ddc536e 100644 --- a/Ubuntu-clang-latest/Dockerfile +++ b/Ubuntu-clang-latest/Dockerfile @@ -19,16 +19,18 @@ RUN apt-get update \ && cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ ../llvm -DCMAKE_BUILD_TYPE=Release \ && make -j"$(nproc)" \ && make -j"$(nproc)" install \ - && cd /tmp && rm -rf build llvm \ - && wget "https://github.com/CGAL/LAStools/archive/LAStools-2020-11-09.zip" -O laslib.zip \ - && unzip laslib.zip \ - && cd ./LAStools-LAStools-2020-11-09 \ - && cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 . \ + && cd /tmp && rm -rf build llvm + +RUN wget https://github.com/sloriot/LAStools/archive/refs/heads/fix_make_install.zip \ + && unzip fix_make_install.zip \ + && cd LAStools-fix_make_install \ + && mkdir build \ + && cd build \ + && cmake -DCMAKE_BUILD_TYPE=Release .. \ && make -j "$(nproc)" \ && make install \ && cd .. \ - && rm -rf LAStools-LAStools-2020-11-09 \ - && rm -rf laslib.zip + && rm -rf LAStools-fix_make_install fix_make_install.zip ENV CGAL_TEST_PLATFORM="Ubuntu-clang-latest" ENV CXX=/usr/local/bin/clang++