diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 06:33:49 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 06:33:49 +0000 |
commit | 78634f348a30a55cc55606ee1ecde032241ceaeb (patch) | |
tree | 528e39df571e37b31bfca1811c69bcc06c4af22f /app-emulation/aranym/aranym-1.1.0-r1.ebuild | |
parent | 434fbe89e81a1fe06d92676be72ab7f862cc3f53 (diff) |
gentoo auto-resync : 19:03:2023 - 06:33:49
Diffstat (limited to 'app-emulation/aranym/aranym-1.1.0-r1.ebuild')
-rw-r--r-- | app-emulation/aranym/aranym-1.1.0-r1.ebuild | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/app-emulation/aranym/aranym-1.1.0-r1.ebuild b/app-emulation/aranym/aranym-1.1.0-r1.ebuild new file mode 100644 index 000000000000..3b4f4ca886c8 --- /dev/null +++ b/app-emulation/aranym/aranym-1.1.0-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multibuild toolchain-funcs xdg + +DESCRIPTION="Atari Running on Any Machine, VM running Atari ST/TT/Falcon OS and TOS/GEM apps" +HOMEPAGE="https://aranym.github.io" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PN^^}_${PV//./_}/${PN}_${PV}.orig.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+clipboard +jit jpeg lilo opengl osmesa pmmu +standard usb" +REQUIRED_USE="|| ( jit pmmu standard ) lilo? ( pmmu )" + +# LILO can be used without zlib but the zlib dependency is automagic so +# we just require it unconditionally. + +RDEPEND=" + dev-libs/gmp:0= + media-libs/libsdl2[video] + clipboard? ( !kernel_Winnt? ( + media-libs/libsdl2[X] + x11-libs/libX11 + ) ) + jpeg? ( virtual/jpeg ) + kernel_linux? ( virtual/libudev ) + lilo? ( sys-libs/zlib ) + opengl? ( virtual/opengl ) + osmesa? ( media-libs/mesa[osmesa] ) + pmmu? ( dev-libs/mpfr:0= ) + usb? ( virtual/libusb:1 ) +" + +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.0-conditional-installs.patch + "${FILESDIR}"/${PN}-1.1.0-libcwrap.patch + "${FILESDIR}"/${PN}-1.1.0-ar.patch + "${FILESDIR}"/${PN}-1.1.0-clang-16-register.patch + "${FILESDIR}"/${PN}-1.1.0-configure-clang16.patch + "${FILESDIR}"/${PN}-1.1.0-configure-bashisms.patch +) + +ECONF_SOURCE="${S}" +DOCS=() + +src_prepare() { + xdg_src_prepare + eautoreconf +} + +src_configure() { + tc-export_build_env + export CC_FOR_BUILD=$(tc-getBUILD_CC) CXX_FOR_BUILD=$(tc-getBUILD_CXX) + + # standard must come last otherwise the aranym executable gets + # overwritten by the others. + MULTIBUILD_VARIANTS=( + $(usev jit) + $(usev pmmu) + $(usev standard) + ) + + multibuild_foreach_variant run_in_build_dir multibuild_src_configure +} + +multibuild_src_configure() { + # jit-fpu doesn't work on some platforms. FPUs were optional in + # Ataris anyway so just disable. + local myconf=( + $(use_enable opengl) + $(use_enable usb usbhost) + $(use_enable osmesa nfosmesa) + $(use_enable jpeg nfjpeg) + $(use_enable clipboard nfclipbrd) + --disable-jit-fpu + ) + + if [[ ${MULTIBUILD_VARIANT} == jit ]]; then + myconf+=( --enable-jit-compiler ) + else + myconf+=( --disable-jit-compiler ) + fi + + if [[ ${MULTIBUILD_VARIANT} == pmmu ]]; then + myconf+=( --enable-fullmmu $(use_enable lilo) ) + else + myconf+=( --disable-fullmmu --disable-lilo ) + fi + + # Force use of SDL2 over SDL1. + ac_cv_path_SDL_CONFIG=no econf "${myconf[@]}" + + # https://github.com/aranym/aranym/issues/54 + echo "#define HAVE_X11_XLIB_H 1" >> config.h || die +} + +src_compile() { + multibuild_foreach_variant run_in_build_dir default +} + +src_install() { + multibuild_foreach_variant run_in_build_dir default + rm "${ED}"/usr/share/doc/${PF}/COPYING || die +} |