freebsd-ports/graphics/waffle/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

34 lines
837 B
Makefile

# Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
# $FreeBSD$
PORTNAME= waffle
PORTVERSION= 1.5.2
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://www.waffle-gl.org/files/release/waffle-${PORTVERSION}/
MAINTAINER= x11@FreeBSD.org
COMMENT= Library that allows to defer selection of an OpenGL API until runtime
LICENSE= BSD2CLAUSE
USES= cmake compiler:c11 localbase pathfix pkgconfig tar:xz
USE_GL= egl gl
USE_LDCONFIG= yes
USE_XORG= x11 xcb
DOCSDIR= ${PREFIX}/share/doc/waffle1
CMAKE_ARGS+= -Dwaffle_has_glx=ON \
-Dwaffle_has_x11_egl=ON
#CMAKE_ARGS+= -Dwaffle_has_gbm=ON # FIXME: Required udev
PLIST_SUB+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= DOCS WAYLAND
OPTIONS_DEFAULT=WAYLAND
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland
WAYLAND_CMAKE_BOOL= waffle_has_wayland
.include <bsd.port.mk>