libv4l ist uralt. neue version gefunden - die ist in v4l-utils enthalten

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@5655 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-05-28 08:51:08 +00:00
parent 75b18630aa
commit c6a7ea034b

View File

@ -58,14 +58,10 @@
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum # 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
# kümmern # kümmern
#Module zur Erstellung des Packetes: libv4l #Module zur Erstellung des Packetes: v4l-utils
#Quelle der Source Archive: http://people.atrpms.net/~hdegoede/ #Quelle der Source Archive: http://freshmeat.net/projects/libv4l
#ACHTUNG: Beschreibung nicht in der gleichen Zeile beginnen!
#Neue Zeile anfangen. sonste funktioniert die metadaten erzeugung
#nicht!
#Kurzbeschreibung: #Kurzbeschreibung:
#THIN abstraction layer library für das Video4linux projekt #Video4linux utils, die für diverse webcams notwendig sind.
#
# #
#Letzte Änderung von: $Author: $ #Letzte Änderung von: $Author: $
#Datum der letzten Änderung: $Date: $ #Datum der letzten Änderung: $Date: $
@ -75,84 +71,28 @@
SRCPATH=MultiMedia/Lib SRCPATH=MultiMedia/Lib
premk() { premk() {
echo "Nothing to do for premk()" mkdir $TMPROOT/usr
} }
mk32() { mk32() {
make USE_ARCH=32 \ make CC="gcc $BUILDOPTIONS32" \
CC="gcc $BUILDOPTIONS32" \
CXX="g++ $BUILDOPTIONS32" \ CXX="g++ $BUILDOPTIONS32" \
USE_ARCH=32 \
-j $NUMCPU -j $NUMCPU
mkdir -p $TMPROOT/usr/{lib,include} make -j $NUMCPU PREFIX=$TMPROOT/usr install
tar -C lib -cf - .|tar -C $TMPROOT/usr/lib -xvf -
tar -C include -cf - |tar -C $TMPROOT/usr/include -xvf -
make clean make clean
} }
mk() { mk() {
if [ "$MK64BIT" == "true" ]; then make CC="gcc $BUILDOPTIONS" \
ADDOPTIONS="--libdir=\${prefix}/lib64"
fi
make USE_ARCH=$UARCH \
CC="gcc $BUILDOPTIONS" \
CXX="g++ $BUILDOPTIONS" \ CXX="g++ $BUILDOPTIONS" \
USE_ARCH=$UARCH \
-j $NUMCPU -j $NUMCPU
mkdir -p $TMPROOT/usr/{$LIBDIR,include} make -j $NUMCPU PREFIX=$TMPROOT/usr \
tar -C lib -cf - .|tar -C $TMPROOT/usr/$LIBDIR -xvf - LIBDIR=$TMPROOT/usr/$LIBDIR \
tar -C include -cf - .|tar -C $TMPROOT/usr/include -xvf - install
} }
postmk() { postmk() {
mkdir $TMPROOT/usr/lib/pkgconfig echo "Nothing to do for postmk()"
cat > $TMPROOT/usr/lib/pkgconfig/libv4l2.pc <<EOF
prefix=/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: libv4l2
Description: V4L abstraction library
Version: 0.1
Libs: -L\${libdir} -lv4l1
Cflags:
EOF
cat > $TMPROOT/usr/lib/pkgconfig/libv4l1.pc <<EOF
prefix=/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: libv4l1
Description: V4L abstraction library
Version: 0.1
Libs: -L\${libdir} -lv4l1
Cflags:
EOF
if [ "$MK64BIT" == "true" ]; then
mkdir $TMPROOT/usr/lib64/pkgconfig
cat > $TMPROOT/usr/lib64/pkgconfig/libv4l2.pc <<EOF
prefix=/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib64
includedir=\${prefix}/include
Name: libv4l2
Description: V4L abstraction library
Version: 0.1
Libs: -L\${libdir} -lv4l1
Cflags:
EOF
cat > $TMPROOT/usr/lib64/pkgconfig/libv4l1.pc <<EOF
prefix=/usr
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib64
includedir=\${prefix}/include
Name: libv4l1
Description: V4L abstraction library
Version: 0.1
Libs: -L\${libdir} -lv4l1
Cflags:
EOF
fi
} }