#   $OpenBSD: Makefile,v 1.2 1998/09/14 02:55:42 marc Exp $
#

DISTNAME=	sdr.V2.4a7n
PKGNAME=	sdr-2.4a7
CATEGORIES=	mbone tk80
MASTER_SITES=	http://north.east.isi.edu/sdr/

MAINTAINER=	angelos@openbsd.org

LIB_DEPENDS=	tk80\\.1:${PORTSDIR}/x11/tk80

NO_WRKSUBDIR=	yes
HAS_CONFIGURE=	yes
USE_GMAKE=	yes
USE_X11=	yes

# src/libs.tcl is autogenerated from the tcl/tk installed on the
# build system, so we shouldn't use the one in the distribution.
# Makefile.work and configure help to work with the sdr multi-platform
# build structure.
post-extract:
	@${RM} -f ${WRKSRC}/src/libs.tcl
	@${CP} ${FILESDIR}/Makefile.work ${WRKSRC}/Makefile
	@${CP} ${FILESDIR}/configure ${WRKSRC}
	@chmod 755 ${WRKSRC}/configure

.include <bsd.port.mk>
