|
Lines 2-13
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.7.ebuild,v 1.3 2010/11/05 13:42:47 hwoarang Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.7.ebuild,v 1.3 2010/11/05 13:42:47 hwoarang Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils linux-mod flag-o-matic autotools |
5 |
inherit eutils flag-o-matic autotools linux-info linux-mod |
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
7 |
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
| 8 |
HOMEPAGE="http://www.lirc.org/" |
8 |
HOMEPAGE="http://www.lirc.org/" |
| 9 |
|
9 |
|
| 10 |
MY_P=${PN}-${PV/_/} |
10 |
MY_P=${PN}-${PV/_/-} |
| 11 |
|
11 |
|
| 12 |
if [[ "${PV/_pre/}" = "${PV}" ]]; then |
12 |
if [[ "${PV/_pre/}" = "${PV}" ]]; then |
| 13 |
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" |
13 |
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" |
|
Lines 17-23
Link Here
|
| 17 |
|
17 |
|
| 18 |
LICENSE="GPL-2" |
18 |
LICENSE="GPL-2" |
| 19 |
SLOT="0" |
19 |
SLOT="0" |
| 20 |
KEYWORDS="amd64 ~ppc x86" |
20 |
KEYWORDS="~amd64 ~ppc ~x86" |
| 21 |
IUSE="debug doc X hardware-carrier transmitter" |
21 |
IUSE="debug doc X hardware-carrier transmitter" |
| 22 |
|
22 |
|
| 23 |
S="${WORKDIR}/${MY_P}" |
23 |
S="${WORKDIR}/${MY_P}" |
|
Lines 117-123
Link Here
|
| 117 |
fi |
117 |
fi |
| 118 |
|
118 |
|
| 119 |
elog "Compiling support for ${desc}" |
119 |
elog "Compiling support for ${desc}" |
| 120 |
MY_OPTS="${MY_OPTS} --with-driver=${dev}" |
120 |
|
|
|
121 |
if kernel_is -lt 2 6 36; then |
| 122 |
MY_OPTS="${MY_OPTS} --with-driver=${dev}" |
| 123 |
fi |
| 121 |
} |
124 |
} |
| 122 |
|
125 |
|
| 123 |
pkg_setup() { |
126 |
pkg_setup() { |
|
Lines 134-142
Link Here
|
| 134 |
linux-mod_pkg_setup |
137 |
linux-mod_pkg_setup |
| 135 |
|
138 |
|
| 136 |
# set default configure options |
139 |
# set default configure options |
| 137 |
MY_OPTS="" |
140 |
|
|
|
141 |
# check to see if kern >= 2.6.36, in which case build userspace components |
| 142 |
# only with "--with-driver=userspace" |
| 143 |
|
| 144 |
if kernel_is -ge 2 6 36; then |
| 145 |
MY_OPTS="--with-driver=userspace" |
| 146 |
else |
| 147 |
MY_OPTS="" |
| 148 |
fi |
| 149 |
|
| 138 |
LIRC_DRIVER_DEVICE="/dev/lirc0" |
150 |
LIRC_DRIVER_DEVICE="/dev/lirc0" |
| 139 |
|
151 |
|
|
|
152 |
if !(linux_chkconfig_present LIRC_STAGING) && kernel_is -ge 2 6 36; then |
| 153 |
ewarn "You have a kernel greater than or equal to 2.6.36, lirc modules" |
| 154 |
ewarn "are now bundled with your kernel, please configure your kernel" |
| 155 |
ewarn "to enable staging drivers and select the respective lirc devices" |
| 156 |
die |
| 157 |
fi |
| 158 |
|
| 140 |
if use lirc_devices_all; then |
159 |
if use lirc_devices_all; then |
| 141 |
# compile in drivers for a lot of devices |
160 |
# compile in drivers for a lot of devices |
| 142 |
add_device all "a lot of devices" |
161 |
add_device all "a lot of devices" |