# Created by: Maxim Sobolev <sobomax@FreeBSD.org>

PORTNAME=	xlhtml
PORTVERSION=	0.5
PORTREVISION=	5
PORTEPOCH=	1
CATEGORIES=	textproc
MASTER_SITES=	SF/chicago/${PORTNAME}/backend

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Convert Excel and PowerPoint files to HTML and text

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		autoreconf gmake tar:tgz

GNU_CONFIGURE=	yes

OPTIONS_DEFINE=	DOCS

post-build:
	@${STRIP_CMD} ${WRKSRC}/xlhtml/xlhtml
	@${STRIP_CMD} ${WRKSRC}/ppthtml/ppthtml

post-install-DOCS-on:
.for dir in xlhtml ppthtml
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/${dir}
	cd ${WRKSRC}/${dir} && \
		${INSTALL_DATA} ChangeLog README THANKS \
		${STAGEDIR}${DOCSDIR}/${dir}
.endfor

.include <bsd.port.mk>
