summaryrefslogtreecommitdiff
path: root/emulators/atari800/Makefile
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-03-30 16:32:35 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-03-30 16:32:35 +0000
commit6f79c9c567ba33f6a18d2d11c44a8f20c67a4325 (patch)
tree5b7098a000f6cb1a708b024c84b1f43302bce6a0 /emulators/atari800/Makefile
parentadded CaribbeanStud (diff)
Updated to version 0.8.6 after I modified several problems
PR: ports/7734 Submitted by: Joel Sutton (maintainer)
Notes
Notes: svn path=/head/; revision=17454
Diffstat (limited to 'emulators/atari800/Makefile')
-rw-r--r--emulators/atari800/Makefile77
1 files changed, 44 insertions, 33 deletions
diff --git a/emulators/atari800/Makefile b/emulators/atari800/Makefile
index 56a6f992fc33..99b82469df2b 100644
--- a/emulators/atari800/Makefile
+++ b/emulators/atari800/Makefile
@@ -1,52 +1,54 @@
-# New ports collection makefile for: Atari800-0.8.0
-# Version required: 0.8.1
+# New ports collection makefile for: Atari800-0.8.6
+# Version required: 0.8.6
# Date created: 29th April, 1997
-# Whom: Joel Sutton <sutton@aardvark.apana.org.au>
+# Whom: Joel Sutton <jsutton@webnet.com.au>
#
-# $Id: Makefile,v 1.2 1998/08/07 23:56:17 asami Exp $
+# $Id: Makefile,v 1.3 1998/12/03 06:44:06 obrien Exp $
#
-DISTNAME= Atari800-0.8.1
-PKGNAME= atari800-0.8.1
+DISTNAME= Atari800-0.8.6
+PKGNAME= atari800-0.8.6
CATEGORIES= emulators
MASTER_SITES= http://www.signus.demon.co.uk/Software/Portable/Atari800e/ \
http://cas3.zlin.vutbr.cz/~stehlik/a800/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${EXTRA_FILES}
-MAINTAINER= sutton@aardvark.apana.org.au
+MAINTAINER= jsutton@webnet.com.au
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+.if defined(ATARI) && (${ATARI} == "freebsd-xview")
LIB_DEPENDS= xview:${PORTSDIR}/x11-toolkits/xview-lib
-
-RESTRICTED= "xf25 contains copyright ROMs and cannot be distributed"
-NO_PACKAGE= ${RESTRICTED}
-
+.endif
+DIST_SUBDIR= atari
EXTRA_FILES= xf25.zip
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-# Source building
-#
-ALL_TARGET= freebsd-xview
+ALL_TARGET= ${ATARI}
+
+RESTRICTED= "xf25 contains copyright ROMs and cannot be distributed."
+NO_PACKAGE= ${RESTRICTED}
-# Installation
-#
-# Install and mkdir needed for 2.1.5R standard bsd.port.mk file. Other
-# variables are needed for the post-install target.
-#
ATARI_DOC= ${PREFIX}/share/doc/atari
-ATARI_ROM= ataribas.rom atariosb.rom atarixl.rom
+ATARI_XF= ataribas.rom atariosb.rom atarixl.rom demos1.xfd \
+ demos2.xfd dos25.xfd mydos45d.atr
ATARI_LIB= ${PREFIX}/lib/atari
-SED_CONFIG= ${ATARI_LIB:S/\//\\\//g}\/
+SED_CONFIG= ${ATARI_LIB:S/\//\\\//g}
DOC_FILES= BUGS CHANGES COPYING CREDITS INSTALL README TODO USAGE
+
MAN1= atari800.1
-# Unpack roms from xf25.zip Atari Emulator for DOS and process the
-# configuration file to include the right paths for the rom files.
-#
+.if !defined(ATARI)
+pre-extract:
+ @${ECHO_MSG} "Please define the environment variable ATARI to"
+ @${ECHO_MSG} "determine how to build the emulator. Your choices are:"
+ @${ECHO_MSG} " freebsd-ncurses, freebsd-x11, freebsd-xview. "
+ @${ECHO_MSG}
+ @${FALSE}
+.endif
post-extract:
@${ECHO_MSG} "===> Unzipping ROM files"
- unzip -Lo ${DISTDIR}/${DIST_SUBDIR}/${EXTRA_FILES} ${ATARI_ROM} -d ${WRKSRC}/
-
+ unzip -Lo ${DISTDIR}/${DIST_SUBDIR}/${EXTRA_FILES} ${ATARI_XF}\
+ -d ${WRKSRC}/
@${ECHO_MSG} "===> Processing configuration file"
${SED} "s/GUMBY/${SED_CONFIG}/g" < ${FILESDIR}/atari800.cfg \
> ${WRKSRC}/atari800.cfg
@@ -54,16 +56,29 @@ post-extract:
@${ECHO_MSG} "===> Copying config.h to work directory"
${CP} ${FILESDIR}/config.h ${WRKSRC}/
+ @${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
+
# Install roms, extra docs and config file.
#
post-install:
- @${ECHO_MSG} "===> Installing ROM files"
+ @${ECHO_MSG} "===> Installing files from xf25.zip"
-${MKDIR} ${ATARI_LIB}
- for file in ${ATARI_ROM} ; do \
+ for file in ${ATARI_XF} ; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${ATARI_LIB}/ ;\
done
-.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing configuration file"
+ ${INSTALL} -c -o root -g wheel -m 664 ${WRKSRC}/atari800.cfg \
+ ${ATARI_LIB}/
+
+.if (!defined(NOPORTDOCS))
@${ECHO_MSG} "===> Installing distribution document files"
-${MKDIR} ${ATARI_DOC}
for file in ${DOC_FILES} ; do \
@@ -72,8 +87,4 @@ post-install:
${INSTALL_DATA} ${PKGDIR}/DESCR ${ATARI_DOC}/README.FreeBSD
.endif
- @${ECHO_MSG} "===> Installing configuration file"
- ${INSTALL} -c -o root -g wheel -m 664 ${WRKSRC}/atari800.cfg \
- ${ATARI_LIB}/
-
.include <bsd.port.mk>