# New ports colelction makefile for: hugs
# Version required:
# Date created:
# Whom:			nathanw@mit.edu
#
# $NetBSD$

DISTNAME=	hugs-January1998-source
EXTRACT_SUFX=	.tgz
PKGNAME=	hugs-1.4
CATEGORIES=	lang
MASTER_SITES=	ftp://haskell.org/pub/haskell/hugs/January1998/ \
		ftp://ftp.cs.nott.ac.uk/pub/haskell/hugs/January1998/

MAINTAINER=	nathanw@mit.edu

WRKSRC=		${WRKDIR}/hugs/src
GNU_CONFIGURE=	yes
ALL_TARGET=	default

# The hugs distribution puts configure and friends in a subdirectory 
# below the sources, and insists that configure be run from that directory,
# which is awkward for bsd.port.mk.
do-configure:
	@(cd ${WRKSRC}/unix && CC="${CC}" ac_cv_path_CC="${CC}" \
	    CFLAGS="${CFLAGS}" \
	    INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
	    INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
	    ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})

.include <bsd.port.mk>

