# ex:ts=8
# Ports collection makefile for:	texmaker
# Date created:			Dec 29, 2003
# Whom:				ijliao
#
# $FreeBSD: ports/editors/texmaker/Makefile,v 1.2 2004/01/09 09:16:33 krion Exp $
#

PORTNAME=	texmaker
PORTVERSION=	1.0
CATEGORIES=	editors
MASTER_SITES=	http://perso.club-internet.fr/pascal.brachet/texmaker/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	LaTeX Development Environment

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

USE_BZIP2=	yes
USE_QT_VER=	3

do-build:
	@cd ${WRKSRC} && \
	 qmake -makefile -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
		-unix "LIBS+=-lm -lqt-mt" texmaker.pro && \
	 ${SETENV} QTDIR=${X11BASE} make

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/texmaker ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
.endif

.include <bsd.port.mk>
