summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-06-01 22:57:37 +0300
committerJames Le Cuirot <chewi@gentoo.org>2018-07-11 21:58:43 +0100
commit97ec3a4cb66d7484c8b7a29db5aeabb79598f12c (patch)
treeb4d176cdc97b9aec463deb444195fe2f485e2629 /games-engines
parentgames-misc/exult-sound: simplify ebuild (diff)
downloadgentoo-97ec3a4cb66d7484c8b7a29db5aeabb79598f12c.tar.gz
gentoo-97ec3a4cb66d7484c8b7a29db5aeabb79598f12c.tar.bz2
gentoo-97ec3a4cb66d7484c8b7a29db5aeabb79598f12c.zip
games-engines/exult: fixes to compilation
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/exult/exult-9999.ebuild13
-rw-r--r--games-engines/exult/metadata.xml4
2 files changed, 11 insertions, 6 deletions
diff --git a/games-engines/exult/exult-9999.ebuild b/games-engines/exult/exult-9999.ebuild
index 4efc34a2e5d..3463a5baa5a 100644
--- a/games-engines/exult/exult-9999.ebuild
+++ b/games-engines/exult/exult-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -11,18 +11,18 @@ EGIT_REPO_URI="https://github.com/exult/exult"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="timidity zlib"
+IUSE="+sdl2 timidity zlib"
DEPEND="
>=media-libs/libpng-1.2.43-r2:0
games-misc/exult-sound
- media-libs/libsdl[sound,video,X]
+ media-libs/libvorbis
+ sdl2? ( media-libs/libsdl2[sound,video,X] )
+ !sdl2? ( media-libs/libsdl[sound,video,X] )
timidity? ( >=media-sound/timidity++-2 )
zlib? ( sys-libs/zlib )
"
-RDEPEND="
- ${DEPEND}
-"
+RDEPEND="${DEPEND}"
S=${WORKDIR}/${P/_/}
DOCS=(
@@ -42,6 +42,7 @@ src_configure() {
--enable-mods \
--with-desktopdir=/usr/share/applications \
--with-icondir=/usr/share/pixmaps \
+ --with-sdl=$(usex sdl2 sdl2 sdl12) \
$(use_enable timidity timidity-midi) \
$(use_enable zlib zip-support)
}
diff --git a/games-engines/exult/metadata.xml b/games-engines/exult/metadata.xml
index c1a873a06ee..a676c5e60d9 100644
--- a/games-engines/exult/metadata.xml
+++ b/games-engines/exult/metadata.xml
@@ -7,5 +7,9 @@
</maintainer>
<upstream>
<remote-id type="sourceforge">exult</remote-id>
+ <remote-id type="github">exult/exult</remote-id>
</upstream>
+ <use>
+ <flag name="sdl2">Use libsdl2 instead of libsdl</flag>
+ </use>
</pkgmetadata>