summaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/basiliskII/Makefile44
-rw-r--r--emulators/basiliskII/distinfo1
-rw-r--r--emulators/basiliskII/files/patch-aa59
-rw-r--r--emulators/basiliskII/pkg-comment1
-rw-r--r--emulators/basiliskII/pkg-descr5
-rw-r--r--emulators/basiliskII/pkg-message8
-rw-r--r--emulators/basiliskII/pkg-plist4
7 files changed, 122 insertions, 0 deletions
diff --git a/emulators/basiliskII/Makefile b/emulators/basiliskII/Makefile
new file mode 100644
index 0000000..e64b7f9
--- /dev/null
+++ b/emulators/basiliskII/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: BasiliskII
+# Date created: 17 April 2000
+# Whom: Maxim Sobolev
+#
+# $FreeBSD$
+#
+
+PORTNAME= basiliskII
+PORTVERSION= 0.8.1
+CATEGORIES= emulators
+MASTER_SITES= http://download.sourceforge.net/basilisk/
+DISTNAME= BasiliskII_src_30012000
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
+ esd.2:${PORTSDIR}/audio/esound \
+ lthread.2:${PORTSDIR}/devel/linuxthreads
+
+WRKSRC= ${WRKDIR}/BasiliskII-0.8/src/Unix
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
+ESD_CONFIG?= ${LOCALBASE}/bin/esd-config
+
+CONFIGURE_ARGS= --disable-fbdev-dga
+
+CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" \
+ GLIB_CONFIG="${GLIB_CONFIG}" \
+ ESD_CONFIG="${ESD_CONFIG}" \
+ LIBS="-L${LOCALBASE}/lib"
+
+CFLAGS+= -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+
+MAN1= BasiliskII.1
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/emulators/basiliskII/distinfo b/emulators/basiliskII/distinfo
new file mode 100644
index 0000000..02ca808
--- /dev/null
+++ b/emulators/basiliskII/distinfo
@@ -0,0 +1 @@
+MD5 (BasiliskII_src_30012000.tar.gz) = 98a89ffc1c9d6a15dcea6d12e0e33c32
diff --git a/emulators/basiliskII/files/patch-aa b/emulators/basiliskII/files/patch-aa
new file mode 100644
index 0000000..abdb269
--- /dev/null
+++ b/emulators/basiliskII/files/patch-aa
@@ -0,0 +1,59 @@
+--- configure.orig Wed Nov 3 23:04:14 1999
++++ configure Tue Apr 18 10:35:11 2000
+@@ -2199,7 +2199,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lc_r $LIBS"
++LIBS="-llthread -llgcc_r $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 2205 "configure"
+ #include "confdefs.h"
+@@ -2233,7 +2233,7 @@
+ #define $ac_tr_lib 1
+ EOF
+
+- LIBS="-lc_r $LIBS"
++ LIBS="-llthread -llgcc_r $LIBS"
+
+ else
+ echo "$ac_t""no" 1>&6
+@@ -3819,7 +3819,7 @@
+ Linux*)
+ SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp"
+ ;;
+- FreeBSD*3.*)
++ FreeBSD*[345].*)
+ echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
+ echo "configure:3825: checking for cam_open_btl in -lcam" >&5
+ ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
+@@ -3864,16 +3864,16 @@
+ if [ "x$HAVE_LIBCAM" = "xno" ]; then
+ { echo "configure: error: Cannot find libcam for SCSI management." 1>&2; exit 1; }
+ else
+- ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
+-echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
+-echo "configure:3870: checking for /sys/cam/cam.h" >&5
++ ac_safe=`echo "camlib.h" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for camlib.h""... $ac_c" 1>&6
++echo "configure:3870: checking for camlib.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 3875 "configure"
+ #include "confdefs.h"
+-#include </sys/cam/cam.h>
++#include <camlib.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:3880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+@@ -4093,7 +4093,7 @@
+ WANT_SPARC_V8_ASSEMBLY=no
+ WANT_SPARC_V9_ASSEMBLY=no
+ CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
+-if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
++if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xno" ]; then
+ DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
+ if [ "x$HAVE_GAS" = "xyes" ]; then
+ WANT_X86_ASSEMBLY=yes
diff --git a/emulators/basiliskII/pkg-comment b/emulators/basiliskII/pkg-comment
new file mode 100644
index 0000000..cf0be4a
--- /dev/null
+++ b/emulators/basiliskII/pkg-comment
@@ -0,0 +1 @@
+Basilisk II is a free, portable, Open Source 68k Mac emulator
diff --git a/emulators/basiliskII/pkg-descr b/emulators/basiliskII/pkg-descr
new file mode 100644
index 0000000..aa8eec1
--- /dev/null
+++ b/emulators/basiliskII/pkg-descr
@@ -0,0 +1,5 @@
+Basilisk II is a free, portable, Open Source 68k Mac emulator. It requires a
+copy of a 512K or 1MB Mac ROM and a copy of MacOS 7.x or 8.x to run.
+
+WWW: http://www.Uni-Mainz.DE/~bauec002/B2Main.html
+ http://sourceforge.net/project/?group_id=2123
diff --git a/emulators/basiliskII/pkg-message b/emulators/basiliskII/pkg-message
new file mode 100644
index 0000000..12929c1
--- /dev/null
+++ b/emulators/basiliskII/pkg-message
@@ -0,0 +1,8 @@
+********************************************************************************
+
+ NOTE: You have to get a copy of the original Mac ROM image and a copy of MacOS
+ to run BasiliskII. Be aware that the only legal way to get ROM image is
+ to rip it out from your Mac computer. See BasiliskII home page to get
+ details.
+
+********************************************************************************
diff --git a/emulators/basiliskII/pkg-plist b/emulators/basiliskII/pkg-plist
new file mode 100644
index 0000000..b47f5d9
--- /dev/null
+++ b/emulators/basiliskII/pkg-plist
@@ -0,0 +1,4 @@
+bin/BasiliskII
+share/BasiliskII/fbdevices
+share/BasiliskII/keycodes
+@dirrm share/BasiliskII
OpenPOWER on IntegriCloud