# Created by: ijliao
# $FreeBSD: graphics/p5-OpenGL/Makefile 327733 2013-09-20 18:35:44Z bapt $

PORTNAME=	OpenGL
PORTVERSION=	0.66
PORTREVISION=	1
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

USE_DISPLAY=	requires an X server for configure stage

MANUAL_PACKAGE_BUILD=	fails to start X server on pointyhat

CONFIGURE_ARGS=	interface=GLUT
USES=		perl5 display:install
USE_PERL5=	configure
USE_GL=		glut

MAN3=		Array.3 \
		OpenGL.3 \
		Tessellation.3

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

.include <bsd.port.mk>
