diff --git a/README.md b/README.md index 35900c78..f4fdae1e 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,5 @@ | [libwebp](https://github.com/webmproject/libwebp) | 1.4.0 | 2024-04-12 | | [libjxl](https://github.com/libjxl/libjxl) | 0.11.0 | 2024-09-13 | | [sqlite](http://sqlite.org) | 3.47.0 | 2024-10-21 | -| [freetype](https://www.freetype.org) | 2.13.3 | 2024-08-12 | | [harfbuzz](https://github.com/harfbuzz/harfbuzz) | 10.1.0 | 2024-11-04 | | [cairo](https://gitlab.freedesktop.org/cairo/cairo) | 1.18.0 | 2023-09-23 | diff --git a/ports/freetype/portfile.cmake b/ports/freetype/portfile.cmake deleted file mode 100644 index d11b47d2..00000000 --- a/ports/freetype/portfile.cmake +++ /dev/null @@ -1,77 +0,0 @@ -set(VERSION 2.13.3) - -set(FILENAME "freetype-${VERSION}.tar.xz") -set(URLS - "https://download.savannah.gnu.org/releases/freetype/${FILENAME}" - "https://downloads.sourceforge.net/project/freetype/freetype2/${VERSION}/${FILENAME}" -) - -# Get archive -vcpkg_download_distfile(ARCHIVE - URLS ${URLS} - FILENAME ${FILENAME} - SHA512 600828d7756c8cfa974448ef34ee0db573fb8cfdb2dc1e0358b63c44a03bfd7e3d4384424b9cc5e4749034f60231a550c4b7fcb46694fcacea218787ce305504 -) - -# Extract archive -vcpkg_extract_source_archive_ex( - OUT_SOURCE_PATH SOURCE_PATH - ARCHIVE ${ARCHIVE} - REF ${VERSION} - PATCHES ${PATCHES} -) - -# Run CMake build -set(BUILD_OPTIONS - # No BZIP support - -DFT_DISABLE_BZIP2=ON - -DFT_REQUIRE_BZIP2=OFF - # No Harfbuzz support - -DFT_DISABLE_HARFBUZZ=ON - -DFT_REQUIRE_HARFBUZZ=OFF -) - -if (png IN_LIST FEATURES) - message(STATUS "Enabling libpng") - list(APPEND BUILD_OPTIONS -DFT_DISABLE_PNG=OFF -DFT_REQUIRE_PNG=ON) -else () - list(APPEND BUILD_OPTIONS -DFT_DISABLE_PNG=ON -DFT_REQUIRE_PNG=OFF) -endif () - -if (woff2 IN_LIST FEATURES) - message(STATUS "Enabling woff2") - list(APPEND BUILD_OPTIONS -DFT_DISABLE_BROTLI=OFF -DFT_REQUIRE_BROTLI=ON) -else () - list(APPEND BUILD_OPTIONS -DFT_DISABLE_BROTLI=ON -DFT_REQUIRE_BROTLI=OFF) -endif () - -if (zlib IN_LIST FEATURES) - message(STATUS "Enabling system zlib") - list(APPEND BUILD_OPTIONS -DFT_DISABLE_ZLIB=OFF -DFT_REQUIRE_ZLIB=ON) -else () - list(APPEND BUILD_OPTIONS -DFT_DISABLE_ZLIB=ON -DFT_REQUIRE_ZLIB=OFF) -endif () - -vcpkg_cmake_configure( - SOURCE_PATH ${SOURCE_PATH} - OPTIONS - ${BUILD_OPTIONS} - -DDISABLE_FORCE_DEBUG_POSTFIX=ON - OPTIONS_DEBUG - -DSKIP_INSTALL_HEADERS=ON -) - -vcpkg_cmake_install() -vcpkg_copy_pdbs() -vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/freetype) -vcpkg_fixup_pkgconfig() - -# Prepare distribution -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) -file(INSTALL ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype RENAME copyright) -file(INSTALL - ${SOURCE_PATH}/docs/FTL.TXT - ${SOURCE_PATH}/docs/GPLv2.TXT - DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype -) -file(WRITE ${CURRENT_PACKAGES_DIR}/share/freetype/version ${VERSION}) diff --git a/ports/freetype/vcpkg.json b/ports/freetype/vcpkg.json deleted file mode 100644 index 66531af5..00000000 --- a/ports/freetype/vcpkg.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "freetype", - "version": "2.13.3", - "description": "A library to render fonts.", - "homepage": "https://www.freetype.org", - "license": "FTL OR GPL-2.0-or-later", - "dependencies": [ - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ], - "features": { - "png": { - "description": "Support PNG compressed OpenType embedded bitmaps.", - "dependencies": [ - "libpng" - ] - }, - "woff2": { - "description": "Enable WOFF2 font support.", - "dependencies": [ - "brotli" - ] - }, - "zlib": { - "description": "Use zlib instead of internal library for DEFLATE", - "dependencies": [ - "zlib" - ] - } - } -}