You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit eutils toolchain-funcs
|
||
|
|
||
|
MY_PV="${PN}-nologo-${PV}"
|
||
|
|
||
|
DESCRIPTION="An HP-42S Calculator Simulator"
|
||
|
HOMEPAGE="http://thomasokken.com/free42/"
|
||
|
SRC_URI="http://thomasokken.com/free42/upstream/${MY_PV}.tgz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="alsa"
|
||
|
|
||
|
DEPEND="dev-libs/atk
|
||
|
x11-libs/cairo
|
||
|
x11-libs/gdk-pixbuf
|
||
|
x11-libs/gtk+:2
|
||
|
x11-libs/pango
|
||
|
alsa? ( media-libs/alsa-lib )"
|
||
|
|
||
|
RDEPEND="${DEPEND}
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXmu"
|
||
|
|
||
|
S="${WORKDIR}/${MY_PV}"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
sed -i -e 's/print_gif_name\[FILENAMELEN\]/print_gif_name\[1000\]/' \
|
||
|
"${S}/gtk/shell_main.cc" || die
|
||
|
epatch "${FILESDIR}"/${P}-fix-makefile.patch
|
||
|
epatch "${FILESDIR}"/${P}-fix-build-intel-lib.patch
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
local myconf
|
||
|
use alsa && myconf="AUDIO_ALSA=yes"
|
||
|
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C "${S}/gtk"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dodoc CREDITS HISTORY README
|
||
|
dobin gtk/free42dec
|
||
|
}
|