freebsd-ports/graphics/waffle/Makefile
Koop Mast 32579890bf Update waffle to 1.5.1.
Use USES=compiler:c11 to allow it to build on older FreeBSD versions.
Enable GLX support.
Fix plist when cmake is in debug build mode.

Submitted by:	dumbbell@
2015-02-22 20:21:48 +00:00

39 lines
876 B
Makefile

# Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
# $FreeBSD$
PORTNAME= waffle
PORTVERSION= 1.5.1
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:outsource compiler:c11 ninja pkgconfig tar:xz
USE_LDCONFIG= yes
DOCSDIR= ${PREFIX}/share/doc/waffle1
OPTIONS_DEFINE= DOCS
USE_XORG= x11 xcb
USE_GL= gl egl
CFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CMAKE_ARGS+= -Dwaffle_has_glx=ON
#CMAKE_ARGS+= -Dwaffle_has_x11_egl=ON
#CMAKE_ARGS+= -Dwaffle_has_gbm=ON # FIXME: Required udev
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDOCS}
post-install:
${RM} -rf ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>