# Created by: Grzegorz Blach <gblach@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_2_0/benchmarks/expedite/Makefile 384130 2015-04-16 22:16:07Z bapt $

PORTNAME=	expedite
PORTVERSION=	1.7.10
CATEGORIES=	benchmarks enlightenment
MASTER_SITES=	http://download.enlightenment.org/releases/

MAINTAINER=	enlightenment@FreeBSD.org
COMMENT=	Expedite is a benchmark suite for Evas

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libefl.so:${PORTSDIR}/devel/efl

DIST_SUBDIR=	enlightenment
GNU_CONFIGURE=	yes
USES=		tar:bzip2 pkgconfig
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	OPENGL SDL X11
OPTIONS_DEFAULT=OPENGL X11
OPENGL_DESC=	Enable OpenGL evas engine
SDL_DESC=	Enable SDL evas engine
X11_DESC=	Enable X11 evas engine

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPENGL}
CONFIGURE_ARGS+=	--enable-opengl-x11
.else
CONFIGURE_ARGS+=	--disable-opengl-x11
.endif

.if ${PORT_OPTIONS:MSDL}
CONFIGURE_ARGS+=	--enable-software-sdl
.else
CONFIGURE_ARGS+=	--disable-software-sdl
.endif

.if ${PORT_OPTIONS:MX11}
CONFIGURE_ARGS+=	--enable-software-x11 --enable-xrender-x11
.else
CONFIGURE_ARGS+=	--disable-software-x11 --disable-xrender-x11
.endif

.include <bsd.port.mk>
