# New ports collection makefile for:   etherboot
# Date created:        16 April 1999
# Whom:                Doug Ambrisko <ambrisko@whistle.com>
#
# $FreeBSD: ports/net/etherboot/Makefile,v 1.13 2000/10/08 10:22:29 asami Exp $
#

PORTNAME=	etherboot
PORTVERSION=	4.6.1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		http://www.us.kernel.org/pub/linux/devel/gcc/ \
		http://www.ambrisko.com/doug/
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTFILES=	${DISTNAME}.tar.gz ${BINUTILS_VER}.tar.gz

MAINTAINER=	ambrisko@whistle.com

BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm

NO_PACKAGE=	lots of configuration necessary
USE_GMAKE=1
WRKSRC=		${WRKDIR}/${DISTNAME}/src
BINUTILS_VER=   binutils-2.9.1.0.25  # need newer version of gas for data32

pre-configure:
	cd ${WRKDIR}/${BINUTILS_VER} ; \
	   ./configure -host=i386-unknown-freebsdelf

pre-build:
	cd ${WRKDIR}/${BINUTILS_VER} ; \
	make

do-install:
	@${ECHO} Refer ${DESCR} and ${WRKDIR}/${PKGNAME}/doc for how to
	@${ECHO} build and install the rom/floppy image.
	@exit 1

.include <bsd.port.mk>
