# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD: graphics/reallyslick/Makefile 327733 2013-09-20 18:35:44Z bapt $

PORTNAME=	reallyslick
PORTVERSION=	0.9.1
PORTREVISION=	9
CATEGORIES=	graphics
MASTER_SITES=	SF/rss-glx/rss-glx/${PORTVERSION}
DISTNAME=	rss-glx_${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	OpenGL screensaver collection

LIB_DEPENDS=	MagickWand:${PORTSDIR}/graphics/ImageMagick \
		GLC.0:${PORTSDIR}/graphics/quesoglc

OPTIONS_DEFINE=	FREEALUT GLEW
FREEALUT_DESC=	Enable freealut support
GLEW_DESC=	Enable GLEW support

USE_BZIP2=	yes
USE_GL=		glut
USES=	pathfix gmake
GNU_CONFIGURE=	yes

MAN1=		biof.1 busyspheres.1 colorfire.1 cyclone.1 drempels.1 \
		euphoria.1 feedback.1 fieldlines.1 flocks.1 flux.1 \
		helios.1 hufo_smoke.1 hufo_tunnel.1 hyperspace.1 lattice.1 \
		lorenz.1 matrixview.1 pixelcity.1 plasma.1 skyrocket.1 \
		solarwinds.1 spirographx.1 sundancer2.1

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lXext

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFREEALUT}
USE_OPENAL=	alut
.else
CONFIGURE_ARGS+=	--disable-sound
.endif

.if ${PORT_OPTIONS:MGLEW}
USE_GL+=	glew
.else
CONFIGURE_ENV+=	ac_cv_header_GL_glew_h=no
.endif

.include <bsd.port.mk>
