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.
64 lines
1.3 KiB
64 lines
1.3 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
6 years ago
|
inherit desktop flag-o-matic gnome2-utils
|
||
|
|
||
|
DESCRIPTION="Multi-platform Atari 2600 VCS Emulator"
|
||
|
HOMEPAGE="https://stella-emu.github.io"
|
||
|
SRC_URI="https://github.com/stella-emu/${PN}/releases/download/${PV}/${P}-src.tar.xz"
|
||
9 years ago
|
|
||
|
LICENSE="GPL-2+ BSD"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="joystick"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
media-libs/libsdl2[joystick?,opengl,video]
|
||
|
media-libs/libpng:0=
|
||
|
sys-libs/zlib
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
9 years ago
|
|
||
6 years ago
|
DOCS=(Announce.txt Changes.txt Copyright.txt README-SDL.txt Readme.txt Todo.txt)
|
||
|
HTML_DOCS=(docs/.)
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
9 years ago
|
sed -i \
|
||
|
-e '/INSTALL/s/-s //' \
|
||
|
-e '/STRIP/d' \
|
||
|
-e "/icons/d" \
|
||
|
-e '/INSTALL.*DOCDIR/d' \
|
||
|
-e '/INSTALL.*\/applications/d' \
|
||
|
-e '/CXXFLAGS+=/s/-fomit-frame-pointer//' \
|
||
|
Makefile || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
# not an autoconf script
|
||
6 years ago
|
CXX=$(tc-getCXX) \
|
||
9 years ago
|
./configure \
|
||
|
--prefix="/usr" \
|
||
6 years ago
|
--bindir="/usr/bin" \
|
||
9 years ago
|
--docdir="/usr/share/doc/${PF}" \
|
||
6 years ago
|
--datadir="/usr/share" \
|
||
9 years ago
|
$(use_enable joystick) \
|
||
|
|| die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
default
|
||
9 years ago
|
local i
|
||
|
|
||
|
for i in 16 22 24 32 48 64 128 ; do
|
||
|
newicon -s ${i} src/common/stella-${i}x${i}.png stella.png
|
||
|
done
|
||
|
domenu src/unix/stella.desktop
|
||
6 years ago
|
einstalldocs
|
||
9 years ago
|
}
|
||
|
|
||
6 years ago
|
pkg_postinst() { gnome2_icon_cache_update; }
|
||
|
pkg_postrm() { gnome2_icon_cache_update; }
|