diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9da66f2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,177 @@ +name: ClamAV Build Test + +on: + pull_request: + branches: + - master + +jobs: + build-windows-x64: + runs-on: windows-2019 + + steps: + - name: Remove link.exe to avoid conflict with Visual Studio linker + run: rm /usr/bin/link.exe + shell: bash + + - uses: actions/checkout@v4 + + - name: Install Choco Things + uses: crazy-max/ghaction-chocolatey@v3 + with: + args: install nasm + + - name: Install Python Things + run: python3 -m pip install pytest mussels + + - name: Install Rust for cross-compiling to arm64 + run: rustup target add aarch64-pc-windows-msvc + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for x64 + run: msl build -r clamav -t x64 + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-windows-x86: + runs-on: windows-2019 + + steps: + - name: Remove link.exe to avoid conflict with Visual Studio linker + run: rm /usr/bin/link.exe + shell: bash + + - uses: actions/checkout@v4 + + - name: Install Choco Things + uses: crazy-max/ghaction-chocolatey@v3 + with: + args: install nasm + + - name: Install Python Things + run: python3 -m pip install pytest mussels + + - name: Install Rust for cross-compiling to arm64 + run: rustup target add aarch64-pc-windows-msvc + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for x86 + run: msl build -r clamav -t x86 + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-windows-arm64: + runs-on: windows-2019 + + steps: + - name: Remove link.exe to avoid conflict with Visual Studio linker + run: rm /usr/bin/link.exe + shell: bash + + - uses: actions/checkout@v4 + + - name: Install Choco Things + uses: crazy-max/ghaction-chocolatey@v3 + with: + args: install nasm + + - name: Install Python Things + run: python3 -m pip install pytest mussels + + - name: Install Rust for cross-compiling to arm64 + run: rustup target add aarch64-pc-windows-msvc + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for arm64 + run: msl build -r clamav -t arm64 + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-macos-dynamic: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Brew Things + run: brew install bison flex + + - name: Install Python Things + run: python3 -m pip install mussels pytest setuptools --break-system-packages + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for using dynamic libraries for host platform + shell: bash + run: msl build -r clamav -t host + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-macos-static: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Brew Things + run: brew install bison flex + + - name: Install Python Things + run: python3 -m pip install mussels pytest setuptools --break-system-packages + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for using static libraries for host platform + shell: bash + run: msl build -r clamav -t host-static + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-ubuntu-dynamic: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Update package listings + run: sudo apt-get update + + - name: Install Apt-get Things + run: sudo apt-get install -y bison flex valgrind pipx + + - name: Install Python Things + run: pipx install pytest mussels + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for using dynamic libraries for host platform + shell: bash + run: msl build -r clamav -t host + + # TODO: add test step that clones clamav, sets environment variables, and runs tests + + build-ubuntu-static: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Update package listings + run: sudo apt-get update + + - name: Install Apt-get Things + run: sudo apt-get install -y bison flex valgrind pipx + + - name: Install Python Things + run: pipx install pytest mussels + + - uses: lukka/get-cmake@v3.30.3 + + - name: Build for using static libraries for host platform + shell: bash + run: msl build -r clamav -t host-static + + # TODO: add test step that clones clamav, sets environment variables, and runs tests diff --git a/collections/clamav_deps-1.1.yaml b/collections/clamav_deps-1.1.yaml deleted file mode 100644 index 49de7ea..0000000 --- a/collections/clamav_deps-1.1.yaml +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: clamav_deps -version: "1.1" -mussels_version: "0.2" -type: collection -platforms: - Linux: - host: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - host-static: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - Freebsd: - host: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - host-static: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - Darwin: - host: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - host-static: - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - Windows: - x64: - dependencies: - - libz - - libcurl - - libjson_c - - pthreads_win32 - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - pdcurses - - libcheck - x86: - dependencies: - - libz - - libcurl - - libjson_c - - pthreads_win32 - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - pdcurses - - libcheck diff --git a/collections/clamav_deps-1.2.yaml b/collections/clamav_deps-1.5.yaml similarity index 99% rename from collections/clamav_deps-1.2.yaml rename to collections/clamav_deps-1.5.yaml index 2f5f0b2..7d38233 100644 --- a/collections/clamav_deps-1.2.yaml +++ b/collections/clamav_deps-1.5.yaml @@ -13,7 +13,7 @@ # limitations under the License. name: clamav_deps -version: "1.2" +version: "1.5" mussels_version: "0.2" type: collection platforms: diff --git a/collections/libclamav_deps-1.1.yaml b/collections/libclamav_deps-1.5.yaml similarity index 99% rename from collections/libclamav_deps-1.1.yaml rename to collections/libclamav_deps-1.5.yaml index cc06052..0ca3d0f 100644 --- a/collections/libclamav_deps-1.1.yaml +++ b/collections/libclamav_deps-1.5.yaml @@ -13,7 +13,7 @@ # limitations under the License. name: libclamav_deps -version: "1.1" +version: "1.5" mussels_version: "0.2" type: collection platforms: diff --git a/recipes/clamav-1.0.yaml b/recipes/clamav-1.0.yaml index 4647f7b..1e34183 100644 --- a/recipes/clamav-1.0.yaml +++ b/recipes/clamav-1.0.yaml @@ -48,8 +48,8 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.dylib" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.dylib" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.dylib" \ -D LIBCHECK_INCLUDE_DIR="{install}/include" \ @@ -95,30 +95,30 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -182,8 +182,8 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.so" \ -D LIBCHECK_INCLUDE_DIR="{install}/include" \ @@ -230,30 +230,30 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -318,8 +318,8 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.so" \ -D LIBCHECK_INCLUDE_DIR="{install}/include" \ @@ -366,30 +366,30 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARIES="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -451,8 +451,8 @@ platforms: -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ -D PCRE2_INCLUDE_DIR="{install}\include" \ -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ + -D PDCURSES_INCLUDE_DIR="{install}\include" \ + -D CURSES_LIBRARIES="{install}\lib\pdcurses.lib" \ -D PThreadW32_INCLUDE_DIR="{install}\include" \ -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ -D ZLIB_INCLUDE_DIR="{install}\include" \ @@ -502,10 +502,10 @@ platforms: -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ -D PCRE2_INCLUDE_DIR="{install}\include" \ -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ + -D PDCURSES_INCLUDE_DIR="{install}\include" \ + -D CURSES_LIBRARIES="{install}\lib\pdcurses.lib" \ -D PThreadW32_INCLUDE_DIR="{install}\include" \ - -D PThreadW32_LIBRARY="{install}\lib\pthreadVC2.lib" \ + -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ -D ZLIB_INCLUDE_DIR="{install}\include" \ -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ -D LIBCHECK_INCLUDE_DIR="{install}\include" \ diff --git a/recipes/clamav-1.1.yaml b/recipes/clamav-1.1.yaml deleted file mode 100644 index 7332baa..0000000 --- a/recipes/clamav-1.1.yaml +++ /dev/null @@ -1,532 +0,0 @@ -# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# TODO: Rewrite this to use the new CMake build system, when unit test support is complete. -name: clamav -version: "1.1.0" -url: https://github.com/Cisco-Talos/clamav/archive/rel/1.1.zip -archive_name_change: - - "1.1.0" - - clamav-rel-1.1 -mussels_version: "0.2" -type: recipe -platforms: - Darwin: - host: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D CURL_INCLUDE_DIR="{install}/include" \ - -D CURL_LIBRARY="{install}/lib/libcurl.dylib" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.dylib" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.dylib" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.dylib" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.dylib" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.dylib" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.dylib" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libclamunrar_iface.so" - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libfreshclam.dylib" - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libclamav.dylib" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clambc" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamconf" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamdscan" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamscan" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamsubmit" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/freshclam" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/sigtool" - install_name_tool -add_rpath @executable_path/../lib "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - make - - clang - - pkgconfig - - cmake - host-static: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libclamunrar_iface.so" - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libfreshclam.dylib" - install_name_tool -add_rpath @executable_path/../lib "{install}/lib/libclamav.dylib" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clambc" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamconf" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamdscan" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamscan" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/clamsubmit" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/freshclam" - install_name_tool -add_rpath @executable_path/../lib "{install}/bin/sigtool" - install_name_tool -add_rpath @executable_path/../lib "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - make - - clang - - pkgconfig - - cmake - Linux: - host: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D ENABLE_SYSTEMD=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D CURL_INCLUDE_DIR="{install}/include" \ - -D CURL_LIBRARY="{install}/lib/libcurl.so" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.so" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.so" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.so" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.so" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamunrar_iface.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libfreshclam.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamav.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clambc" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamconf" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamdscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamsubmit" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/freshclam" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/sigtool" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - make - - gcc - - patchelf - - pkgconfig - - cmake - host-static: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamunrar_iface.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libfreshclam.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamav.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clambc" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamconf" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamdscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamsubmit" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/freshclam" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/sigtool" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - make - - gcc - - patchelf - - pkgconfig - - cmake - Freebsd: - host: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D ENABLE_SYSTEMD=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D CURL_INCLUDE_DIR="{install}/include" \ - -D CURL_LIBRARY="{install}/lib/libcurl.so" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.so" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.so" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.so" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.so" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamunrar_iface.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libfreshclam.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamav.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clambc" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamconf" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamdscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamsubmit" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/freshclam" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/sigtool" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - gmake - - clang - - patchelf - - pkgconfig - - cmake - host-static: - build_script: - configure: | - mkdir build - cd build - cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ - -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" - make: | - cd build - cmake --build . - install: | - cd build - cmake --build . --target install - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamunrar_iface.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libfreshclam.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/lib/libclamav.so" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clambc" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamconf" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamdscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamscan" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/clamsubmit" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/freshclam" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/bin/sigtool" - patchelf --set-rpath '$ORIGIN/../lib' "{install}/sbin/clamd" - dependencies: - - libz - - libcurl - - libjson_c - - libxml2 - - libopenssl - - libpcre2 - - libbz2 - - libcheck - - ncurses - install_paths: - license/clamav: - - COPYING* - required_tools: - - gmake - - clang - - patchelf - - pkgconfig - - cmake - Windows: - x64: - build_script: - configure: | - mkdir build - cd build - CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ - -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}\include" \ - -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ - -D CURL_INCLUDE_DIR="{install}\include" \ - -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}\include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ - -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ - -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ - -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ - -D PCRE2_INCLUDE_DIR="{install}\include" \ - -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ - -D PThreadW32_INCLUDE_DIR="{install}\include" \ - -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ - -D ZLIB_INCLUDE_DIR="{install}\include" \ - -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ - -D LIBCHECK_INCLUDE_DIR="{install}\include" \ - -D LIBCHECK_LIBRARY="{install}\lib\checkDynamic.lib" - make: | - cd build - cmake --build . --config Release - install: | - cd build - cmake --build . --config Release --target install - dependencies: - - libz - - libcurl - - libjson_c - - pthreads_win32 - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - pdcurses - - libcheck - required_tools: - - cmake - - visualstudio>=2017 - x86: - build_script: - configure: | - mkdir build - cd build - CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ - -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}\include" \ - -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ - -D CURL_INCLUDE_DIR="{install}\include" \ - -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}\include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ - -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ - -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ - -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ - -D PCRE2_INCLUDE_DIR="{install}\include" \ - -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ - -D PThreadW32_INCLUDE_DIR="{install}\include" \ - -D PThreadW32_LIBRARY="{install}\lib\pthreadVC2.lib" \ - -D ZLIB_INCLUDE_DIR="{install}\include" \ - -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ - -D LIBCHECK_INCLUDE_DIR="{install}\include" \ - -D LIBCHECK_LIBRARY="{install}\lib\checkDynamic.lib" - make: | - cd build - cmake --build . --config Release - install: | - cd build - cmake --build . --config Release --target install - dependencies: - - libz - - libcurl - - libjson_c - - pthreads_win32 - - libxml2 - - libopenssl - - libpcre2 - - libbz2<1.1.0 - - pdcurses - - libcheck - required_tools: - - cmake - - visualstudio>=2017 diff --git a/recipes/clamav-1.2.yaml b/recipes/clamav-1.5.yaml similarity index 80% rename from recipes/clamav-1.2.yaml rename to recipes/clamav-1.5.yaml index d738f8f..6e98fc7 100644 --- a/recipes/clamav-1.2.yaml +++ b/recipes/clamav-1.5.yaml @@ -14,7 +14,7 @@ # TODO: Rewrite this to use the new CMake build system, when unit test support is complete. name: clamav -version: "1.2.0" +version: "1.5.0" url: https://github.com/Cisco-Talos/clamav/archive/main.zip archive_name_change: - "main" @@ -33,6 +33,7 @@ platforms: -D CMAKE_MODULE_PATH={install}/lib/cmake \ -D CMAKE_BUILD_TYPE=Release \ -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ -D ENABLE_JSON_SHARED=OFF \ @@ -48,7 +49,7 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.dylib" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.dylib" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.dylib" \ @@ -95,30 +96,31 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -144,7 +146,7 @@ platforms: - libxml2 - libopenssl - libpcre2 - - libbz2 + - libbz2<1.1.0 - libcheck - ncurses install_paths: @@ -166,6 +168,7 @@ platforms: -D CMAKE_MODULE_PATH={install}/lib/cmake \ -D CMAKE_BUILD_TYPE=Release \ -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ -D ENABLE_SYSTEMD=OFF \ -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ @@ -182,7 +185,7 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.so" \ @@ -230,30 +233,31 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -279,7 +283,7 @@ platforms: - libxml2 - libopenssl - libpcre2 - - libbz2 + - libbz2<1.1.0 - libcheck - ncurses install_paths: @@ -302,6 +306,7 @@ platforms: -D CMAKE_MODULE_PATH={install}/lib/cmake \ -D CMAKE_BUILD_TYPE=Release \ -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ -D ENABLE_SYSTEMD=OFF \ -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ @@ -318,7 +323,7 @@ platforms: -D LIBXML2_LIBRARY="{install}/lib/libxml2.so" \ -D PCRE2_INCLUDE_DIR="{install}/include" \ -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.so" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ -D ZLIB_INCLUDE_DIR="{install}/include" \ -D ZLIB_LIBRARY="{install}/lib/libz.so" \ @@ -366,30 +371,31 @@ platforms: mkdir build cd build cmake .. \ - -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ - -D CMAKE_PREFIX_PATH={install} \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D CMAKE_MODULE_PATH={install}/lib/cmake \ - -D CMAKE_BUILD_TYPE=Release \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ - -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}/include" \ - -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}/include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ - -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ - -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ - -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ - -D PCRE2_INCLUDE_DIR="{install}/include" \ - -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ - -D CURSES_INCLUDE_DIR="{install}/include" \ - -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ - -D ZLIB_INCLUDE_DIR="{install}/include" \ - -D ZLIB_LIBRARY="{install}/lib/libz.a" \ - -D LIBCHECK_INCLUDE_DIR="{install}/include" \ + -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ + -D CMAKE_PREFIX_PATH={install} \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D CMAKE_MODULE_PATH={install}/lib/cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D ENABLE_EXAMPLES=OFF \ + -D ENABLE_MILTER=OFF \ + -D JSONC_INCLUDE_DIR="{install}/include/json-c" \ + -D JSONC_LIBRARY="{install}/lib/libjson-c.a" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}/include" \ + -D BZIP2_LIBRARY_RELEASE="{install}/lib/libbz2.a" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}/include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}/lib/libcrypto.a" \ + -D OPENSSL_SSL_LIBRARY="{install}/lib/libssl.a" \ + -D LIBXML2_INCLUDE_DIR="{install}/include/libxml2" \ + -D LIBXML2_LIBRARY="{install}/lib/libxml2.a" \ + -D PCRE2_INCLUDE_DIR="{install}/include" \ + -D PCRE2_LIBRARY="{install}/lib/libpcre2-8.a" \ + -D NCURSES_INCLUDE_DIR="{install}/include" \ + -D CURSES_LIBRARY="{install}/lib/libncurses.a" \ + -D ZLIB_INCLUDE_DIR="{install}/include" \ + -D ZLIB_LIBRARY="{install}/lib/libz.a" \ + -D LIBCHECK_INCLUDE_DIR="{install}/include" \ -D LIBCHECK_LIBRARY="{install}/lib/libcheck.a" make: | cd build @@ -415,7 +421,7 @@ platforms: - libxml2 - libopenssl - libpcre2 - - libbz2 + - libbz2<1.1.0 - libcheck - ncurses install_paths: @@ -428,36 +434,99 @@ platforms: - pkgconfig - cmake Windows: + arm64: + build_script: + configure: | + >CMAKE_TOOLCHAIN_ARM64.cmake echo set(CMAKE_SYSTEM_NAME Windows) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(CMAKE_SYSTEM_PROCESSOR arm64) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(RUST_COMPILER_TARGET "aarch64-pc-windows-msvc") + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(HAVE_PRAGMA_PACK 1) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(HAVE_SAR 1) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(MMAP_FOR_CROSSCOMPILING OFF) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(ENABLE_SYSTEMD OFF) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(test_run_result "PLEASE_FILL_OUT-FAILED_TO_RUN" CACHE STRING "Result from try_run" FORCE) + >>CMAKE_TOOLCHAIN_ARM64.cmake echo set(test_run_result__TRYRUN_OUTPUT "PLEASE_FILL_OUT-NOTFOUND" CACHE STRING "Output from try_run" FORCE) + mkdir build + cd build + CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A arm64 \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ + -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}\include" \ + -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ + -D CURL_INCLUDE_DIR="{install}\include" \ + -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}\include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ + -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ + -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ + -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ + -D PCRE2_INCLUDE_DIR="{install}\include" \ + -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ + -D PDCURSES_INCLUDE_DIR="{install}\include" \ + -D CURSES_LIBRARIES="{install}\lib\pdcurses.lib" \ + -D PThreadW32_INCLUDE_DIR="{install}\include" \ + -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ + -D ZLIB_INCLUDE_DIR="{install}\include" \ + -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ + -D LIBCHECK_INCLUDE_DIR="{install}\include" \ + -D LIBCHECK_LIBRARY="{install}\lib\checkDynamic.lib" \ + -D CMAKE_TOOLCHAIN_FILE="..\CMAKE_TOOLCHAIN_ARM64.cmake" \ + -D HAVE_PRAGMA_PACK=1 \ + -D HAVE_SAR=1 + make: | + cd build + cmake --build . --config Release + install: | + cd build + cmake --build . --config Release --target install + dependencies: + - libz + - libcurl + - libjson_c + - pthreads_win32 + - libxml2 + - libopenssl + - libpcre2 + - libbz2<1.1.0 + - pdcurses + - libcheck + required_tools: + - cmake + - visualstudio>=2017 x64: build_script: configure: | mkdir build cd build CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ - -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}\include" \ - -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ - -D CURL_INCLUDE_DIR="{install}\include" \ - -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}\include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ - -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ - -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ - -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ - -D PCRE2_INCLUDE_DIR="{install}\include" \ - -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ - -D PThreadW32_INCLUDE_DIR="{install}\include" \ - -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ - -D ZLIB_INCLUDE_DIR="{install}\include" \ - -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ - -D LIBCHECK_INCLUDE_DIR="{install}\include" \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ + -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}\include" \ + -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ + -D CURL_INCLUDE_DIR="{install}\include" \ + -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}\include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ + -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ + -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ + -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ + -D PCRE2_INCLUDE_DIR="{install}\include" \ + -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ + -D PDCURSES_INCLUDE_DIR="{install}\include" \ + -D CURSES_LIBRARIES="{install}\lib\pdcurses.lib" \ + -D PThreadW32_INCLUDE_DIR="{install}\include" \ + -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ + -D ZLIB_INCLUDE_DIR="{install}\include" \ + -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ + -D LIBCHECK_INCLUDE_DIR="{install}\include" \ -D LIBCHECK_LIBRARY="{install}\lib\checkDynamic.lib" make: | cd build @@ -485,30 +554,30 @@ platforms: mkdir build cd build CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \ - -D CMAKE_INSTALL_PREFIX="{install}" \ - -D ENABLE_EXAMPLES=OFF \ - -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ - -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ - -D ENABLE_JSON_SHARED=OFF \ - -D BZIP2_INCLUDE_DIR="{install}\include" \ - -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ - -D CURL_INCLUDE_DIR="{install}\include" \ - -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ - -D OPENSSL_ROOT_DIR="{install}" \ - -D OPENSSL_INCLUDE_DIR="{install}\include" \ - -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ - -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ - -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ - -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ - -D PCRE2_INCLUDE_DIR="{install}\include" \ - -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ - -D CURSES_INCLUDE_DIR="{install}\include" \ - -D CURSES_LIBRARY="{install}\lib\pdcurses.lib" \ - -D PThreadW32_INCLUDE_DIR="{install}\include" \ - -D PThreadW32_LIBRARY="{install}\lib\pthreadVC2.lib" \ - -D ZLIB_INCLUDE_DIR="{install}\include" \ - -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ - -D LIBCHECK_INCLUDE_DIR="{install}\include" \ + -D CMAKE_INSTALL_PREFIX="{install}" \ + -D ENABLE_EXAMPLES=OFF \ + -D JSONC_INCLUDE_DIR="{install}\include\json-c" \ + -D JSONC_LIBRARY="{install}\lib\json-c.lib" \ + -D ENABLE_JSON_SHARED=OFF \ + -D BZIP2_INCLUDE_DIR="{install}\include" \ + -D BZIP2_LIBRARY_RELEASE="{install}\lib\libbz2.lib" \ + -D CURL_INCLUDE_DIR="{install}\include" \ + -D CURL_LIBRARY="{install}\lib\libcurl_imp.lib" \ + -D OPENSSL_ROOT_DIR="{install}" \ + -D OPENSSL_INCLUDE_DIR="{install}\include" \ + -D OPENSSL_CRYPTO_LIBRARY="{install}\lib\libcrypto.lib" \ + -D OPENSSL_SSL_LIBRARY="{install}\lib\libssl.lib" \ + -D LIBXML2_INCLUDE_DIR="{install}\include\libxml2" \ + -D LIBXML2_LIBRARY="{install}\lib\libxml2.lib" \ + -D PCRE2_INCLUDE_DIR="{install}\include" \ + -D PCRE2_LIBRARY="{install}\lib\pcre2-8.lib" \ + -D PDCURSES_INCLUDE_DIR="{install}\include" \ + -D CURSES_LIBRARIES="{install}\lib\pdcurses.lib" \ + -D PThreadW32_INCLUDE_DIR="{install}\include" \ + -D PThreadW32_LIBRARY="{install}\lib\pthreadVC3.lib" \ + -D ZLIB_INCLUDE_DIR="{install}\include" \ + -D ZLIB_LIBRARY="{install}\lib\zlibstatic.lib" \ + -D LIBCHECK_INCLUDE_DIR="{install}\include" \ -D LIBCHECK_LIBRARY="{install}\lib\checkDynamic.lib" make: | cd build diff --git a/recipes/libcurl-8.yaml b/recipes/libcurl-8.yaml index 1212b72..a63b233 100644 --- a/recipes/libcurl-8.yaml +++ b/recipes/libcurl-8.yaml @@ -42,6 +42,7 @@ platforms: -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/libnghttp2.dylib" \ -D CMAKE_INSTALL_PREFIX="{install}" \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -86,6 +87,7 @@ platforms: -D NGHTTP2_LIBRARY="{libs}/libnghttp2.a" \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=OFF \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -128,6 +130,7 @@ platforms: -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/libnghttp2.so" \ -D CMAKE_INSTALL_PREFIX="{install}" \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -172,6 +175,7 @@ platforms: -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=OFF \ -D CMAKE_INSTALL_LIBDIR=lib \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -213,6 +217,7 @@ platforms: -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/libnghttp2.so" \ -D CMAKE_INSTALL_PREFIX="{install}" \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -258,6 +263,7 @@ platforms: -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=OFF \ -D CMAKE_INSTALL_LIBDIR=lib \ + -D USE_LIBIDN2=OFF \ -D BUILD_CURL_EXE=OFF make: | cd build @@ -298,14 +304,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Release install: | cd build CALL cmake.exe --build . --config Release --target install - mv {install}/bin/libcurl.dll {install}/lib/ + cp {install}/bin/libcurl.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -337,14 +345,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Release install: | cd build CALL cmake.exe --build . --config Release --target install - mv {install}/bin/libcurl.dll {install}/lib/ + cp {install}/bin/libcurl.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -376,14 +386,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Release install: | cd build CALL cmake.exe --build . --config Release --target install - mv {install}/bin/libcurl.dll {install}/lib/ + cp {install}/bin/libcurl.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -415,14 +427,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Release install: | cd build CALL cmake.exe --build . --config Release --target install - mv {install}/bin/libcurl.dll {install}/lib/ + cp {install}/bin/libcurl.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -454,14 +468,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Debug install: | cd build CALL cmake.exe --build . --config Debug --target install - mv {install}/bin/libcurl-d.dll {install}/lib/ + cp {install}/bin/libcurl-d.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -493,14 +509,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Debug install: | cd build CALL cmake.exe --build . --config Debug --target install - mv {install}/bin/libcurl-d.dll {install}/lib/ + cp {install}/bin/libcurl-d.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -532,14 +550,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Debug install: | cd build CALL cmake.exe --build . --config Debug --target install - mv {install}/bin/libcurl-d.dll {install}/lib/ + cp {install}/bin/libcurl-d.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 @@ -571,14 +591,16 @@ platforms: -D USE_NGHTTP2=ON \ -D NGHTTP2_INCLUDE_DIR="{includes}" \ -D NGHTTP2_LIBRARY="{libs}/nghttp2.lib" \ - -D BUILD_CURL_EXE=OFF + -D BUILD_CURL_EXE=OFF \ + -D USE_LIBIDN2=OFF \ + -D PKG_CONFIG_EXECUTABLE=none make: | cd build CALL cmake.exe --build . --config Debug install: | cd build CALL cmake.exe --build . --config Debug --target install - mv {install}/bin/libcurl-d.dll {install}/lib/ + cp {install}/bin/libcurl-d.dll {install}/lib/ dependencies: - libopenssl - libnghttp2>=1.0.0 diff --git a/recipes/libnghttp2-1.yaml b/recipes/libnghttp2-1.yaml index 79ef723..dfa144f 100644 --- a/recipes/libnghttp2-1.yaml +++ b/recipes/libnghttp2-1.yaml @@ -13,8 +13,8 @@ # limitations under the License. name: libnghttp2 -version: "1.62.1" -url: https://github.com/nghttp2/nghttp2/archive/refs/tags/v1.62.1.zip +version: "1.63.0" +url: https://github.com/nghttp2/nghttp2/archive/refs/tags/v1.63.0.zip archive_name_change: - v - nghttp2- @@ -28,7 +28,7 @@ platforms: mkdir build cd build cmake .. \ - -G Xcode -T buildsystem=1 \ + -G Xcode \ -D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ @@ -41,7 +41,7 @@ platforms: -D ZLIB_LIBRARY="{libs}/libz.a" \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON -D BUILD_STATIC_LIBS=OFF \ - -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF make: | cd build cmake --build . --config RelWithDebInfo @@ -66,7 +66,7 @@ platforms: mkdir build cd build cmake .. \ - -G Xcode -T buildsystem=1 \ + -G Xcode \ -D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ @@ -79,7 +79,7 @@ platforms: -D ZLIB_LIBRARY="{libs}/libz.a" \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=OFF -D BUILD_STATIC_LIBS=ON \ - -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF make: | cd build cmake --build . --config RelWithDebInfo @@ -106,6 +106,7 @@ platforms: cmake .. \ -D CMAKE_BUILD_TYPE=Release \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D OPENSSL_LIBRARIES="{libs}" \ @@ -144,7 +145,7 @@ platforms: -D CMAKE_BUILD_TYPE=Release \ -D BUILD_SHARED_LIBS=OFF \ -D BUILD_STATIC_LIBS=ON \ - -D BUILD_TESTING=OFF \ + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D OPENSSL_LIBRARIES="{libs}" \ @@ -186,6 +187,7 @@ platforms: cmake .. \ -D CMAKE_BUILD_TYPE=Release \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D OPENSSL_LIBRARIES="{libs}" \ @@ -232,7 +234,7 @@ platforms: -D ZLIB_ROOT="{includes}" \ -D ZLIB_LIBRARY="{libs}/libz.a" \ -D CMAKE_INSTALL_PREFIX="{install}" \ - -D ENABLE_LIB_ONLY=ON \ + -D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \ -D ENABLE_STATIC_LIB=ON \ -D ENABLE_SHARED_LIB=OFF \ -D CMAKE_POSITION_INDEPENDENT_CODE=ON \ @@ -263,6 +265,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIR="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -293,6 +296,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM64 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -323,6 +327,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -353,6 +358,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIR="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -383,6 +389,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIR="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -413,6 +420,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM64 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -443,6 +451,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIRS="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ @@ -473,6 +482,7 @@ platforms: CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \ -D CMAKE_INSTALL_PREFIX="{install}" \ -D BUILD_SHARED_LIBS=ON \ + -D ENABLE_LIB_ONLY=ON \ -D OPENSSL_ROOT_DIR="{install}" \ -D OPENSSL_INCLUDE_DIR="{includes}" \ -D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \ diff --git a/recipes/libxml2-2.10.yaml b/recipes/libxml2-2.10.yaml index e4342d6..94097a7 100644 --- a/recipes/libxml2-2.10.yaml +++ b/recipes/libxml2-2.10.yaml @@ -13,11 +13,11 @@ # limitations under the License. name: libxml2 -version: "2.12.8" -url: https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.12.8/libxml2-v2.12.8.tar.gz -archive_name_change: - - libxml2-v2.13.0-cdd2575f7fbab1d8162600f4048bc37503c80e28 - - libxml2-v2.12.8 +version: "2.13.3" +url: https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.13.3/libxml2-v2.13.3.tar.gz +# archive_name_change: +# - libxml2-v2.13.3-cdd2575f7fbab1d8162600f4048bc37503c80e28 +# - libxml2-v2.13.3 mussels_version: "0.3" type: recipe platforms: diff --git a/recipes/ncurses-6.yaml b/recipes/ncurses-6.yaml index 7ea798e..6629d76 100644 --- a/recipes/ncurses-6.yaml +++ b/recipes/ncurses-6.yaml @@ -22,7 +22,7 @@ platforms: host: build_script: configure: | - CFLAGS="-arch x86_64 -arch arm64" ./configure --with-termlib --disable-widec --prefix={install} + CFLAGS="-arch x86_64 -arch arm64" ./configure --disable-widec --prefix={install} make: | make install: | @@ -37,7 +37,7 @@ platforms: host-static: build_script: configure: | - CFLAGS="-arch x86_64 -arch arm64" ./configure --with-termlib --disable-widec --prefix={install} + CFLAGS="-arch x86_64 -arch arm64" ./configure --disable-widec --prefix={install} make: | make install: | @@ -53,7 +53,7 @@ platforms: host: build_script: configure: | - ./configure --with-termlib --disable-widec --prefix={install} + ./configure --disable-widec --prefix={install} make: | gmake install: | @@ -68,7 +68,7 @@ platforms: host-static: build_script: configure: | - ./configure --with-termlib --disable-widec --prefix={install} + ./configure --disable-widec --prefix={install} make: | gmake install: | @@ -84,7 +84,7 @@ platforms: host: build_script: configure: | - ./configure --with-termlib --disable-widec --prefix={install} + ./configure --disable-widec --prefix={install} make: | make install: | @@ -99,7 +99,7 @@ platforms: host-static: build_script: configure: | - ./configure --with-termlib --disable-widec --prefix={install} + ./configure --disable-widec --prefix={install} make: | make install: |