freebsd-ports/graphics/waffle/Makefile
Koop Mast 4027840998 Add waffle 1.5.0.
Waffle is a cross-platform C library that allows one to defer selection
of an OpenGL API and window system until runtime.

It is used by the piglit, Mesa's OpenGL test suite, to test multiple
OpenGL flavors in a cross-platform way.
2015-01-14 16:04:12 +00:00

41 lines
842 B
Makefile

# Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
# $FreeBSD$
PORTNAME= waffle
PORTVERSION= 1.5.0
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 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 \
# -Dwaffle_has_x11_egl=ON
# todo needs libudev
# -Dwaffle_has_gbm=ON
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDOCS}
post-install:
${RM} -rf ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>