# Created by: ijliao

PORTNAME=	OpenGL
PORTVERSION=	0.66
PORTREVISION=	7
CATEGORIES=	graphics perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:CHM
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl module to display 3D data using OpenGL, GLU, GLUT, and GLX

MANUAL_PACKAGE_BUILD=	needs the X server it will be used with to build

PORTSCOUT=	limit:^[0-9\.]*$$

CONFIGURE_ARGS=	interface=FREEGLUT
USES=		gl perl5 display:configure xorg
USE_PERL5=	configure
USE_GL=		glut
USE_XORG=	x11 xext xmu xi ice

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Makefile.PL

.include <bsd.port.mk>
