ports/graphics/vulkan-loader/Makefile

42 lines
1,000 B
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
COMMENT = Vulkan ICD loader
2023-09-08 05:21:37 +00:00
V = 1.3.261.1
2023-08-16 22:26:55 +00:00
PKGNAME = vulkan-loader-${V}
GH_TAGNAME = sdk-${V}
GH_ACCOUNT = KhronosGroup
GH_PROJECT = Vulkan-Loader
SHARED_LIBS += vulkan 1.1 # 1.3.204.1
CATEGORIES = devel graphics
HOMEPAGE = https://www.khronos.org/vulkan/
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += X11 xcb m pthread
BUILD_DEPENDS = graphics/vulkan-headers
RUN_DEPENDS = graphics/vulkan-headers
2023-09-08 05:21:37 +00:00
# XXX: building 1.3.261.1 with ENABLE_WERROR fails with
# vk_loader_platform.h:305:59: error: unused parameter 'buffer'
# [-Werror,-Wunused-parameter]
2023-08-16 22:26:55 +00:00
CONFIGURE_ARGS =-DBUILD_WSI_WAYLAND_SUPPORT=False \
2023-09-08 05:21:37 +00:00
-DENABLE_WERROR=False \
2023-08-16 22:26:55 +00:00
-DFALLBACK_CONFIG_DIRS="${SYSCONFDIR}/xdg" \
-DFALLBACK_DATA_DIRS="${X11BASE}/share:${LOCALBASE}/share:/usr/share"
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
lang/python
MODPY_RUNDEP = No
# Tests only build if Google Test framework is in directory external/
NO_TEST = Yes
.include <bsd.port.mk>