1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit desktop toolchain-funcs
7 DESCRIPTION="A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game"
8 HOMEPAGE="http://abe.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/abe/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 DEPEND="media-libs/libsdl[sound,video]
18 media-libs/sdl-mixer[vorbis]"
24 unpack ./images/images.tar
29 # Enable changing the video settings. Sent upstream 2 Apr 2006:
30 # https://sourceforge.net/p/abe/bugs/1/
31 "${FILESDIR}"/${P}-settings.patch
33 # Fix a double free() bug. Sent upstream 15 Mar 2011:
34 # https://sourceforge.net/p/abe/patches/1/
35 "${FILESDIR}"/${P}-doublefree.patch
37 # Fix an incorrect printf format specifier. Sent upstream 15 Mar 2011:
38 # https://sourceforge.net/p/abe/patches/2/
39 "${FILESDIR}"/${P}-format.patch
41 # Fix build failure with -Werror=format-security
42 "${FILESDIR}"/${P}-format-security.patch
49 -e "/^TR_CXXFLAGS/d" \
54 econf --with-data-dir=/usr/share/${PN}
59 insinto /usr/share/${PN}
60 doins -r images sounds maps
61 newicon tom1.bmp abe.bmp
62 make_desktop_entry abe "Abe's Amazing Adventure" /usr/share/pixmaps/abe.bmp