2007-08-15 18:22:35 -04:00
|
|
|
# Description: Linux DXR3 and Hollywood+ Driver
|
|
|
|
# URL: http://dxr3.sf.net
|
2006-11-06 11:17:47 -04:00
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=em8300
|
2007-08-15 18:22:35 -04:00
|
|
|
version=0.15.4cvs2
|
2006-11-06 11:17:47 -04:00
|
|
|
release=2
|
2007-08-15 18:22:35 -04:00
|
|
|
source=(http://dl.sourceforge.net/sourceforge/dxr3/$name-0.15.3.tar.gz em8300_kernel_2.6.17_2.patch.gz em8300_zoom.patch.gz em8300_ntsc_pos.patch.gz em8300_ntsc_default.patch.gz)
|
2006-11-06 11:17:47 -04:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-0.15.3
|
2007-08-15 18:22:35 -04:00
|
|
|
# Changes to work with kernel 2.6.17 or superior
|
|
|
|
zcat ../em8300_kernel_2.6.17_2.patch.gz | patch -p0
|
|
|
|
# Enables the usage of a zoom factor in /sys/class/em8300/em8300-0/device/zoom
|
|
|
|
zcat ../em8300_zoom.patch.gz | patch -p0
|
|
|
|
# Fixes the position for ntsc video signal
|
|
|
|
zcat ../em8300_ntsc_pos.patch.gz | patch -p0
|
|
|
|
# Makes ntsc the default (you can change this with em8300setup, but you can comment this)
|
|
|
|
zcat ../em8300_ntsc_default.patch.gz | patch -p1
|
2006-11-06 11:17:47 -04:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
cd modules
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -rf $PKG/usr/share/em8300 $PKG/usr/bin/{autocal,dhc,dxr3view}
|
|
|
|
# mkdir -p $PKG/etc/udev/rules.d
|
|
|
|
# install -m 644 em8300-udev.rules $PKG/etc/udev/rules.d/90-em8300.rules
|
|
|
|
}
|