# New ports collection makefile for:	LotusXSL
# Date created:		23 June 1999
# Whom:			Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD: ports/textproc/lotusxsl/Makefile,v 1.9 2001/08/07 23:09:38 kuriyama Exp $
#

PORTNAME=	lotusxsl
PORTVERSION=	0.18.4
CATEGORIES=	textproc
MASTER_SITES=	http://www.alphaworks.ibm.com/formula/lotusxsl/
#MASTER_SITES=	http://apps.alphaworks.ibm.com/technologies/lotusxsl/
DISTNAME=	${PORTNAME}_0_18_4
EXTRACT_SUFX=	.zip

MAINTAINER=	ports@FreeBSD.org

BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
RUN_DEPENDS=	${LOCALBASE}/share/java/classes/xml4j.jar:${PORTSDIR}/textproc/xml4j

EXTRACT_CMD=		unzip
EXTRACT_BEFORE_ARGS=	-a -q -L
EXTRACT_AFTER_ARGS=	# empty
RESTRICTED=		"License prohibites to distribute."

DIR=		${PREFIX}/share/java

do-build:
	${SED} -e s,%%PREFIX%%,${PREFIX},g ${FILESDIR}/lotusxsl.sh > ${WRKSRC}/lotusxsl

do-install:
	${MKDIR} ${DIR}/classes ${DIR}/LotusXSL
	(cd ${WRKSRC};\
	 ${INSTALL_DATA} js.jar lotusxsl.jar lotusxslbsf.jar ${DIR}/classes;\
	 ${CP} -R apidocs examples images readme_production *.htm? run* ${DIR}/LotusXSL;\
	 ${INSTALL_SCRIPT} ${WRKSRC}/lotusxsl ${PREFIX}/bin)

.include <bsd.port.mk>
