|
new file 100644
|
|
|
EAPI="2"
|
|
|
inherit eutils linux-mod
|
|
|
|
|
|
#SRC_URI="http://download.opensuse.org/repositories/home:/tanktarta:/gnome15/Mandriva_2011/src/lg4l-0.12-1.1.src.rpm"
|
|
|
SRC_URI="http://download.opensuse.org/repositories/home:/tanktarta:/gnome15/xUbuntu_11.10/lg4l_0.12.orig.tar.gz"
|
|
|
DESCRIPTION="Kernel module for Logitech G13, G15, G19 and G110 keyboards"
|
|
|
HOMEPAGE="http://www.gnome15.org/"
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
KEYWORDS="amd64 x86"
|
|
|
IUSE=""
|
|
|
|
|
|
# for some reason the build fails with parallel builds
|
|
|
MAKEOPTS=""
|
|
|
|
|
|
DEPEND="virtual/linux-sources"
|
|
|
RDEPEND=""
|
|
|
|
|
|
S="${WORKDIR}/lg4l-${PV}"
|
|
|
|
|
|
MODULE_NAMES="hid-g13(extra) hid-g15(extra) hid-g15v2(extra) hid-g510(extra) hid-g19(extra) hid-g110(extra) hid-gfb(extra)"
|
|
|
|
|
|
pkg_setup() {
|
|
|
# framebuffer
|
|
|
CONFIG_CHECK="FB FB_DEFERRED_IO"
|
|
|
CONFIG_CHECK="${CONFIG_CHECK} FB_SYS_FILLRECT FB_SYS_COPYAREA FB_SYS_IMAGEBLIT"
|
|
|
CONFIG_CHECK="${CONFIG_CHECK} FB_SYS_FOPS FB_HECUBA FB_N411"
|
|
|
# LCD backlight
|
|
|
CONFIG_CHECK="${CONFIG_CHECK} BACKLIGHT_LCD_SUPPORT LCD_CLASS_DEVICE"
|
|
|
CONFIG_CHECK="${CONFIG_CHECK} BACKLIGHT_CLASS_DEVICE"
|
|
|
# LED support
|
|
|
CONFIG_CHECK="${CONFIG_CHECK} NEW_LEDS LEDS_CLASS"
|
|
|
|
|
|
linux-mod_pkg_setup
|
|
|
|
|
|
BUILD_PARAMS="-C ${KV_DIR} M=${S}"
|
|
|
BUILD_TARGETS=" " # let the default target build the modules
|
|
|
}
|