1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit cmake-utils games
7 DESCRIPTION="Brain teasers, puzzle and memory games for kid's in one pack"
8 HOMEPAGE="http://www.viewizard.com/memonix/"
9 SRC_URI="http://www.viewizard.com/download/${PN}_${PV}_src.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
16 DEPEND="media-libs/libsdl:0[sound,opengl,video,X]
17 media-libs/sdl-image[jpeg]
18 media-libs/sdl-mixer[vorbis]
19 !games-kids/memonix-bin"
22 S=${WORKDIR}/MemonixSourceCode
25 cmake-utils_src_prepare
29 cmake-utils_src_configure
33 cmake-utils_src_compile
37 exeinto "$(games_get_libdir)"
38 doexe ../${P}_build/Memonix
40 insinto "${GAMES_DATADIR}/${PN}"
43 games_make_wrapper ${PN} "$(games_get_libdir)"/Memonix "${GAMES_DATADIR}"/${PN}
45 newicon ../icon48.png ${PN}.png
46 make_desktop_entry ${PN}