summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-12-29 05:32:36 +0000
committerMike Frysinger <vapier@gentoo.org>2003-12-29 05:32:36 +0000
commitd2db4a72aa9309fc0ca7fa137ac6082d6341905d (patch)
tree8bca356b937d8fb195f23f2f36032459c65a41ba /games-fps/doomlegacy
parentold (diff)
downloadgentoo-2-d2db4a72aa9309fc0ca7fa137ac6082d6341905d.tar.gz
gentoo-2-d2db4a72aa9309fc0ca7fa137ac6082d6341905d.tar.bz2
gentoo-2-d2db4a72aa9309fc0ca7fa137ac6082d6341905d.zip
SDL support #33710
Diffstat (limited to 'games-fps/doomlegacy')
-rw-r--r--games-fps/doomlegacy/ChangeLog5
-rw-r--r--games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild11
2 files changed, 13 insertions, 3 deletions
diff --git a/games-fps/doomlegacy/ChangeLog b/games-fps/doomlegacy/ChangeLog
index 03a7e3bfc7cd..c3a15d5e0f41 100644
--- a/games-fps/doomlegacy/ChangeLog
+++ b/games-fps/doomlegacy/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for games-fps/doomlegacy
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/doomlegacy/ChangeLog,v 1.4 2003/10/14 04:03:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/doomlegacy/ChangeLog,v 1.5 2003/12/29 05:32:36 vapier Exp $
*doomlegacy-1.41-r1 (13 Oct 2003)
+ 29 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add optional SDL support #33710.
+
13 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
Fix typo in sed script and fix legacy.dat mirroring.
diff --git a/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild b/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild
index 214863177913..1fd3b1ca47e9 100644
--- a/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild
+++ b/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild,v 1.1 2003/10/14 04:03:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/doomlegacy/doomlegacy-1.41-r1.ebuild,v 1.2 2003/12/29 05:32:36 vapier Exp $
inherit games eutils
@@ -13,11 +13,13 @@ SRC_URI="mirror://sourceforge/doomlegacy/legacy_${PV/./}_src.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
+IUSE="sdl"
DEPEND="x86? ( >=dev-lang/nasm-0.98 )
>=sys-apps/sed-4
virtual/opengl
- virtual/x11"
+ virtual/x11
+ sdl? ( media-libs/libsdl media-libs/sdl-mixer )"
S=${WORKDIR}/legacy_${PV//.}_src
@@ -47,12 +49,15 @@ src_compile() {
# this is ugly but it's late (here) and it works
local useasm=
[ `use x86` ] && useasm="USEASM=1"
+ local usesdl=
+ [ `use sdl` ] && usesdl="SDL=1"
local redosnd=0
make \
EXTRAOPTS="${CFLAGS}" \
LINUX=1 \
X=1 \
${useasm} \
+ ${usesdl} \
|| redosnd=1
if [ ${redosnd} -eq 1 ] ; then
cd linux_x/sndserv
@@ -65,6 +70,7 @@ src_compile() {
LINUX=1 \
X=1 \
${useasm} \
+ ${usesdl} \
|| die "build failed"
}
@@ -73,6 +79,7 @@ src_install() {
linux_x/musserv/linux/musserver \
linux_x/sndserv/linux/llsndserv \
${WORKDIR}/bin/llxdoom
+ use sdl && dogamesbin ${WORKDIR}/bin/lsdldoom
exeinto ${GAMES_LIBDIR}/${PN}
doexe ${WORKDIR}/bin/r_opengl.so