# New ports collection makefile for:	Kawa
# Date created:				23 January 2002
# Whom:					Zach Garner <zach@neurosoft.org>
#
# $FreeBSD: ports/lang/kawa/Makefile,v 1.23 2007/05/19 20:13:42 flz Exp $
#

PORTNAME=		kawa
PORTVERSION=		1.8
PORTREVISION=	1
CATEGORIES=		lang scheme java
MASTER_SITES=		${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	kawa

MAINTAINER=		laszlof@FreeBSD.org
COMMENT=		Java-based Scheme implementation

BUILD_DEPENDS=		gsed:${PORTSDIR}/textproc/gsed

USE_JAVA=		yes
JAVA_VERSION=		1.2+
GNU_CONFIGURE=		yes
CONFIGURE_ARGS=		--enable-kawa-frontend --program-prefix=''

MAN1=			kawa.1 qexo.1
INFO=			kawa kawa-tour

.include <bsd.port.pre.mk>

pre-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} \
		-e 's|sed |gsed |g;' \
		-e 's|JAR = jar|JAR = ${JAR}|g;'
	@${REINPLACE_CMD} -e 's|{JAVAC-javac}|{JAVAC-${JAVAC}}|g;' \
		-e 's|{JAVA-java}|{JAVA-${JAVA}}|g;' ${WRKSRC}/configure

.include <bsd.port.post.mk>


syntax highlighted by Code2HTML, v. 0.9.1