File BasiliskII.spec of Package BasiliskII
#
# spec file for package BasiliskII
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _lto_cflags %{nil}
Name: BasiliskII
Version: 1.0+git.20250106.96e512bd
Release: 0
Summary: 68k Macintosh emulator
License: GPL-2.0-or-later
Group: System/Emulators/Other
# was http://gwenole.beauchesne.info/projects/basilisk2/
URL: https://basilisk.cebix.net/
Source: %{name}-%{version}.tar.xz
Patch0: %{name}-rom.patch
# PATCH-FIX-OPENSUSE BasiliskII-no_return_in_nonvoid.patch
Patch1: %{name}-no_return_in_nonvoid.patch
BuildRequires: SDL-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: xz
%description
Basilisk II is an Open Source 68k Macintosh emulator. That is, it enables
you to run 68k MacOS software on you computer, even if you are using a
different operating system. However, you still need a copy of MacOS and
a Macintosh ROM image to use Basilisk II.
Some features of Basilisk II:
- Emulates either a Mac Classic (which runs MacOS 0.x thru 7.5)
or a Mac II series machine (which runs MacOS 7.x, 8.0 and 8.1),
depending on the ROM being used
- Color video display
- CD quality sound output
- Floppy disk driver (only 1.44MB disks supported)
- Driver for HFS partitions and hardfiles
- CD-ROM driver with basic audio functions
- Easy file exchange with the host OS via a "Host Directory Tree" icon
on the Mac desktop
- Ethernet driver
- Serial drivers
- SCSI Manager (old-style) emulation
- Emulates extended ADB keyboard and 3-button mouse
- Uses UAE 68k emulation or (under AmigaOS and NetBSD/m68k) real 68k
processor
%prep
%autosetup -p0
%build
cd src/Unix
NO_CONFIGURE=1 ./autogen.sh
%configure \
--enable-sdl-video \
--enable-sdl-audio \
--without-esd \
--with-bincue \
--with-vdeplug \
%ifarch %ix86 x86_64
--enable-jit-compiler \
%endif
--disable-vosf
make %{?_smp_mflags}
%install
cd src/Unix
%make_install
mkdir -pv %{buildroot}%{_prefix}/lib/%{name}
%files
%license COPYING
%doc ChangeLog README.md TECH TODO
%{_bindir}/BasiliskII
%{_mandir}/man1/BasiliskII.1%{?ext_man}
%dir %{_datadir}/BasiliskII
%config %{_datadir}/BasiliskII/keycodes
%config %{_datadir}/BasiliskII/fbdevices
%config %{_datadir}/BasiliskII/tunconfig
%dir %{_prefix}/lib/BasiliskII
%changelog