1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="PCIE RTS5229 card reader driver for Linux"
10 HOMEPAGE="http://www.realtek.com.tw/Downloads/downloadsView.aspx?PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3"
11 SRC_URI="https://dev.gentoo.org/~vikraman/distfiles/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
23 MODULE_NAMES="rts5229(misc/drivers/scsi)"
24 BUILD_TARGETS="default"
27 sed -e 's/\/lib\/modules\/\$(shell uname -r)\/build\//\$(KERNELDIR)/g' \
28 -i Makefile || die "Sed failed!"
29 ([ ${KV_MAJOR} -gt 3 ] || ([ ${KV_MAJOR} -eq 3 ] && [ ${KV_MINOR} -ge 8 ])) \
30 && epatch "${FILESDIR}/${PN}-linux-3.8.patch"
31 ([ ${KV_MAJOR} -gt 3 ] || ([ ${KV_MAJOR} -eq 3 ] && [ ${KV_MINOR} -ge 10 ])) \
32 && epatch "${FILESDIR}/${PN}-linux-3.10.patch"
33 sed -e '/__DATE__/d' \
34 -i rtsx.c || die "Sed failed!"
39 BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"