Permalink
Browse files

FS-UAE-2.2.0

  • Loading branch information...
1 parent 98d1248 commit 7912d830f54b164005a652db7819d61284beebd0 @vext01 vext01 committed Mar 25, 2013
View
@@ -0,0 +1,56 @@
+# $OpenBSD: Makefile,v 1.8 2013/03/11 11:06:04 espie Exp $
+
+BROKEN-powerpc = error: invalid 'asm': invalid %k value
+BROKEN-sparc64 = error: invalid 'asm': invalid operand output code
+
+COMMENT = modern Amiga emulator
+V = 2.2.0
+DISTNAME = fs-uae-$V
+CATEGORIES = emulators
+
+HOMEPAGE = http://fengestad.no/fs-uae/
+MAINTAINER = Edd Barrett <edd@openbsd.org>
+
+# GPLv2, LGPLv2.1
+PERMIT_PACKAGE_CDROM = Yes
+
+WANTLIB += GL GLU SDL X11 c freetype glib-2.0 gthread-2.0 m openal png
+WANTLIB += pthread stdc++ z
+
+MASTER_SITES = ${HOMEPAGE}stable/$V/
+
+MODULES = devel/gettext \
+ lang/python
+MODPY_SETUPTOOLS = Yes
+LIB_DEPENDS = devel/sdl \
+ graphics/png \
+ audio/openal \
+ devel/glib2
+RUN_DEPENDS = devel/desktop-file-utils \
+ x11/gtk+2,-guic \
+ x11/py-wxPython \
+ devel/pygame
+
+USE_GMAKE = Yes
+
+MAKE_FLAGS += prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CFLAGS="${CFLAGS}"
+
+NO_TEST = Yes
+
+# Hack to prevent Python module doing it's own do-build/do-install
+CONFIGURE_STYLE = not_setup_tools
+
+post-build:
+ cd ${WRKSRC}/launcher && \
+ mkdir -p fs_uae_launcher.egg-info && \
+ ${SETENV} ${MAKE_ENV} ${MODPY_BIN} ${MODPY_SETUP} build
+
+post-install:
+ cd ${WRKSRC}/launcher && \
+ ${SETENV} ${MAKE_ENV} ${MODPY_BIN} ${MODPY_SETUP} ${MODPY_DISTUTILS_INSTALL}
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fs-uae
+ mv ${PREFIX}/share/doc/fs-uae/example.conf \
+ ${PREFIX}/share/examples/fs-uae/fs-uae.conf
+ ${SUBST_CMD} ${PREFIX}/share/examples/fs-uae/fs-uae.conf
+
+.include <bsd.port.mk>
@@ -0,0 +1,2 @@
+SHA256 (fs-uae-2.2.0.tar.gz) = 3qAG4pUKE3AqcXsHFf10xYSGtl5pBwdga8uUPXSqV2I=
+SIZE (fs-uae-2.2.0.tar.gz) = 4651821
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- Makefile.orig Sun Mar 24 23:49:51 2013
++++ Makefile Sun Mar 24 23:50:00 2013
+@@ -88,14 +88,6 @@ endif
+ profile_generate := 0
+ profile_use := 0
+
+-ifeq ($(optimize), 1)
+- cflags += -O2 -ggdb
+- cxxflags += -O2 -ggdb
+-else ifneq ($(noflags), 1)
+- cflags += -O0 -ggdb
+- cxxflags += -O0 -ggdb
+-endif
+-
+ ifeq ($(profile_generate), 1)
+ cflags += -fprofile-generate
+ cxxflags += -fprofile-generate
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- libfsemu/Makefile.orig Sun Mar 24 23:51:27 2013
++++ libfsemu/Makefile Sun Mar 24 23:52:30 2013
+@@ -104,12 +104,6 @@ ifeq ($(devel), 1)
+ #-Werror=implicit-function-declaration
+ endif
+
+-ifeq ($(debug), 1)
+- cflags += -g -O0 -fno-inline
+-else ifneq ($(noflags), 1)
+- cflags += -g -O2
+-endif
+-
+ ifeq ($(os), windows)
+ cppflags += -DWINDOWS -DWIN32
+ cppflags += -DUSE_SDL
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- src/fs-uae/main.c.orig Sun Mar 17 20:08:06 2013
++++ src/fs-uae/main.c Sun Mar 24 23:40:23 2013
+@@ -535,6 +535,7 @@ void list_joysticks() {
+ }
+ printf("# SDL_NumJoysticks(): %d\n", SDL_NumJoysticks());
+ for(int i = 0; i < SDL_NumJoysticks(); i++) {
++ SDL_JoystickOpen(i);
+ if (SDL_JoystickName(i)[0] == '\0') {
+ printf("Unnamed\n");
+ }
@@ -0,0 +1,3 @@
+FS-UAE focuses on emulating Amiga games using the accurate emulation
+code from WinUAE. It also has features to emulate a high-end Amiga with
+expansions.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,90 @@
+$OpenBSD: README,v 1.1.1.1 2012/11/22 23:45:21 edd Exp $
+
++-----------------------------------------------------------------------
+| Running ${FULLPKGNAME} on OpenBSD
++-----------------------------------------------------------------------
+
+Kickstart ROM
+==============
+
+You will need a Kickstart ROM for the system you wish to emulate.
+Kickstart is the name given to the chip in a real Amiga that contains
+the bootloader and other stuff. The Kickstart ROM can either be dumped
+from a real Amiga using a tool like Amiga Explorer for Windows.
+Alternatively you can buy the Kickstart ROM from AmigaForever. More
+details here:
+
+http://www.amigakickstart.com/
+
+The Kickstart ROMs are copyrighted. You should obtain them legally.
+
+Launcher
+========
+
+The majority of emulator configuration, including the import of
+Kickstarts, can now be done via the launcher. To run the launcher:
+
+ $ fs-uae-launcher
+
+Joysticks
+=========
+
+The launcher should detect your joystick automagically, but incase it
+does not, here are the instructions for configuring one manually.
+
+Under Linux, SDL joysticks show up as named devices and ideally there
+would be a config file in ${TRUEPREFIX}/share/fs-uae/input for each
+Under OpenBSD however, SDL joysticks are named "joystick (n)", where n
+is the uhid device number. Due to these differences, joystick setup is
+slightly different. This is best shown by example.
+
+Suppose we want to configure this device as a joystick:
+
+uhidev0 at uhub4 port 1 configuration 1 interface 0 "WiseGroup.,Ltd MP-8888 USB Joypad" rev 1.10/3.00 addr 2
+uhidev0: iclass 3/0
+uhid0 at uhidev0: input=7, output=3, feature=0
+
+First find a matching or similar device config in
+${TRUEPREFIX}/share/fs-uae/input/.
+
+In this case of our example, a close match is:
+wisegroup_ltd/tigergame_ps_ps2_game_controller_adapter.ini
+
+To use this joystick configuration:
+
+ $ cp ${TRUEPREFIX}/share/fs-uae/input/wisegroup_ltd/tigergame_ps_ps2_game_controller_adapter.ini \
+ ~/FS-UAE/Controllers/joystick_0.ini
+
+Now edit your config file and uncomment this line:
+#joystick_port_1 = joystick (0)
+
+Note that we "plug the controller in" to the second joystick port. This
+is because on a real Amiga, port 0 (the first port) is usually occupied
+by a mouse.
+
+When you next boot fs-uae the joystick should now work.
+
+Useful Keyboard Shortcuts
+=========================
+
+The keyboard shortcuts you absolutely need to know are:
+
+F12: Show menu.
+Alt + Enter: Toggle fullscreen.
+Middle click: Release mouse from FS-UAE.
+F12 + g: Release mouse from FS-UAE.
+F12 + q: Quit
+
+If you have no real joystick configured, you can use the emulated one.
+Cursor keys controls the joystick stick and right ctrl or right alt
+controls the fire button.
+
+FS-UAE is Slow?
+===============
+
+Play with 'video_sync' and 'accuracy' in the config file.
+
+Documentation
+=============
+
+See http://fengestad.no/fs-uae/documentation

0 comments on commit 7912d83

Please sign in to comment.