Added BasiliskII ebuilds

This commit is contained in:
layman 2021-05-14 11:35:02 +02:00
parent 9f970a603a
commit eb84087913
6 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD basiliskii-modules-9999.ebuild 1122 BLAKE2B cc5a8fa43a0bb28612e2226362ea52a93ba78dbe527938c04ce6ff57b3e7210e0a73535539e13ddd48e71ec44bff7051e3ab45254e862e1af72e03642acd915f SHA512 7a6e297f5078b1e1686329c4c0530150dc4a7c762732ba1405fab54c05897a56162a0f934e70707f18b17e0993c7cfa97e7c02818746440ca2acb5f9033c1438

View File

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="7"
inherit linux-mod
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/kanjitalk755/macemu"
inherit git-r3
else
SRC_URI="https://github.com/kanjitalk755/macemu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Network Module for Basilisk II"
HOMEPAGE="https://www.emaculation.com/doku.php"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="=app-emulation/basiliskii-${PV}"
S="${WORKDIR}/${P}/BasiliskII/src/Unix/Linux/NetDriver"
BUILD_TARGETS="sheep_net.ko"
MODULE_NAMES="sheep_net(misc:${S})"
MODULESD_SHEEP_NET_ENABLED="yes"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
}
pkg_postinst() {
linux-mod_pkg_postinst
einfo "To enable networking for BasiliskII type"
einfo " modprobe sheep_net"
echo ""
einfo "To enable networking permanently:"
einfo " echo sheep_net > /etc/modules-load.d/sheep_net.conf"
echo ""
}

View File

@ -0,0 +1,3 @@
AUX BasiliskII.desktop 175 BLAKE2B 192a71fdb2aebc5dbabb9b4c85c1d95d3fd91a09cd665b7c9caa1fb15187051b87d5ee1c1d1c228e4df4a930dafec6e920f845bb021ae3bfbee8d53d603a507d SHA512 4a8691df7e854a754ca9edd3c37f1e0f6f63e8bbb71f8183702b870fe9a3261591c28e3bf1bbe5928b673d1c797fe77a9079dcfd3d8aea5f51af5009e65bf455
AUX BasiliskII.png 9059 BLAKE2B 67dcfb3c82b774b2d79e92ff39a9142cab93c76426523293d861fb2285bb9765ba56a11be4d55820fedd9dfa5ceca781511c5dbae159c946c55ddee2e3708f65 SHA512 4985ecc06bba00495341969b8ab587cd586971690924ac98dd5155ee3d22e078b8765e1d2bf28112d7376c42947e0e80c0cb89d1e7671b91310058e59a10b643
EBUILD basiliskii-9999.ebuild 1181 BLAKE2B 8dc50b549168da2b9c58a62527fbe9c29a4b9079aed1ba8327f5d08a24d87511869130da9b00a7304b69e3449f4c3e72f9455fd86dfe6e09bd9252ecafdef72f SHA512 c2f75521e746b31e29fb89afc655ddadb7f7cbc2e4e8bd5a9636eb5b5664ea3a1da2644c2ff7db32a28b2f46a1ec8f5f67fb136a07caca6b6b635e2c8e8a5192

View File

@ -0,0 +1,63 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="7"
inherit desktop xdg-utils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/kanjitalk755/macemu"
inherit git-r3
else
SRC_URI="https://github.com/kanjitalk755/macemu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Basilisk II is an emulator for 68k Macintoshes"
HOMEPAGE="https://www.emaculation.com/doku.php"
LICENSE="GPL-3"
SLOT="0"
DEPEND="media-libs/libsdl2
x11-libs/gtk+:2"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/BasiliskII/src/Unix"
src_prepare() {
NO_CONFIGURE=1 ./autogen.sh
default
}
src_configure() {
econf \
--without-esd \
--with-bincue \
--with-gtk \
--with-x \
--enable-jit-compiler \
--enable-sdl-audio \
--enable-sdl-video
}
src_compile() {
MAKEOPTS="${MAKEOPTS} -j1" base_src_compile
}
src_install() {
default
doicon -s 256 "${FILESDIR}/BasiliskII.png"
domenu "${FILESDIR}/BasiliskII.desktop"
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=BasiliskII
Comment=BasiliskII Mac Emulator
Exec=BasiliskII
Icon=BasiliskII
Terminal=false
StartupNotify=true
Categories=System;Emulator;

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB