diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-12-08 14:36:38 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-12-08 14:43:14 -0500 |
commit | 9c6f66afb240c16b5f4c5464d100a8e10cbcd8ed (patch) | |
tree | 205fbded7048856f4ba121da5e79cd35d239b219 /games-emulation/fbzx/fbzx-4.8.0-r1.ebuild | |
parent | sys-fs/zfs: Stabilize 2.1.6 arm64, #884865 (diff) | |
download | gentoo-9c6f66afb240c16b5f4c5464d100a8e10cbcd8ed.tar.gz gentoo-9c6f66afb240c16b5f4c5464d100a8e10cbcd8ed.tar.bz2 gentoo-9c6f66afb240c16b5f4c5464d100a8e10cbcd8ed.zip |
games-emulation/fbzx: EAPI7->8, use libpulse, https
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-emulation/fbzx/fbzx-4.8.0-r1.ebuild')
-rw-r--r-- | games-emulation/fbzx/fbzx-4.8.0-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-emulation/fbzx/fbzx-4.8.0-r1.ebuild b/games-emulation/fbzx/fbzx-4.8.0-r1.ebuild new file mode 100644 index 000000000000..6d2ee0e0a6cd --- /dev/null +++ b/games-emulation/fbzx/fbzx-4.8.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs + +DESCRIPTION="Full Screen Sinclair Spectrum emulator" +HOMEPAGE="https://www.rastersoft.com/programas/fbzx.html" +SRC_URI="https://www.rastersoft.com/descargas/fbzx/${PN}_${PV}.tar.bz2" +S="${WORKDIR}/${PN}_${PV}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa pulseaudio" + +RDEPEND=" + media-libs/libsdl2[joystick,video] + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-libs/libpulse )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-4.6.0-makefile.patch +) + +src_prepare() { + default + + sed -i "s|/usr/share|${EPREFIX}/usr/share/${PN}|" src/llscreen.cpp || die +} + +src_compile() { + tc-export CXX PKG_CONFIG + + emake ALSA=$(usex alsa) PULSE=$(usex pulseaudio) +} + +src_install() { + dobin src/${PN} + dodoc AMSTRAD CAPABILITIES FAQ HISTORY.md README.{TZX,md} TODO + + insinto /usr/share/${PN} + doins -r data/spectrum-roms + + insinto /usr/share/${PN}/${PN} + doins data/keymap.bmp + + doicon data/${PN}.svg + domenu data/${PN}.desktop +} |