From nobody Tue Feb 04 16:53:27 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YnTvr1SK7z5n5V6; Tue, 04 Feb 2025 16:53:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YnTvq1w1Rz3Qr3; Tue, 04 Feb 2025 16:53:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738688007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UcDSwiXJZaBnxbKCN01PbT1dVwguxgMGBLsjFusMpII=; b=ecG2H2lXoBcfUlaZsr1qdaeyZCoBUeA4zlPhUjcHa5xOZ2dO6yCVkKEFdtWntF6T5dcyqW 0Ym727sQnN1dL5bkivLQR1u3SbJGklhCxjIlp8SBa9AV4L59upIowFlfb7biEis7nm8auG chUSnczLP+a/4ig5d6lslPqhU3D3z/tR7O7nNq+xolU/Sj9m/PpuLL3vUrwo+QJYv1BLBQ csLtq/kbNf1ziDH2hCCUMDPnjs4mHbGNncVzZAdxpOae+3GqMXeXqvw11q7TGk5pOKIz03 l2g+x32rmYTCBTtC9Rzx6YlFRSHyCrzWuILb3DAFJ+TH4ipg/yBJWSu+lCHA6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738688007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UcDSwiXJZaBnxbKCN01PbT1dVwguxgMGBLsjFusMpII=; b=a8cUfMeLWYsX+RHlq2Z4EJGBuhN1aXIWGTLBZkTr2oRBq/01BDDcUvW52oTPYGfYRJ7Qs4 qkjqkcVuG1WuvGMD6vRXEgiChqN1r+zgFhLGvUlKSvFUcY0FQA+ZgirnmRG+GCmHhCpccS GSuWYIF+zwtpUYDGIDEeQUq5tqvIQcorMFTcLQoQG+IZje48c+r+0hZWYFHlqjVp/8dDmu CKofRIaBfQaqsoa5gP73u9x+nihQ/2H7AfnU0Vv/hNiR0jFOJ8Nw5tru5QyEny9ZgFEY7b /bHB01SML3Q8ey4TUz+6Gch5PSLTdGMRTXHspprjzO2kCRX+rxhPKI4dwUpesQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738688007; a=rsa-sha256; cv=none; b=BjKOKYQkcFyC4zSzDygup00te8ykY8a5J/mN3KYTtCI9hv13wl8ktGfdB+/vtCb1rybsqX eN6tfhJpMfJ02p3mQKepAlzrT/YcTAFhQ4hBN3Fg9ly1kVsGwevkKnxcW/a6uAGZoaMlzO GUWaQkQKqh01/8r7iJYHiisicLlNCdUISLkc9CUzUXkPLk0XY4mLlSB0wj1+MzKCTbIUzw O15d0peG4wUwRkh5WkBJ031CXIbI2Ns1patUvb8/W50xCUcJh6J9qwINtK+stjKQyzmR2U Ut2P3axkZs2EUCTQKyu+GMV+ZwdGujxX7hZMrX68wrH2qhvQd6HKy9GmDCH4og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YnTvq1WMxzX4; Tue, 04 Feb 2025 16:53:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 514GrRmt047379; Tue, 4 Feb 2025 16:53:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 514GrRUk047376; Tue, 4 Feb 2025 16:53:27 GMT (envelope-from git) Date: Tue, 4 Feb 2025 16:53:27 GMT Message-Id: <202502041653.514GrRUk047376@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: a17aa793a974 - main - graphics/sdl3_ttf: add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a17aa793a974d87d899d2e7b129b488c8125c708 Auto-Submitted: auto-generated The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=a17aa793a974d87d899d2e7b129b488c8125c708 commit a17aa793a974d87d899d2e7b129b488c8125c708 Author: Dmitry Marakasov AuthorDate: 2025-02-04 16:47:48 +0000 Commit: Dmitry Marakasov CommitDate: 2025-02-04 16:52:33 +0000 graphics/sdl3_ttf: add port This library is a wrapper around the FreeType and Harfbuzz libraries, allowing you to use TrueType fonts to render text in SDL applications. It allows a programmer to use multiple TrueType fonts without having to code a font rendering routine themselves. With the power of outline fonts and antialiasing, high quality text output can be obtained without much effort. --- Mk/Uses/sdl.mk | 5 ++++- graphics/Makefile | 1 + graphics/sdl3_ttf/Makefile | 37 +++++++++++++++++++++++++++++++++++++ graphics/sdl3_ttf/distinfo | 3 +++ graphics/sdl3_ttf/pkg-descr | 7 +++++++ graphics/sdl3_ttf/pkg-plist | 13 +++++++++++++ 6 files changed, 65 insertions(+), 1 deletion(-) diff --git a/Mk/Uses/sdl.mk b/Mk/Uses/sdl.mk index 1586df618323..4c29f13f0e64 100644 --- a/Mk/Uses/sdl.mk +++ b/Mk/Uses/sdl.mk @@ -70,13 +70,16 @@ _SDL_ttf2_LIB_DEPENDS= libSDL2_ttf.so:graphics/sdl2_ttf _SDL_ttf2_REQUIRES= sdl2 # These are the current supported SDL3 modules -_SDL_USE_ALL+= sdl3 image3 +_SDL_USE_ALL+= sdl3 image3 ttf3 _SDL_sdl3_LIB_DEPENDS= libSDL3.so:devel/sdl3 _SDL_image3_LIB_DEPENDS= libSDL3_image.so:graphics/sdl3_image _SDL_image3_REQUIRES= sdl3 +_SDL_ttf3_LIB_DEPENDS= libSDL3_ttf.so:graphics/sdl3_ttf +_SDL_ttf3_REQUIRES= sdl3 + # Basic checks . if !empty(sdl_ARGS) IGNORE= USES=sdl takes no arguments diff --git a/graphics/Makefile b/graphics/Makefile index 3f0e06030d6e..c72b9a5b82d1 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1151,6 +1151,7 @@ SUBDIR += sdl2_image SUBDIR += sdl2_ttf SUBDIR += sdl3_image + SUBDIR += sdl3_ttf SUBDIR += sdl_gfx SUBDIR += sdl_image SUBDIR += sdl_ttf diff --git a/graphics/sdl3_ttf/Makefile b/graphics/sdl3_ttf/Makefile new file mode 100644 index 000000000000..b98b7ea65aae --- /dev/null +++ b/graphics/sdl3_ttf/Makefile @@ -0,0 +1,37 @@ +PORTNAME= sdl3_ttf +DISTVERSIONPREFIX= preview- +DISTVERSION= 3.1.0 +CATEGORIES= graphics + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Library to use TrueType fonts to render text in SDL applications +WWW= https://github.com/libsdl-org/SDL_ttf + +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +LIB_DEPENDS= libfreetype.so:print/freetype2 + +USES= cmake sdl +USE_GITHUB= yes +GH_ACCOUNT= libsdl-org +GH_PROJECT= SDL_ttf +USE_SDL= sdl3 +CMAKE_OFF= SDLTTF_SAMPLES +USE_LDCONFIG= yes + +PORTDOCS= * + +OPTIONS_DEFINE= HARFBUZZ DOCS +OPTIONS_DEFAULT=HARFBUZZ +OPTIONS_SUB= yes + +HARFBUZZ_DESC= Enable HarfBuzz support +HARFBUZZ_LIB_DEPENDS= libharfbuzz.so:print/harfbuzz +HARFBUZZ_CMAKE_BOOL= SDLTTF_HARFBUZZ + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + +.include diff --git a/graphics/sdl3_ttf/distinfo b/graphics/sdl3_ttf/distinfo new file mode 100644 index 000000000000..15304e48ff0d --- /dev/null +++ b/graphics/sdl3_ttf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1738686984 +SHA256 (libsdl-org-SDL_ttf-preview-3.1.0_GH0.tar.gz) = 2e4e28a098bd2a6dda85d3de5d1edb440af66f8e4d4e5d3be30a3a8628583699 +SIZE (libsdl-org-SDL_ttf-preview-3.1.0_GH0.tar.gz) = 1574695 diff --git a/graphics/sdl3_ttf/pkg-descr b/graphics/sdl3_ttf/pkg-descr new file mode 100644 index 000000000000..4b0feb36dbcd --- /dev/null +++ b/graphics/sdl3_ttf/pkg-descr @@ -0,0 +1,7 @@ +This library is a wrapper around the FreeType and Harfbuzz libraries, +allowing you to use TrueType fonts to render text in SDL applications. + +It allows a programmer to use multiple TrueType fonts without having +to code a font rendering routine themselves. With the power of +outline fonts and antialiasing, high quality text output can be +obtained without much effort. diff --git a/graphics/sdl3_ttf/pkg-plist b/graphics/sdl3_ttf/pkg-plist new file mode 100644 index 000000000000..3a628b6c6bd9 --- /dev/null +++ b/graphics/sdl3_ttf/pkg-plist @@ -0,0 +1,13 @@ +include/SDL3_ttf/SDL_textengine.h +include/SDL3_ttf/SDL_ttf.h +lib/cmake/SDL3_ttf/Findharfbuzz.cmake +lib/cmake/SDL3_ttf/Findplutosvg.cmake +lib/cmake/SDL3_ttf/PkgConfigHelper.cmake +lib/cmake/SDL3_ttf/SDL3_ttf-shared-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/SDL3_ttf/SDL3_ttf-shared-targets.cmake +lib/cmake/SDL3_ttf/SDL3_ttfConfig.cmake +lib/cmake/SDL3_ttf/SDL3_ttfConfigVersion.cmake +lib/libSDL3_ttf.so +lib/libSDL3_ttf.so.0 +lib/libSDL3_ttf.so.0.1.0 +libdata/pkgconfig/sdl3-ttf.pc