# New ports collection makefile for:    guile-ii
# Version required:     snapshot ii
# Date created:         8 May 1995
# Whom:                 jmacd@FreeBSD.ORG
#
#
#

DISTNAME= 	guile-ii
PKGNAME=	guile-ii
CATEGORIES+=	languages
MASTER_SITES=	ftp://ftp.cygnus.com/pub/lord/

MAINTAINER=	jmacd@FreeBSD.ORG

USE_GMAKE=	yes
IS_INTERACTIVE=	yes

do-configure:
	mkdir -p ${WRKSRC}/build
	cd ${WRKSRC}/build && ../configure --prefix=${PREFIX}

do-build:
	cd ${WRKSRC}/build && ${GMAKE} 

pre-install:
	@echo "**************************************************************"
	@echo "*                      W a r n i n g                         *"
	@echo "* This port will overwrite the existing tcl/tk installation. *"
	@echo "**************************************************************"
	@echo -n "Is this ok? (y/n) ==> "
	@(read ans; \
	  case x"$$ans" in \
	    xy*|xY*) \
		return 0; \
		;; \
	    *) \
		echo "Okay, I won't install it then...."; \
		echo "(Don't worry about the following \"*** Error code 1\"s)"; \
		return 1; \
		;; \
	  esac)

do-install:
	cd ${WRKSRC}/build && ${GMAKE} install
	strip ${PREFIX}/bin/guile ${PREFIX}/bin/tclsh ${PREFIX}/bin/wish

.include <bsd.port.mk>
