Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 332292 Details for
Bug 255644
app-emulation/basiliskII-jit: a lot improved ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
basiliskII-jit-9999.ebuild
basiliskII-jit-9999.ebuild (text/plain), 6.14 KB, created by
Hubert Kromer
on 2012-12-14 15:30:51 UTC
(
hide
)
Description:
basiliskII-jit-9999.ebuild
Filename:
MIME Type:
Creator:
Hubert Kromer
Created:
2012-12-14 15:30:51 UTC
Size:
6.14 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >inherit flag-o-matic eutils linux-mod > >S="${WORKDIR}" >DESCRIPTION="Basilisk II with optional JIT engine for about 8x speedup: Macintosh Classic or II Emulator (MacOSes 6.x to 8.x)" >HOMEPAGE="http://gwenole.beauchesne.info/projects/basilisk2/" >EGIT_REPO_URI="git://github.com/cebix/macemu.git" >inherit git-2 >SRC_URI="" > >LICENSE="|| ( GPL-2 LGPL-2.1 )" >KEYWORDS="~amd64 -ppc ~x86" >SLOT="0" > >IUSE="dga esd fbdev gtk jit nls sdl xv debug" > >RDEPEND="esd? ( media-sound/esound ) > !sdl? ( fbdev? ( x11-drivers/xf86-video-fbdev ) ) > gtk? ( >=x11-libs/gtk+-2.24.12 ) > !sdl? ( dga? ( x11-libs/libXxf86dga ) ) > sdl? ( media-libs/libsdl ) > nls? ( virtual/libintl ) > x11-libs/libSM > x11-libs/libXi > x11-libs/libXxf86vm" > >DEPEND="${RDEPEND} > !sdl? ( dga? ( x11-proto/xf86dgaproto ) ) > nls? ( sys-devel/gettext ) > x11-proto/xf86vidmodeproto > x11-proto/xextproto > x11-proto/xproto > >=sys-apps/sed-4" > >src_unpack() { > git-2_src_unpack > # Not required anymore > # cd "${S}" || die "Failed to chdir to ${S}" > # epatch ${FILESDIR}"/file_handle-git.patch" || die > cd "${S}/BasiliskII/src/Unix" || die "Failed to chdir to ${S}/BasiliskII/src/Unix" > epatch ${FILESDIR}"/sys_unix.cpp.patch" || die > > # Fix up the vendor (bug 35352) > sed -i \ > -e "s/Mandrake/Gentoo/g" keycodes || \ > die "sed keycodes failed" > > #prevent prestripped binary > sed -i -e '/^INSTALL_PROGRAM/s/-s//' Makefile.in > > # allow full screen, hildonized it, and fixed the "sticky-mouse" problem > # http://gm.stackunderflow.com/maemo/basiliskii/basiliskii_maemo_0.3.tar.gz > > # a version of basiliskII that makes use of gtk+ 2.0. > # http://www.koders.com/noncode/fid387F60C37D25C6294E55C4763BC679807088557F.aspx > > > if ( use sdl && ( use fbdev || use dga ) ) ; then > elog "SDL support was requested, disabling DGA and fbdev" > elif ( use dga && use fbdev ) ; then > elog "DGA support was requested, disabling fbdev" > fi >} > >src_compile() { > cd "${S}/BasiliskII/src/Unix" || die "Failed to chdir to ${S}/BasiliskII/src/Unix" > #fpu_x86 doesnt compile properly if -O3 or greater :( - not anymore > # replace-flags -O[3-9] -O2 > > # some patches from Debian to be considered > # http://patch-tracking.debian.net/patch/debianonly/view/basilisk2/0.9.20070407-4 > > local myflags > > use jit && myflags="--enable-jit-compiler" > > if ( use sdl && ( ! use fbdev ) ) ; then > myflags="${myflags} --enable-fbdev-dga" > elif ( use sdl && ( ! use dga ) ) ; then > myflags="${myflags} --enable-xf86-dga --disable-fbdev-dga" > elif ( ! use sdl && ( use dga ) ) ; then > myflags="${myflags} --enable-xf86-dga" > elif ( ! use sdl && ( use fbdev ) ) ; then > myflags="${myflags} --enable-fbdev-dga" > fi > > use debug && append-flags "-DDEBUG" > > # http://svn.debian.org/wsvn/collab-maint/deb-maint/basilisk2/trunk/ChangeLog.cvs?op=file&rev=0&sc=1 > # according to ChangeLog of svn sources > # "BTW, a quick Speedometer 4 CPU performance test showed a +15% > # speed increase in real addressing mode vs. direct addressing. > # x86 arches don't benefit much from that mode since they support > # complex address modes already (beyond plain load/store)." > > # According to other comments in ChangeLog the SDL support is still > # being improved (so far was slow) and maybe still is. > > # either of these two --with-gtk=gtk1 --with-gtk=gtk2 is possible > ./autogen.sh --prefix=/usr \ > $(use_with esd) \ > $(use_with gtk) \ > $(use_enable nls) \ > $(use_enable sdl sdl-video) \ > $(use_enable sdl sdl-audio) \ > $(use_enable xv xf86-vidmode) \ > ${myflags} --enable-addressing=real > > emake || die "emake failed" > # for direct access to an Ethernet card via the "sheep_net" kernel module > # /lib/modules/<version>/kernel/drivers/net > # > # add line > # alias char-major-10-198 sheep_net > # to /etc/modules.conf > # FIXME: cannot compile the kernel module somehow > # it seems 2.4.17 and early 2.6 were targeted in the past > # > # make modules > # alternatively one can use TAP interface, e.g. tap0 but enable in kernel > # also "Kernel/User netlink socket" and "Netlink device emulation" > # > # Seems current svn sources use some "router" mode or "tun" or "slirp" > # or "sheep_net" kernel module > # http://www.cebix.net/viewcvs/cebix/BasiliskII/src/Unix/Linux/NetDriver/ > # > # modprobe tun > # echo 1 >/proc/sys/net/ipv4/ip_forward > >} > >src_install() { > cd "${S}/BasiliskII/src/Unix" || die "Failed to chdir to ${S}/BasiliskII/src/Unix" > emake DESTDIR="${D}" install || die "Install failed" > > cd ../../ > dodoc ChangeLog README TECH TODO >} > >pkg_postinst() { > einfo "" > einfo "Please read the README doc file for information on networking" > einfo "in Basilisk II. Probably the easiest would be to enble TAP or" > einfo "SLIP in kernel. Also, make sure to enable IP forwarding:" > einfo "echo 1 >/proc/sys/net/ipv4/ip_forward" > einfo "For TAP to work also enable in kernel:" > einfo "'Kernel/User netlink socket' and 'Netlink device emulation'" > einfo "" > einfo "Basilisk II requires a Mac II (1MB) or Mac Classic ROM (512kB)" > einfo "to work. For example quadra650.rom, vMac.ROM, macse.rom, etc." > einfo "System ROMs can be retreived from a real Mac, see info/man pages" > einfo "and http://home.tampabay.rr.com/osemu/n800/b2/rom.htm" > einfo "" > einfo "Mac OS 7.5.3r2 is available freely from the Apple Homepage:" > einfo "http://www.info.apple.com/support/oldersoftwarelist.html#system" > einfo "A snapshot of the site is at" > einfo "ftp://ftp.mayn.de/pub/really_old_stuff/unix/emulators/computer/macintosh" > einfo "An update from 7.x to 7.5.5 is also available from that site." > einfo "If your system does not boot due to some broken system modules," > einfo "e.g. A/ROSE or network stuff being broken, move such files outside" > einfo "the 'system' folder. Then you can boot up and add one after another" > einfo "back". > einfo "" > einfo "SDL support is slow, go for DGA instead." > einfo "The following sites will guide your install:" > einfo "http://emaculation.com/doku.php/basilisk_ii_setup" > einfo "Software available: http://mes.emuunlim.com/software/index.htm" > einfo "" > einfo "Current, updated CVS is at http://www.cebix.net/viewcvs/cebix/BasiliskII/" > einfo "and this ebuild should probably be chaged to build from those, updated sources." > einfo "Do you want to help with this transition?" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 255644
:
179360
|
252607
|
252609
|
301387
|
301389
|
301391
| 332292