freebsd-ports/graphics/vulkan-loader/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

48 lines
1.3 KiB
Makefile

# $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 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>