aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/vulkan-loader/Makefile
blob: 7f87c5b27e664d3fb7f0b536e99d1b2304afc9b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $FreeBSD$

PORTNAME=   vulkan-loader
DISTVERSIONPREFIX=sdk-
DISTVERSION=    1.1.82.0
PORTREVISION=   3
CATEGORIES= graphics devel

MAINTAINER= greg@unrelenting.technology
COMMENT=    Driver loader for the Vulkan graphics API

LICENSE=    APACHE20

BUILD_DEPENDS=  ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers

USES=       cmake:outsource compiler:c++11-lib pkgconfig python:3.4+,build
USE_LDCONFIG=   yes

USE_GITHUB= yes
GH_ACCOUNT= KhronosGroup
GH_PROJECT= Vulkan-Loader

CMAKE_ON=   CMAKE_SKIP_RPATH
CMAKE_OFF=  BUILD_TESTS BUILD_WSI_MIR_SUPPORT

OPTIONS_DEFINE= XLIB XCB WAYLAND
OPTIONS_DEFAULT=XLIB XCB WAYLAND

XLIB_DESC=  Build Xlib WSI (Window System Integration) support
XCB_DESC=   Build XCB WSI (Window System Integration) support
WAYLAND_DESC=   Build Wayland WSI (Window System Integration) support

XLIB_CMAKE_BOOL=    BUILD_WSI_XLIB_SUPPORT
XLIB_LIB_DEPENDS=   libX11.so:x11/libX11 \
            libXrandr.so:x11/libXrandr
XCB_CMAKE_BOOL=     BUILD_WSI_XCB_SUPPORT
XCB_LIB_DEPENDS=    libX11-xcb.so:x11/libX11 \
            libxcb.so:x11/libxcb
WAYLAND_CMAKE_BOOL= BUILD_WSI_WAYLAND_SUPPORT
WAYLAND_LIB_DEPENDS=    libwayland-egl.so:graphics/wayland

post-patch:
# Non-x86 targets use C code, so don't abort without GNU as (e.g., on aarch64)
.if !exists(/usr/bin/as) && ${MACHINE_ARCH} != i386 && ${MACHINE_ARCH} != amd64
    @${REINPLACE_CMD} 's/-ATT//' ${WRKSRC}/loader/CMakeLists.txt
.endif

.include <bsd.port.mk>