# New ports collection makefile for:	K3DSurf
# Date created:		Sun 19 feb 2006
# Whom:			thierry@pompo.net
#
# $FreeBSD: ports/math/k3dsurf/Makefile,v 1.3 2006/08/20 20:09:33 thierry Exp $
#

PORTNAME=	k3dsurf
PORTVERSION=	0.5.5
CATEGORIES=	math graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Visualize and manipulate Mathematical surfaces or curves

BUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake

USE_QT_VER=	3
QTDIR?=		${X11BASE}
MAKE_ENV=	QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++"	\
		QTDIR="${QTDIR}"

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=	bin/k3dsurf

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
BROKEN=		Does not compile with gcc-2.95
.endif

pre-build:
	cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} qmake

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/k3dsurf ${PREFIX}/bin

.include <bsd.port.post.mk>
