# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: math/drgeo/Makefile 325190 2013-08-22 12:38:12Z amdmi3 $

PORTNAME=	drgeo
PORTVERSION=	1.1.0
PORTREVISION=	14
CATEGORIES=	math
MASTER_SITES=	SF/ofset/${PORTNAME}/${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	GTK interactive geometry software

LIB_DEPENDS=	guile:${PORTSDIR}/lang/guile

USES=		gettext
USE_GNOME=	gnomehack gnomeprefix intlhack libglade2
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_GCC=	any # doesn't link otherwise

post-patch:
	@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|g' \
		${WRKSRC}/plugin/drgeo/progs/tm_drgeo

.include <bsd.port.mk>
