# Created by: andreas@marvin.robin.de
# $FreeBSD: head/graphics/xmandel/Makefile 339287 2014-01-09 21:39:48Z antoine $

PORTNAME=	xmandel
PORTVERSION=	1.0
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.cray.com/src/graphics/xmandel/
# The README says the location is ftp.cray.com:/usr/ftp/src/graphics/xmandel,
# but this has changed apparently.
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.shar

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Window based interface to Mandelbrot sets and Julia sets

EXTRACT_CMD=	${SH}
EXTRACT_BEFORE_ARGS=	# empty
EXTRACT_AFTER_ARGS=	# empty
USES=		imake perl5
USE_XORG=	ice sm x11 xaw xext xmu xt
USE_PERL5=	build
NO_WRKSUBDIR=	yes
PLIST_FILES=	bin/xmandel man/man1/xmandel.1.gz

pre-patch:
	@${REINPLACE_CMD} -i '' -e 's|malloc.h|stdlib.h|' ${WRKSRC}/mandel.c

.include <bsd.port.mk>
