1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

graphics/glfw: fix build with EXAMPLES enabled and PREEDIT disabled

Both options are non-default.

MFH:	2024Q2
This commit is contained in:
Vladimir Druzenko 2024-04-29 16:45:46 +03:00
parent 817c2557b7
commit 49fc7d7276

View File

@ -65,6 +65,7 @@ X11_CMAKE_BOOL= GLFW_BUILD_X11
.if ${PORT_OPTIONS:MEXAMPLES} && ${PORT_OPTIONS:MPREEDIT}
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig
TESTS_FILES= input_text
.endif
do-install-DOCS-on:
@ -83,8 +84,9 @@ do-install-EXAMPLES-on:
${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/tests && ${INSTALL_PROGRAM} \
allocator clipboard cursor empty events gamma glfwinfo icon \
iconify input_text inputlag joysticks monitors msaa reopen \
iconify inputlag joysticks monitors msaa reopen \
tearing threads timeout title triangle-vulkan window \
${TESTS_FILES} \
${STAGEDIR}${EXAMPLESDIR}/tests
.include <bsd.port.mk>