freebsd-ports/graphics/sdl2_ttf/Makefile
2023-02-07 21:43:45 +03:00

38 lines
893 B
Makefile

PORTNAME= sdl2_ttf
DISTVERSIONPREFIX= release-
DISTVERSION= 2.20.2
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= sdl2
CMAKE_OFF= SDL2TTF_SAMPLES
CMAKE_ARGS= -DSDL2TTF_DEBUG_POSTFIX:STRING=
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= SDL2TTF_HARFBUZZ
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>