# New ports collection makefile for:	hc12mem
# Date created:				18 November 2005
# Whom:					mk
#
# $FreeBSD$
#

PORTNAME=	hcs12mem
PORTVERSION=	1.4.1
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	mk@capri.pl
COMMENT=	Software to manipulate EEPROM/FLASH memory

GNU_CONFIGURE=		yes
USE_GMAKE=		yes
MANCOMPRESSED=		no

MAN1=		hcs12mem.1
DOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README
DATS=	mc9s12a32.dat mc9s12a64.dat mc9s12a128.dat \
	mc9s12a256.dat mc9s12a512.dat mc9s12d32.dat \
	mc9s12d64.dat mc9s12d128.dat mc9s12d256.dat \
	mc9s12d512.dat mc9s12c32.dat mc9s12c64.dat \
	mc9s12c96.dat mc9s12c128.dat mc9s12gc16.dat \
	mc9s12gc32.dat mc9s12gc64.dat mc9s12gc96.dat \
	mc9s12gc128.dat mc9s12e32.dat mc9s12e64.dat \
	mc9s12e128.dat mc9s12e256.dat mc9s12h128.dat \
	mc9s12h256.dat mc9s12ne64.dat mc9s12uf32.dat \
	mc9s12xd256.dat mc9s12xd512.dat

do-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${DATS:S,^,${WRKSRC}/target/,} ${DATADIR}/
	@${INSTALL_MAN}	${MAN1:S,^,${WRKSRC}/doc/,} ${MAN1PREFIX}/man/man1
	@${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.mk>