/[gentoo-x86]/games-emulation/yabause/yabause-0.9.14.ebuild
Gentoo

Contents of /games-emulation/yabause/yabause-0.9.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri May 22 16:55:18 2015 UTC (4 years, 8 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -2 lines
hide non-PIC asm behind pic USE flag (bug #539656)

(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-emulation/yabause/yabause-0.9.14.ebuild,v 1.3 2015/03/25 13:48:49 ago Exp $
4
5 EAPI=5
6 inherit eutils cmake-utils games
7
8 DESCRIPTION="A Sega Saturn emulator"
9 HOMEPAGE="http://yabause.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="openal opengl pic qt5 sdl"
16
17 # x11-libs/libXrandr is an automagic dep
18 # qt5 over qt4 and libsdl2 over libsdl is
19 # also done automatically. Send patches
20 # upstream to make the choices explicit.
21 RDEPEND="
22 x11-libs/libXrandr
23 openal? ( media-libs/openal )
24 opengl? (
25 media-libs/freeglut
26 virtual/glu
27 virtual/opengl
28 )
29 qt5? (
30 dev-qt/qtcore:5
31 dev-qt/qtwidgets:5[opengl?]
32 opengl? ( dev-qt/qtopengl:5 )
33 )
34 !qt5? (
35 dev-libs/glib:2
36 x11-libs/gtk+:2
37 x11-libs/gtkglext
38 )
39 sdl? ( media-libs/libsdl2[opengl?,video] )"
40 DEPEND="${RDEPEND}
41 virtual/pkgconfig"
42
43 src_prepare() {
44 epatch "${FILESDIR}"/${P}-RWX.patch \
45 "${FILESDIR}"/${P}-cmake.patch
46 }
47
48 src_configure() {
49 local mycmakeargs=(
50 -DBINDIR="${GAMES_BINDIR}"
51 -DTRANSDIR="${GAMES_DATADIR}"/${PN}/yts
52 -DYAB_OPTIMIZATION=""
53 $(cmake-utils_use sdl YAB_WANT_SDL)
54 $(cmake-utils_use openal YAB_WANT_OPENAL)
55 $(cmake-utils_use opengl YAB_WANT_OPENGL)
56 $(cmake-utils_use !pic SH2_DYNAREC)
57 -DYAB_PORTS=$(usex qt5 "qt" "gtk")
58 )
59 cmake-utils_src_configure
60 }
61
62 src_compile() {
63 cmake-utils_src_compile
64 }
65
66 src_install() {
67 cmake-utils_src_install
68 dodoc AUTHORS ChangeLog GOALS README README.LIN
69 prepgamesdirs
70 }

  ViewVC Help
Powered by ViewVC 1.1.20