# New ports collection makefile for:   sage
# Date created:        4 February 2005
# Whom:                Janni
#
# $FreeBSD: ports/graphics/sage/Makefile,v 1.15 2012/02/18 10:18:26 mva Exp $
#

PORTNAME=	sage
PORTVERSION=	0.2.0
PORTREVISION=	3
CATEGORIES=	graphics devel
MASTER_SITES=	SF/worldforge/${PORTNAME}%20%28OpenGL%20helper%20lib%29/${PORTVERSION}

MAINTAINER=	oliver@FreeBSD.org
COMMENT=	OpenGL extension library

CONFIGURE_ARGS=	--program-transform-name=
GNU_CONFIGURE=	yes
USE_GL=		yes
USE_GNOME=	gnomehack
USE_LDCONFIG=	yes
USE_SDL=	sdl

MAN3=		sage.3 sage_init.3

CFLAGS+=	-I${LOCALBASE}/include

post-patch:
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/configure

.include <bsd.port.mk>
