# New ports collection makefile for:	SoQt
# Date created:				10 March 2003
# Whom:					roland.jesse@gmx.net
#
# $FreeBSD: ports/x11-toolkits/soqt/Makefile,v 1.32 2011/09/23 22:26:33 amdmi3 Exp $
#

PORTNAME=	SoQt
PORTVERSION=	1.5.0
PORTREVISION=	1
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://ftp.coin3d.org/coin/src/all/ \
		ftp://ftp.coin3d.org/pub/coin/src/all/
DIST_SUBDIR=	KDE

MAINTAINER=	cristianorolim@hotmail.com
COMMENT=	Qt4 toolkit library for Coin

LIB_DEPENDS=	Coin.61:${PORTSDIR}/graphics/Coin

USE_AUTOTOOLS=	libtool
USE_GNOME=	gnomehack
USE_QT_VER=	4
QT_COMPONENTS=	corelib opengl moc_build
USE_GMAKE=	yes
CPPFLAGS+=	-I${QT_INCDIR} -I${QT_INCDIR}/Qt -I${LOCALBASE}/include
LDFLAGS+=	-L${QT_LIBDIR} -L${LOCALBASE}/lib

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	QTDIR="${QT_PREFIX}"

CONFIGURE_ARGS=	--with-pthread=yes --with-coin=${LOCALBASE} \
		--with-qt=${QT_LIBDIR}
USE_LDCONFIG=	yes

MAN1=		soqt-config.1

post-install:
	@${TOUCH} ${PREFIX}/include/Inventor/Qt/engines/.keep_me

.include <bsd.port.mk>
