1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 MY_PV="${PN}-nologo-${PV}"
10 DESCRIPTION="An HP-42S Calculator Simulator"
11 HOMEPAGE="https://thomasokken.com/free42/"
12 SRC_URI="https://thomasokken.com/free42/upstream/${MY_PV}.tgz"
16 KEYWORDS="~amd64 ~x86"
23 alsa? ( media-libs/alsa-lib )"
27 DOCS=( CREDITS HISTORY README )
28 S="${WORKDIR}/${MY_PV}"
31 "${FILESDIR}/${PN}-2.5.16-fix-makefile.patch"
32 "${FILESDIR}/${PN}-2.5.3-fix-build-intel-lib.patch"
41 use alsa && myconf="AUDIO_ALSA=yes"
42 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${myconf} -C gtk
44 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C gtk
49 dobin gtk/free42bin gtk/free42dec