blob: d00bc9b0f19c2995d4f93080657514ef8e0aee5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools desktop flag-o-matic toolchain-funcs
DESCRIPTION="X Window block dropping game in 3 Dimension"
HOMEPAGE="https://perso.univ-lyon1.fr/thierry.excoffier/XBL/"
SRC_URI="https://perso.univ-lyon1.fr/thierry.excoffier/XBL/xbl-${PV}.tar.gz"
S="${WORKDIR}/xbl-${PV}"
LICENSE="GPL-1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
x11-libs/libX11
x11-libs/libXext
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-font.patch
"${FILESDIR}"/${P}-configure-clang16.patch
)
src_prepare() {
default
sed -i \
-e '/^CC/d' \
-e 's:-lm:-lm -lX11:' \
-e '/DGROUP_GID/d' \
-e 's:-g$:$(GENTOO_CFLAGS):' \
Makefile.in || die
# Don't know about other archs. --slarti
use amd64 && filter-flags "-fweb"
mv configure.in configure.ac || die
eautoreconf
}
src_compile() {
emake \
USE_SETGID= \
SCOREDIR="${EPREFIX}/usr/share/${PN}" \
RESOURCEDIR="${EPREFIX}/usr/share/${PN}" \
LDOPTIONS="${LDFLAGS}" \
GENTOO_CFLAGS="${CFLAGS}" \
CC="$(tc-getCC)"
}
src_install() {
newbin bl xbl
insinto /usr/share/${PN}
newins Xbl.ad Xbl
newman xbl.man xbl.6
dodoc README xbl-README
HTML_DOCS="*.html *.gif" einstalldocs
newicon xbl-game.gif ${PN}.gif
make_desktop_entry xbl XBlockOut /usr/share/pixmaps/${PN}.gif
}
|