summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-10-15 10:53:31 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-10-15 10:53:31 +0000
commit3361e968efa942244d5f1b6247f4e83c5fda11a1 (patch)
tree74be25d6fda63d57d3eb32c11bd1a4fa813aac87 /games-action/battalion/battalion-1.4b.ebuild
parentversion bump (diff)
downloadhistorical-3361e968efa942244d5f1b6247f4e83c5fda11a1.tar.gz
historical-3361e968efa942244d5f1b6247f4e83c5fda11a1.tar.bz2
historical-3361e968efa942244d5f1b6247f4e83c5fda11a1.zip
Respect LDFLAGS. Bug #335136
Package-Manager: portage-2.1.9.14/cvs/Linux i686
Diffstat (limited to 'games-action/battalion/battalion-1.4b.ebuild')
-rw-r--r--games-action/battalion/battalion-1.4b.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild
index 7497786de7b9..51e4d69981e2 100644
--- a/games-action/battalion/battalion-1.4b.ebuild
+++ b/games-action/battalion/battalion-1.4b.ebuild
@@ -1,6 +1,7 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.13 2007/03/13 14:33:58 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.14 2010/10/15 10:53:31 tupone Exp $
+EAPI=2
inherit games
@@ -13,15 +14,13 @@ SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
-DEPEND="virtual/opengl
+RDEPEND="virtual/opengl
virtual/glu"
+DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}${PV}
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
# Modify data paths
sed -i \
-e "s:SOUNDS/:${GAMES_DATADIR}/${PN}/SOUNDS/:" \
@@ -38,11 +37,16 @@ src_unpack() {
# Modify Makefile and add CFLAGS
sed -i \
-e "s:-O2:${CFLAGS}:" \
+ -e "/^CC/d" \
Makefile || die "sed Makefile failed"
# Only .raw sound files are used on Linux. The .au files are not needed.
rm -f {SOUNDS,MUSIC}/*.au
}
+src_compile() {
+ emake LIBFLAGS="${LDFLAGS}" || die "died running emake"
+}
+
src_install() {
dogamesbin battalion || die "dogamesbin failed"
insinto "${GAMES_DATADIR}"/${PN}