summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <sudinave@gmail.com>2021-04-14 04:19:57 -0400
committerJoonas Niilola <juippis@gentoo.org>2021-04-15 09:38:51 +0300
commitb01c676c96524f2fe966c653f490f9185440304f (patch)
tree59364aba2eb36d85854882b69b5ec75bde8bc581 /games-arcade
parentgames-action/xpilot: fix build with -native-symlinks (diff)
downloadgentoo-b01c676c96524f2fe966c653f490f9185440304f.tar.gz
gentoo-b01c676c96524f2fe966c653f490f9185440304f.tar.bz2
gentoo-b01c676c96524f2fe966c653f490f9185440304f.zip
games-arcade/xboing: fix build with -native-symlinks
Closes: https://bugs.gentoo.org/730790 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/xboing/xboing-2.4-r3.ebuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/games-arcade/xboing/xboing-2.4-r3.ebuild b/games-arcade/xboing/xboing-2.4-r3.ebuild
index d47824221347..48583653f806 100644
--- a/games-arcade/xboing/xboing-2.4-r3.ebuild
+++ b/games-arcade/xboing/xboing-2.4-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit flag-o-matic eutils
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Blockout type game where you bounce a ball trying to destroy blocks"
HOMEPAGE="http://www.techrescue.org/xboing/"
@@ -20,7 +20,7 @@ RDEPEND="acct-group/gamestat
DEPEND="${RDEPEND}
app-text/rman
x11-misc/gccmakedep
- x11-misc/imake
+ >=x11-misc/imake-1.0.8-r1
"
S=${WORKDIR}/${PN}
@@ -34,26 +34,29 @@ src_prepare() {
}
src_configure() {
- xmkmf -a || die
sed -i -e "s:GENTOO_VER:${PF/${PN}-/}:" Imakefile || die
append-cflags -fcommon
+
+ CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
+ IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf -a || die
}
src_compile() {
emake \
- CXXOPTIONS="${CXXFLAGS}" \
+ CC="$(tc-getCC)" \
CDEBUGFLAGS="${CFLAGS}" \
LOCAL_LDFLAGS="${LDFLAGS}" \
XBOING_DIR="/usr/share/${PN}"
}
src_install() {
- make \
+ emake \
+ CC="$(tc-getCC)" \
PREFIX="${D}" \
BINDIR="${D}/usr/bin" \
LOCAL_LDFLAGS="${LDFLAGS}" \
XBOING_DIR="/usr/share/${PN}" \
- install || die
+ install
newman xboing.man xboing.6
dodoc README docs/*.doc