summaryrefslogtreecommitdiffstats
path: root/emulators/vice
diff options
context:
space:
mode:
authordburr <dburr@FreeBSD.org>1998-07-12 11:13:25 +0000
committerdburr <dburr@FreeBSD.org>1998-07-12 11:13:25 +0000
commit68e8ff73d6e89d9e36c1297cab4e4a2d18d8a014 (patch)
tree2940c2c907c471e80ef08db9bc883fd86f417f0d /emulators/vice
parentc01e9da3be336a4f5c5c3d14cb002a242eb3fffd (diff)
downloadFreeBSD-ports-68e8ff73d6e89d9e36c1297cab4e4a2d18d8a014.zip
FreeBSD-ports-68e8ff73d6e89d9e36c1297cab4e4a2d18d8a014.tar.gz
PR: ports/6155
Submitted by: dchapes@ddm.on.ca Import of new port emulators/vice, the Versatile Commodore Emulator (VICE), an emulator for Commodore's PET/Vic-20/64.
Diffstat (limited to 'emulators/vice')
-rw-r--r--emulators/vice/Makefile50
-rw-r--r--emulators/vice/distinfo1
-rw-r--r--emulators/vice/files/patch-ab71
-rw-r--r--emulators/vice/files/patch-ac54
-rw-r--r--emulators/vice/files/patch-ad23
-rw-r--r--emulators/vice/files/patch-ae28
-rw-r--r--emulators/vice/files/patch-af11
-rw-r--r--emulators/vice/pkg-comment1
-rw-r--r--emulators/vice/pkg-descr23
9 files changed, 262 insertions, 0 deletions
diff --git a/emulators/vice/Makefile b/emulators/vice/Makefile
new file mode 100644
index 0000000..24b1d6f
--- /dev/null
+++ b/emulators/vice/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: vice
+# Version required: 0.14.1
+# Date created: Mar 28, 1998
+# Whom: dchapes@ddm.on.ca
+#
+# $Id$
+
+DISTNAME= vice-0.14.1
+CATEGORIES= emulators
+MASTER_SITES= ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/
+
+MAINTAINER= dchapes@ddm.on.ca
+
+WRKSRC= ${WRKDIR}/vice-0.14.1/src
+
+RESTRICTED= ROMs are copyrighted by Commodore Business Machines
+
+GNU_CONFIGURE= YES
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -funroll-loops -finline-functions -fno-strength-reduce"
+CONFIGURE_ARGS= --with-xaw3d
+
+MANPAGES= vice c1541 petcat
+MAN1= vice.1 c1541.1 petcat.1
+
+pre-build:
+ ${ECHO} ${OSVER}
+
+pre-install:
+ ${SED} -e "s,%VER%,`uname -r | ${SED} -e 's,-.*$$,,'`," < ${PKGDIR}/PLIST.in > ${PKGDIR}/PLIST
+
+post-install:
+ for m in ${MANPAGES} ; do \
+ ${INSTALL_MAN} ${WRKSRC}/../man/$$m.man ${PREFIX}/man/man1/$$m.1; \
+ done
+.if defined(NOMANCOMPRESS)
+ ${LN} -sf vice.1 ${PREFIX}/man/man1/x64.1
+ ${LN} -sf vice.1 ${PREFIX}/man/man1/xvic.1
+ ${LN} -sf vice.1 ${PREFIX}/man/man1/xpet.1
+ ${LN} -sf vice.1 ${PREFIX}/man/man1/recomment.1
+.else
+ ${LN} -sf vice.1.gz ${PREFIX}/man/man1/x64.1.gz
+ ${LN} -sf vice.1.gz ${PREFIX}/man/man1/xvic.1.gz
+ ${LN} -sf vice.1.gz ${PREFIX}/man/man1/xpet.1.gz
+ ${LN} -sf vice.1.gz ${PREFIX}/man/man1/recomment.1.gz
+.endif
+
+pre-clean:
+ @${RM} -f ${PKGDIR}/PLIST
+
+.include <bsd.port.mk>
diff --git a/emulators/vice/distinfo b/emulators/vice/distinfo
new file mode 100644
index 0000000..ee0a897
--- /dev/null
+++ b/emulators/vice/distinfo
@@ -0,0 +1 @@
+MD5 (vice-0.14.1.tar.gz) = 5f13d74c29219d7840a65365d2bc04cd
diff --git a/emulators/vice/files/patch-ab b/emulators/vice/files/patch-ab
new file mode 100644
index 0000000..d464178
--- /dev/null
+++ b/emulators/vice/files/patch-ab
@@ -0,0 +1,71 @@
+--- ./arch/unix/joystick.c.orig Sat Mar 7 09:01:51 1998
++++ ./arch/unix/joystick.c Sat Mar 28 09:19:42 1998
+@@ -1,5 +1,5 @@
+ /*
+- * joystick.c - Joystick support for Linux.
++ * joystick.c - Joystick support for Linux and *BSD
+ *
+ * Written by
+ * Bernhard Kuhn (kuhn@eikon.e-technik.tu-muenchen.de)
+@@ -7,6 +7,7 @@
+ *
+ * Patches by
+ * Daniel Sladic (sladic@eecg.toronto.edu)
++ * Dave Chapeskie <dchapes@ddm.on.ca>
+ *
+ * This file is part of VICE, the Versatile Commodore Emulator.
+ * See README for copyright notice.
+@@ -32,7 +33,13 @@
+
+ #ifdef HAS_JOYSTICK
+
++#ifdef __linux__
+ #include <linux/joystick.h>
++#else
++#include <machine/joystick.h>
++#define JS_DATA_TYPE joystick
++#define JS_RETURN (sizeof(struct joystick))
++#endif
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+@@ -89,7 +96,11 @@
+ for(i=0;i<2;i++) {
+
+ char* dev;
++#ifdef __linux__
+ dev=(i==0)?"/dev/js0":"/dev/js1";
++#else
++ dev=(i==0)?"/dev/joy0":"/dev/joy1";
++#endif
+
+ ajoyfd[i]=open(dev,O_RDONLY);
+ if (ajoyfd[i] < 0) {
+@@ -132,6 +143,7 @@
+ }
+ }
+
++#ifdef __linux__
+ /* open device files for digital joystick */
+ for(i=0;i<2;i++) {
+ char* dev;
+@@ -142,6 +154,7 @@
+ fprintf(stderr, "Warning: couldn't open the joystick device %s!\n",dev);
+ }
+ }
++#endif
+ }
+
+ void joyclose(void)
+@@ -195,7 +208,11 @@
+ else joy[i] &= ~4;
+ if (js.x>joyxmax[ajoyport]) joy[i] |= 8;
+ else joy[i] &= ~8;
++#ifdef __linux__
+ if(js.buttons) joy[i] |= 16;
++#else
++ if(js.b1 | js.b2) joy[i] |= 16;
++#endif
+ else joy[i] &= ~16;
+ }
+ }
diff --git a/emulators/vice/files/patch-ac b/emulators/vice/files/patch-ac
new file mode 100644
index 0000000..ea8cac8
--- /dev/null
+++ b/emulators/vice/files/patch-ac
@@ -0,0 +1,54 @@
+--- ./configure.orig Wed Mar 11 15:59:28 1998
++++ ./configure Sat Mar 28 09:19:42 1998
+@@ -2362,7 +2362,41 @@
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- LINUXJOYSTICK=-DHAS_JOYSTICK ;
++ JOYSTICK=-DHAS_JOYSTICK ;
++ JOY_OBJS='$(ARCHDIR)/joystick.o'
++else
++ echo "$ac_t""no" 1>&6
++fi
++
++ ac_safe=`echo "machine/joystick.h" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for machine/joystick.h""... $ac_c" 1>&6
++echo "configure:2374: checking for machine/joystick.h" >&5
++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ cat > conftest.$ac_ext <<EOF
++#line 2379 "configure"
++#include "confdefs.h"
++#include <machine/joystick.h>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out`
++if test -z "$ac_err"; then
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=yes"
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=no"
++fi
++rm -f conftest*
++fi
++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ JOYSTICK=-DHAS_JOYSTICK ;
+ JOY_OBJS='$(ARCHDIR)/joystick.o'
+ else
+ echo "$ac_t""no" 1>&6
+@@ -4705,7 +4739,7 @@
+ s%@MAKE2@%$MAKE2%g
+ s%@PERL@%$PERL%g
+ s%@MKDEP@%$MKDEP%g
+-s%@LINUXJOYSTICK@%$LINUXJOYSTICK%g
++s%@JOYSTICK@%$JOYSTICK%g
+ s%@JOY_OBJS@%$JOY_OBJS%g
+ s%@LIBOBJS@%$LIBOBJS%g
+ s%@SUBDIRS@%$SUBDIRS%g
diff --git a/emulators/vice/files/patch-ad b/emulators/vice/files/patch-ad
new file mode 100644
index 0000000..3e236ca
--- /dev/null
+++ b/emulators/vice/files/patch-ad
@@ -0,0 +1,23 @@
+--- ./configure.in.orig Wed Mar 11 15:59:28 1998
++++ ./configure.in Sat Mar 28 09:19:42 1998
+@@ -195,7 +195,10 @@
+
+ if test "$host_vendor" != "go32" -a "$host_vendor" != "msdos"; then
+ AC_CHECK_HEADER(linux/joystick.h,
+- [ LINUXJOYSTICK=-DHAS_JOYSTICK ;
++ [ JOYSTICK=-DHAS_JOYSTICK ;
++ JOY_OBJS='$(ARCHDIR)/joystick.o' ], )
++ AC_CHECK_HEADER(machine/joystick.h,
++ [ JOYSTICK=-DHAS_JOYSTICK ;
+ JOY_OBJS='$(ARCHDIR)/joystick.o' ], )
+ if test "$ac_cv_header_linux_joystick_h" = "yes" ; then
+ AC_MSG_CHECKING(whether linux/joystick.h supports digital joysticks)
+@@ -204,7 +207,7 @@
+ [ LINUXJOYSTICK="$LINUXJOYSTICK -DHAS_DIGITAL_JOYSTICK"
+ AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no))
+ fi
+- AC_SUBST(LINUXJOYSTICK)
++ AC_SUBST(JOYSTICK)
+ AC_SUBST(JOY_OBJS)
+ AC_CHECK_HEADERS(linux/soundcard.h machine/soundcard.h dmedia/audio.h)
+ AC_CHECK_HEADERS(SDL_audio.h SDL_sleep.h)
diff --git a/emulators/vice/files/patch-ae b/emulators/vice/files/patch-ae
new file mode 100644
index 0000000..f8897c1
--- /dev/null
+++ b/emulators/vice/files/patch-ae
@@ -0,0 +1,28 @@
+--- ./Makefile.in.orig Sat Mar 21 08:53:32 1998
++++ ./Makefile.in Sat Mar 28 09:28:52 1998
+@@ -59,7 +59,7 @@
+ ARCH = @host@
+
+ LDFLAGS = @X_LIBS@ @LDFLAGS@
+-DEFS = @DEFS@ @LINUXJOYSTICK@ -DPREFIX=\"@prefix@\"
++DEFS = @DEFS@ @JOYSTICK@ -DPREFIX=\"@prefix@\"
+ MKDEP = @MKDEP@
+ CFLAGS = @X_CFLAGS@ @CFLAGS@
+ INCLUDES = -I$(SRCDIR) -I./include -I$(ARCHDIR) -I$(INCLUDEDIR)
+@@ -67,6 +67,7 @@
+
+ LN_S = @LN_S@
+
++RM = rm
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_DATA = @INSTALL_DATA@
+@@ -510,7 +511,7 @@
+ $(INSTALL_BINDIR)/$$a; \
+ done; \
+ $(RM) -f $(INSTALL_BINDIR)/recomment; \
+- $(INSTALL_PROGRAM) $(UTILDIR)/recomment \
++ $(INSTALL) -m 555 $(UTILDIR)/recomment \
+ $(INSTALL_LIBDIR)/$(ARCH)/recomment-$$VERSION; \
+ $(LN_S) $(INSTALL_LIBDIR)/$(ARCH)/recomment-$$VERSION \
+ $(INSTALL_BINDIR)/recomment )
diff --git a/emulators/vice/files/patch-af b/emulators/vice/files/patch-af
new file mode 100644
index 0000000..c19cb23
--- /dev/null
+++ b/emulators/vice/files/patch-af
@@ -0,0 +1,11 @@
+--- ../man/vice.man.orig Sat Mar 28 14:42:29 1998
++++ ../man/vice.man Sat Mar 28 14:43:01 1998
+@@ -32,7 +32,7 @@
+ .PP
+ The whole documentation for these programs is available in HTML
+ format; the main file should be installed on your system as
+-/usr/local/lib/VICE/doc/MANUAL.html.
++/usr/local/lib/vice/doc/MANUAL.html.
+ .P
+ For up to date news about VICE, have a look at the official home page
+ at
diff --git a/emulators/vice/pkg-comment b/emulators/vice/pkg-comment
new file mode 100644
index 0000000..ab5b342
--- /dev/null
+++ b/emulators/vice/pkg-comment
@@ -0,0 +1 @@
+Emulator that emulates Commodore 64/PET/VIC-20.
diff --git a/emulators/vice/pkg-descr b/emulators/vice/pkg-descr
new file mode 100644
index 0000000..d3b8ff7
--- /dev/null
+++ b/emulators/vice/pkg-descr
@@ -0,0 +1,23 @@
+Versatile Commodore 8-bit Emulator
+This is version 0.14.1 of VICE, the multi-platform PET/VIC20/C64 emulator.
+
+The following programs are included:
+ - x64, a C64 emulator;
+ - xvic, a VIC20 emulator;
+ - xpet, a PET emulator;
+ - c1541, a stand-alone disk image maintenance utility;
+ - petcat, a CBM BASIC de-tokenizer;
+ - recomment, an iterative database driven reassembler;
+
+For the latest news, have a look at the VICE home page:
+ http://www.tu-chemnitz.de/~fachat/vice/vice.html
+
+VICE is Copyright (c) 1993-1998 Ettore Perazzoli, Teemu Rantanen,
+André Fachat, Jouko Valta, Jarkko Sonninen and Daniel Sladic.
+
+The ROM files in the `C64', `PET' and `VIC20' directories are
+Copyright (c) by Commodore Business Machines.
+
+NOTE: When compiling on FreeBSD some source files cause gcc to go over the
+default memory limits. Either fix /etc/login.conf or temporaryily adjust
+the limits with your shells limit command ("unlimit" works in [t]csh).
OpenPOWER on IntegriCloud