Skip to content

Commit

Permalink
games-fps/nexuiz: correctly pass flags and compiler
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/739288
Closes: https://bugs.gentoo.org/710826
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <[email protected]>
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
DarthGandalf authored and SoapGentoo committed Nov 16, 2020
1 parent 08ad289 commit 26bb544
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit eutils
inherit eutils toolchain-funcs

MY_PN=Nexuiz
MY_P=${PN}-${PV//./}
Expand Down Expand Up @@ -69,9 +69,8 @@ src_prepare() {

# Make the game automatically look in the correct data directory
sed -i \
-e "/^CC=/d" \
-e "s:-O2:${CFLAGS}:" \
-e "/-lm/s:$: ${LDFLAGS}:" \
-e 's:-O2:$(CFLAGS):' \
-e '/-lm/s:$: $(LDFLAGS):' \
-e '/^STRIP/s/strip/true/' \
makefile.inc || die

Expand All @@ -88,6 +87,7 @@ src_prepare() {
}

src_compile() {
tc-export CC
if use opengl || ! use dedicated ; then
emake cl-${PN}
if use sdl ; then
Expand Down

0 comments on commit 26bb544

Please sign in to comment.