xref: /mports/graphics/sdl3_ttf/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	sdl3_ttf
2DISTVERSIONPREFIX=	release-
3DISTVERSION=	3.2.2
4PORTREVISION=	3
5CATEGORIES=	graphics
6
7MAINTAINER=	ports@MidnightBSD.org
8COMMENT=	Library to use TrueType fonts to render text in SDL applications
9WWW=		https://github.com/libsdl-org/SDL_ttf
10
11LICENSE=	zlib
12LICENSE_FILE=	${WRKSRC}/LICENSE.txt
13
14LIB_DEPENDS=	libfreetype.so:print/freetype2
15
16USES=		cmake pkgconfig sdl
17USE_GITHUB=	yes
18GH_ACCOUNT=	libsdl-org
19GH_PROJECT=	SDL_ttf
20USE_LDCONFIG=	yes
21USE_SDL=	sdl3
22CMAKE_OFF=	SDLTTF_SAMPLES
23
24PLIST_SUB=	LIBVERSION=${DISTVERSION:C/[0-9]+/0/1}
25
26PORTDOCS=	*
27
28OPTIONS_DEFINE=	HARFBUZZ PLUTOSVG DOCS
29OPTIONS_DEFAULT=HARFBUZZ
30OPTIONS_SUB=	yes
31
32HARFBUZZ_DESC=		Use harfbuzz to improve text shaping
33HARFBUZZ_LIB_DEPENDS=	libharfbuzz.so:print/harfbuzz
34HARFBUZZ_CMAKE_BOOL=	SDLTTF_HARFBUZZ
35
36PLUTOSVG_DESC=		Use plutosvg for color emoji support
37PLUTOSVG_LIB_DEPENDS=	libplutosvg.so:graphics/plutosvg \
38			libplutovg.so:graphics/plutovg
39PLUTOSVG_CMAKE_BOOL=	SDLTTF_PLUTOSVG
40
41post-extract:
42	@${RM} -r ${WRKSRC}/external
43
44post-install-DOCS-on:
45	@${MKDIR} ${FAKE_DESTDIR}${DOCSDIR}
46	${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${WRKSRC}/README.md ${FAKE_DESTDIR}${DOCSDIR}/
47
48.include <bsd.port.mk>
49

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026