Skip to content

Commit

Permalink
graphics/glfw: fix build with EXAMPLES and PREEDIT enabled
Browse files Browse the repository at this point in the history
Reported by:	Alexander88207 (discord)
Tested by:	nxjoseph (discord)
Approved by:	eduardo (maintainer)
  • Loading branch information
VVD committed Apr 28, 2024
1 parent 4f13355 commit f4bd1ce
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions graphics/glfw/Makefile
Expand Up @@ -10,7 +10,7 @@ WWW= https://www.glfw.org/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.md

USES= cmake:insource localbase zip
USES= cmake:insource localbase:ldflags zip
USE_LDCONFIG= yes

CMAKE_ON= BUILD_SHARED_LIBS
Expand Down Expand Up @@ -61,6 +61,12 @@ X11_USES= xorg
X11_USE= XORG=x11,xcursor,xi,xinerama,xrandr,xxf86vm
X11_CMAKE_BOOL= GLFW_BUILD_X11

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXAMPLES} && ${PORT_OPTIONS:MPREEDIT}
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig
.endif

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/docs/html/search
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
Expand All @@ -77,8 +83,8 @@ do-install-EXAMPLES-on:
${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/tests && ${INSTALL_PROGRAM} \
allocator clipboard cursor empty events gamma glfwinfo icon \
iconify inputlag joysticks monitors msaa reopen tearing threads \
timeout title triangle-vulkan window \
iconify input_text inputlag joysticks monitors msaa reopen \
tearing threads timeout title triangle-vulkan window \
${STAGEDIR}${EXAMPLESDIR}/tests

.include <bsd.port.mk>

0 comments on commit f4bd1ce

Please sign in to comment.