2000-04-12 04:56:17 +00:00
|
|
|
# New ports collection makefile for: Atari800
|
1997-10-29 09:07:09 +00:00
|
|
|
# Date created: 29th April, 1997
|
1999-03-30 16:32:35 +00:00
|
|
|
# Whom: Joel Sutton <jsutton@webnet.com.au>
|
1997-10-29 09:07:09 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-10-29 09:07:09 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 04:56:17 +00:00
|
|
|
PORTNAME= atari800
|
|
|
|
PORTVERSION= 0.8.6
|
1997-10-29 09:07:09 +00:00
|
|
|
CATEGORIES= emulators
|
1998-12-03 06:44:06 +00:00
|
|
|
MASTER_SITES= http://www.signus.demon.co.uk/Software/Portable/Atari800e/ \
|
|
|
|
http://cas3.zlin.vutbr.cz/~stehlik/a800/
|
2000-04-12 04:56:17 +00:00
|
|
|
DISTNAME= Atari800-${PORTVERSION}
|
1997-10-29 09:07:09 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${EXTRA_FILES}
|
|
|
|
|
2000-02-06 21:46:28 +00:00
|
|
|
MAINTAINER= jsutton@bbcon.com.au
|
1999-07-15 01:13:28 +00:00
|
|
|
|
1997-10-29 09:07:09 +00:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
2000-02-06 21:46:28 +00:00
|
|
|
|
1999-03-30 16:32:35 +00:00
|
|
|
DIST_SUBDIR= atari
|
1997-10-29 09:07:09 +00:00
|
|
|
EXTRA_FILES= xf25.zip
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
2000-02-06 21:46:28 +00:00
|
|
|
ALL_TARGET= freebsd-x11
|
1999-03-30 16:32:35 +00:00
|
|
|
|
|
|
|
RESTRICTED= "xf25 contains copyright ROMs and cannot be distributed."
|
|
|
|
NO_PACKAGE= ${RESTRICTED}
|
1997-10-29 09:07:09 +00:00
|
|
|
|
|
|
|
ATARI_DOC= ${PREFIX}/share/doc/atari
|
1999-03-30 16:32:35 +00:00
|
|
|
ATARI_XF= ataribas.rom atariosb.rom atarixl.rom demos1.xfd \
|
|
|
|
demos2.xfd dos25.xfd mydos45d.atr
|
1997-10-29 09:07:09 +00:00
|
|
|
ATARI_LIB= ${PREFIX}/lib/atari
|
1999-03-30 16:32:35 +00:00
|
|
|
SED_CONFIG= ${ATARI_LIB:S/\//\\\//g}
|
1997-10-29 09:07:09 +00:00
|
|
|
DOC_FILES= BUGS CHANGES COPYING CREDITS INSTALL README TODO USAGE
|
1999-03-30 16:32:35 +00:00
|
|
|
|
1997-10-29 09:07:09 +00:00
|
|
|
MAN1= atari800.1
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${ECHO_MSG} "===> Unzipping ROM files"
|
1999-03-30 16:32:35 +00:00
|
|
|
unzip -Lo ${DISTDIR}/${DIST_SUBDIR}/${EXTRA_FILES} ${ATARI_XF}\
|
|
|
|
-d ${WRKSRC}/
|
1997-10-29 09:07:09 +00:00
|
|
|
@${ECHO_MSG} "===> Processing configuration file"
|
|
|
|
${SED} "s/GUMBY/${SED_CONFIG}/g" < ${FILESDIR}/atari800.cfg \
|
|
|
|
> ${WRKSRC}/atari800.cfg
|
|
|
|
|
|
|
|
@${ECHO_MSG} "===> Copying config.h to work directory"
|
|
|
|
${CP} ${FILESDIR}/config.h ${WRKSRC}/
|
|
|
|
|
1999-03-30 16:32:35 +00:00
|
|
|
@${ECHO_MSG} "===> Copying UNIX makefile"
|
|
|
|
${CP} ${WRKSRC}/Makefile.unix ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${ECHO_MSG} "===> Processing another configuration file"
|
|
|
|
${CP} ${WRKSRC}/rt-config.c ${WRKSRC}/rt-config.c.temp
|
|
|
|
${SED} "s/GUMBY/${SED_CONFIG}/g" <${WRKSRC}/rt-config.c.temp \
|
|
|
|
> ${WRKSRC}/rt-config.c
|
|
|
|
|
1997-10-29 09:07:09 +00:00
|
|
|
# Install roms, extra docs and config file.
|
|
|
|
#
|
|
|
|
post-install:
|
1999-03-30 16:32:35 +00:00
|
|
|
@${ECHO_MSG} "===> Installing files from xf25.zip"
|
1997-10-29 09:07:09 +00:00
|
|
|
-${MKDIR} ${ATARI_LIB}
|
1999-03-30 16:32:35 +00:00
|
|
|
for file in ${ATARI_XF} ; do \
|
1997-10-29 09:07:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${ATARI_LIB}/ ;\
|
|
|
|
done
|
|
|
|
|
1999-03-30 16:32:35 +00:00
|
|
|
@${ECHO_MSG} "===> Installing configuration file"
|
|
|
|
${INSTALL} -c -o root -g wheel -m 664 ${WRKSRC}/atari800.cfg \
|
|
|
|
${ATARI_LIB}/
|
|
|
|
|
|
|
|
.if (!defined(NOPORTDOCS))
|
1997-10-29 09:07:09 +00:00
|
|
|
@${ECHO_MSG} "===> Installing distribution document files"
|
|
|
|
-${MKDIR} ${ATARI_DOC}
|
|
|
|
for file in ${DOC_FILES} ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${ATARI_DOC}/ ;\
|
|
|
|
done
|
|
|
|
${INSTALL_DATA} ${PKGDIR}/DESCR ${ATARI_DOC}/README.FreeBSD
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|