# New ports collection makefile for:	galax
# Date created:				17 November 2002
# Whom:					Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
#
# $FreeBSD: ports/textproc/galax/Makefile,v 1.3 2003/02/21 13:42:34 knu Exp $
#

PORTNAME=	galax
PORTVERSION=	0.3.0
CATEGORIES=	textproc
MASTER_SITES=	http://db.bell-labs.com/galax/Downloads/

MAINTAINER=	stolz@i2.informatik.rwth-aachen.de
COMMENT=	Galax is a full-featured, fully compliant implementation of XQuery

BUILD_DEPENDS=	ocaml:${PORTSDIR}/lang/ocaml

WRKSRC=		${WRKDIR}/galax

USE_GMAKE=	yes
ALL_TARGET=	world
MAKE_ENV=	PREFIX=${PREFIX} JAVA_HOME=${JAVE_HOME}

PLIST_SUB=	GALAX=Galax-${PORTVERSION}

pre-patch:
	${SED} s,%%GALAXHOME%%,'$(PREFIX)/Galax-${PORTVERSION}', ${FILESDIR}/Makefile >${WRKSRC}/config/Makefile

post-install:
	@${SED} 's,PREFIX,${PREFIX},; s,GALAX,Galax-${PORTVERSION},' ${PKGMESSAGE}

.include <bsd.port.mk>
