# New ports collection makefile for:	reallyslick
# Date created:				24 Nov 2002
# Whom:					David Yeske <dyeske@yahoo.com>
#
# $FreeBSD: ports/graphics/reallyslick/Makefile,v 1.5 2004/04/17 13:53:06 pav Exp $
#

PORTNAME=	reallyslick
PORTVERSION=	0.7.6
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	rss-glx
DISTNAME=	rss-glx_${PORTVERSION}

MAINTAINER=	dyeske@yahoo.com
COMMENT=	OpenGL screensaver collection

USE_X_PREFIX=	yes
USE_BZIP2=	yes
USE_GL=		yes
USE_GMAKE=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes

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

post-patch:
.for file in oglc_src/Makefile.in other_src/Makefile.in \
		reallyslick/c_src/Makefile.in reallyslick/cpp_src/Makefile.in
	@${REINPLACE_CMD} -E -e 's|(@LIBS@)|\1 -lXext|' ${WRKSRC}/${file}
.endfor
# fix lib detection
	@${REINPLACE_CMD} -E -e 's@^(LIBS.*-l(GL|MesaGL|GLU))@\1 -lXext@' \
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

.include <bsd.port.mk>
