blob: 4a523ad92e54eb90e4beb8102da3198e86fd2780 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Rcenter - A program to control the EMU10K Remote Control"
HOMEPAGE="http://rooster.stanford.edu/~ben/projects/rcenter.php"
SRC_URI="http://rooster.stanford.edu/~ben/projects/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
#-sparc: emu10k1 doesn't get recognized on sparc hardware
KEYWORDS="~amd64 -sparc ~x86"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-pthread-pointer-type.patch
)
src_configure() {
tc-export CC
}
src_test() {
"${S}"/rcenter -h || die
}
src_install() {
dobin rcenter
fperms 755 /usr/bin/rcenter
insinto /usr/share/rcenter
doins -r config
dodoc HISTORY README
}
pkg_postinst() {
elog "Rcenter Installed - However You need to setup the scripts"
elog "for making remote control commands actually work"
elog
elog "The Skel scripts can be copied from ${EROOT}/usr/share/rcenter/config to <user>/.rcenter"
elog "Where <user> is a person who will use rcenter"
elog "Remeber to use emu-config -i to turn on the remote"
}
|