diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-11 12:39:15 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-13 10:19:57 +0200 |
| commit | 888509e75f70f9a16eb213ebb35c0535646a05ab (patch) | |
| tree | 22c8056e3130a7cf307f50ab70064ced02a8d427 /meta-oe/recipes-support/opencv/opencv-samples_2.4.bb | |
| parent | 2f9d8fef13e592d232a9bec3c1eb7c59fe048878 (diff) | |
| download | meta-openembedded-888509e75f70f9a16eb213ebb35c0535646a05ab.tar.gz | |
opencv, opencv-samples: add 2.4.2
Libav is easier to get right than gstreamer, so switch back. Also enable libv4l for better v4l(2) support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-support/opencv/opencv-samples_2.4.bb')
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv-samples_2.4.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv-samples_2.4.bb b/meta-oe/recipes-support/opencv/opencv-samples_2.4.bb new file mode 100644 index 0000000000..90f7536ce8 --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv-samples_2.4.bb | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | DESCRIPTION = "Opencv : The Open Computer Vision Library" | ||
| 2 | HOMEPAGE = "http://opencv.willowgarage.com/wiki/" | ||
| 3 | SECTION = "libs" | ||
| 4 | LICENSE = "BSD" | ||
| 5 | |||
| 6 | DEPENDS = "opencv" | ||
| 7 | |||
| 8 | LIC_FILES_CHKSUM = "file://include/opencv2/opencv.hpp;endline=41;md5=6d690d8488a6fca7a2c192932466bb14 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRC_URI = "svn://code.opencv.org/svn/opencv/branches/2.4;module=opencv;proto=http \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRCREV = "8988" | ||
| 15 | |||
| 16 | PV = "2.4.2" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/opencv" | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | cd samples/c | ||
| 22 | install -d ${D}/${bindir} | ||
| 23 | install -d ${D}/${datadir}/opencv/samples | ||
| 24 | |||
| 25 | cp * ${D}/${datadir}/opencv/samples || true | ||
| 26 | |||
| 27 | for i in *.c; do | ||
| 28 | echo "compiling $i" | ||
| 29 | ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv` || true | ||
| 30 | install -m 0755 `basename $i .c` ${D}/${bindir} || true | ||
| 31 | rm ${D}/${datadir}/opencv/samples/`basename $i .c` || true | ||
| 32 | done | ||
| 33 | for i in *.cpp; do | ||
| 34 | echo "compiling $i" | ||
| 35 | ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv` || true | ||
| 36 | install -m 0755 `basename $i .cpp` ${D}/${bindir} || true | ||
| 37 | rm ${D}/${datadir}/opencv/samples/`basename $i .cpp` || true | ||
| 38 | done | ||
| 39 | } | ||
| 40 | |||
| 41 | FILES_${PN}-dev += "${datadir}/opencv/samples/*.c* ${datadir}/opencv/samples/*.vcp* ${datadir}/opencv/samples/build*" | ||
| 42 | FILES_${PN} += "${bindir} ${datadir}/opencv" | ||
