summaryrefslogtreecommitdiff
blob: 542d6d2f99c17ced050a5b2945a117ece11d15e6 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Ryan Tolboom <ryan@gentoo.org> 
# $Header: /var/cvsroot/gentoo-x86/app-misc/joy2key/joy2key-1.6.ebuild,v 1.2 2002/03/06 18:55:22 gbevin Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="An application that translates joystick events to keyboard events"
SRC_URI="http://www-unix.oit.umass.edu/~tetron/technology/joy2key/${A}"
HOMEPAGE="http://www-unix.out.umass.edu/~tetron/technology/joy2key/"

DEPEND="virtual/glibc
	X? ( virtual/x11 )"

src_compile() {

    local myconf
    if [ -z "`use X`" ] ; then
    	myconf="--disable-X"
    fi

    try ./configure --host=${CHOST} ${myconf}
    try make

}

src_install () {

    dobin joy2key
    doman joy2key.1
    dodoc README joy2keyrc.sample

}