# New ports collection makefile for:	Willows
# Version required:	1999.06.16
# Date created:		5 June 1999
# Whom:			Pedro F. Giffuni
#
# $FreeBSD: ports/emulators/twin/Makefile,v 1.2 2000/01/02 08:50:59 asami Exp $
#

DISTNAME=	twin-19990616
PKGNAME=	twin-1999.06.16
CATEGORIES=	emulators devel
MASTER_SITES=	ftp://ftp.willows.com/pub/development/

MAINTAINER=	giffunip@asme.org

WRKSRC=		$(WRKDIR)/twin
USE_XLIB=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
ALL_TARGET=	depend world
CONFIGURE_ARGS=

# This hack is in order to avoid a build error with optimizations on,
# a real bugfix will surely come soon.
pre-patch:
	${CP} $(WRKSRC)/windows/if32.s $(WRKSRC)/windows/if32.S

pre-configure:
	${ECHO} "configure_args = ${CONFIGURE_ARGS}"
	${ECHO} "configure_env = ${CONFIGURE_ENV}"

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/twin
	${INSTALL_DATA} ${WRKSRC}/documentation/* ${PREFIX}/share/doc/twin
	${GZIP_CMD} ${PREFIX}/share/doc/twin/*
.endif
	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.mk>
