blob: 48583653f8062584bc56290764fb5727971e5dc1 (
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
66
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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/"
SRC_URI="http://www.techrescue.org/xboing/${PN}${PV}.tar.gz
mirror://gentoo/xboing-${PV}-debian.patch.bz2"
LICENSE="xboing"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
RDEPEND="acct-group/gamestat
x11-libs/libXpm"
DEPEND="${RDEPEND}
app-text/rman
x11-misc/gccmakedep
>=x11-misc/imake-1.0.8-r1
"
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${WORKDIR}"/xboing-${PV}-debian.patch
epatch "${FILESDIR}"/xboing-${PV}-buffer.patch
epatch "${FILESDIR}"/xboing-${PV}-sleep.patch
sed -i '/^#include/s:xpm\.h:X11/xpm.h:' *.c || die
eapply_user
}
src_configure() {
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 \
CC="$(tc-getCC)" \
CDEBUGFLAGS="${CFLAGS}" \
LOCAL_LDFLAGS="${LDFLAGS}" \
XBOING_DIR="/usr/share/${PN}"
}
src_install() {
emake \
CC="$(tc-getCC)" \
PREFIX="${D}" \
BINDIR="${D}/usr/bin" \
LOCAL_LDFLAGS="${LDFLAGS}" \
XBOING_DIR="/usr/share/${PN}" \
install
newman xboing.man xboing.6
dodoc README docs/*.doc
fowners root:gamestat /var/games/xboing.score /usr/bin/xboing
fperms 660 /var/games/xboing.score
fperms 2755 /usr/bin/xboing
}
|