# New ports collection makefile for:	xzx
# Date created:				13 Nov 1997
# Whom:					Sheldon Hearn <axl@iafrica.com>
#
# $FreeBSD: ports/emulators/xzx/Makefile,v 1.45 2006/05/07 10:55:47 edwin Exp $
#

PORTNAME=	xzx
PORTVERSION=	4.5
CATEGORIES=	emulators
MASTER_SITES=	http://mitglied.lycos.de/suppentops123/spectrum/xzx/
DISTNAME=	${PORTNAME}-pro-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	ZX Spectrum (48K/128K/+3) Emulator for X11

# xmkmf is used in configure script; USE_IMAKE makes the build unhappy
BUILD_DEPENDS=	xmkmf:${X_IMAKE_PORT}

# Server redirects to distfile; won't work with -A
FETCH_CMD=	/usr/bin/fetch -Rr

USE_MOTIF=	yes
USE_X_PREFIX=	yes

# License forbids redistribution
RESTRICTED=	Redistribution forbidden by license

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-oss

MAN1=		xzx.1
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-pro
PORTDOCS=	COPYRIGHT FAQ README

# Prevent configure from trying to run auto* since it's not needed and will
# error if auto* < 2.54
post-configure:
		@${REINPLACE_CMD} 's@autoheader@${TRUE}@g' ${WRKSRC}/Makefile
		@${REINPLACE_CMD} 's@autoconf@${TRUE}@g' ${WRKSRC}/Makefile
		@${ECHO_CMD} "${TRUE}" > ${WRKSRC}/missing

.include <bsd.port.mk>
