forked from ports/contrib
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Description: Driver for the QuickCam Express and other QuickCam-related and QuickCam-compatible USB web cameras.
|
|
# URL: http://qce-ga.sourceforge.net/
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Depends on:
|
|
|
|
name=module-usb-quickcam
|
|
version=0.6.5
|
|
release=1
|
|
source=(http://dl.sourceforge.net/sourceforge/qce-ga/qc-usb-$version.tar.gz)
|
|
|
|
build() {
|
|
cd qc-usb-$version
|
|
make all
|
|
|
|
export PORT_KERNEL_VERSION=$(uname -r)
|
|
|
|
install -c -D -m644 quickcam.ko $PKG/lib/modules/$PORT_KERNEL_VERSION/misc/quickcam.ko
|
|
install -c -D -m755 qcset $PKG/usr/bin/qcset
|
|
|
|
# This refuses to install to the PKG dir, so its done manually.
|
|
#make DESTDIR=$PKG install
|
|
|
|
install -c -D -m644 quickcam.h $PKG/usr/src/linux-$PORT_KERNEL_VERSION/include/linux/quickcam.h
|
|
|
|
# This dosn't work, so I've manually installed the files.
|
|
#make DESTDIR=$PKG kernel-files
|
|
|
|
export PORT_PKG_LIST="qc-driver.c qc-formats.c qc-mjpeg.c qc-memory.c qc-memory.h qc-vv6410.c qc-hdcs.c qc-pb0100.c"
|
|
|
|
for i in $PORT_PKG_LIST; do
|
|
install -c -D -m644 $i $PKG/usr/src/linux-$PORT_KERNEL_VERSION/drivers/usb/misc/$i
|
|
done
|
|
|
|
# Clean up vars.
|
|
unset PORT_KERNEL_VERSION
|
|
unset PORT_PKG_LIST
|
|
}
|
|
|