# New ports collection makefile for:	xdms
# Date created:			Apr 13, 2001
# Whom:				Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD: ports/archivers/xdms/Makefile,v 1.6 2003/02/22 17:14:31 markp Exp $
#

PORTNAME=	xdms
PORTVERSION=	1.3
CATEGORIES=	archivers
MASTER_SITES=	http://www.ee.tut.fi/~heikki/xdms/
DISTNAME=	xdms

MAINTAINER=	markp@FreeBSD.org
COMMENT=	An Amiga DMS archiver unpacker

USE_ZIP=	yes
USE_REINPLACE=	yes
WRKSRC=		${WRKDIR}/xdms/src
ALL_TARGET=	xdms

post-patch:
	${REINPLACE_CMD} "s@gcc@${CC}@g; s@-O3 -Wall@${CFLAGS} -Wall@g" \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xdms ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/xdms
	${INSTALL_DATA} ${WRKDIR}/xdms/xdms.txt ${PREFIX}/share/doc/xdms
.endif

.include <bsd.port.mk>
