# $FreeBSD: head/math/qwtplot3d-qt4/Makefile 367888 2014-09-10 20:50:31Z gerald $

PORTNAME=	qwtplot3d
PORTVERSION=	0.2.7
PORTREVISION=	5
CATEGORIES=	math
MASTER_SITES=	SF
PKGNAMESUFFIX=	-qt4

MAINTAINER=	makc@FreeBSD.org
COMMENT=	3D plotting widgets for scientific data and math expressions

USES=		dos2unix qmake tar:tgz
USE_QT4=	gui moc_build opengl
USE_GL=		glu
USE_LDCONFIG=	yes

WRKSRC=	${WRKDIR}/${PORTNAME}

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/qwtplot3d-qt4
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include/qwtplot3d-qt4
	${INSTALL_LIB} ${WRKSRC}/lib/libqwtplot3d-qt4.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib
	${LN} -fs libqwtplot3d-qt4.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libqwtplot3d-qt4.so.0
	${LN} -fs libqwtplot3d-qt4.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libqwtplot3d-qt4.so

.include <bsd.port.mk>