Files
sthen 0fa8b67e3e libinput-openbsd is neither linked nor dlopen()d so move
from LIB_DEPENDS to BUILD_DEPENDS, found by "LIB_DEPENDS xx not needed for"
2026-03-09 20:01:42 +00:00

43 lines
857 B
Makefile

COMMENT = open source, multi-platform library for creating windows
V = 3.4
DISTNAME = glfw-${V}
CATEGORIES = graphics x11
REVISION = 2
SHARED_LIBS += glfw 1.2 # 3.4
HOMEPAGE = https://www.glfw.org/
MAINTAINER = Kurt Mosiejczuk <kmos@openbsd.org>
# zlib
PERMIT_PACKAGE = Yes
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
WANTLIB += epoll-shim m pthread
# dlopen()'d
WANTLIB += X11 wayland-client wayland-cursor wayland-egl xkbcommon
SITES = https://github.com/glfw/glfw/releases/download/${V}/
EXTRACT_SUFX = .zip
MODULES = devel/cmake
CONFIGURE_ARGS = -DBUILD_SHARED_LIBS=ON \
-DGLFW_BUILD_EXAMPLES=OFF \
-DGLFW_BUILD_TESTS=OFF
CFLAGS += -I${X11BASE}/include
BUILD_DEPENDS = wayland/libinput-openbsd
LIB_DEPENDS = devel/epoll-shim \
wayland/wayland \
x11/xkbcommon
NO_TEST = Yes
.include <bsd.port.mk>