blob: fabc3b804726203974bbfd8d5dc9fa2dfd7dc27c (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/qjoypad/qjoypad-3.4.ebuild,v 1.6 2006/04/04 17:37:18 tupone Exp $
inherit eutils
DESCRIPTION="translate gamepad/joystick input into key strokes/mouse actions in X"
HOMEPAGE="http://qjoypad.sourceforge.net/"
SRC_URI="mirror://sourceforge/qjoypad/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="x11-libs/qt
|| (
(
x11-proto/xextproto
x11-proto/xproto )
virtual/x11 )"
RDEPEND="x11-libs/qt
|| (
x11-libs/libXtst
virtual/x11 )"
src_unpack() {
unpack ${A}
cd "${S}"/src
# makefile has silly dependencies
sed -i \
-e "/^CFLAGS/s:-pipe -Wall -W -O2:${CFLAGS}:" \
-e "/^CXXFLAGS/s:-pipe -Wall -W -O2:${CXXFLAGS}:" \
-e '/^Makefile:/s|:.*||' \
Makefile || die "sed make depends failed"
epatch "${FILESDIR}/${P}"-gcc41.patch
}
src_compile() {
cd src
./config --prefix=/usr || die "config failed"
emake || die
}
src_install() {
dobin src/qjoypad || die "bin"
insinto /usr/share/pixmaps/${PN}
doins icons/* || die "icons"
dosym gamepad4-24x24.png /usr/share/pixmaps/${PN}/icon24.png
dosym gamepad4-64x64.png /usr/share/pixmaps/${PN}/icon64.png
dodoc README.txt
make_desktop_entry qjoypad QJoypad /usr/share/pixmaps/${PN}/icon64.png
}
|