diff options
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 | 39 |
1 files changed, 39 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 000000000..9d862fe91 --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv-samples_2.4.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "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 | SRCREV = "6fae07ba8867b8fd2c53344a774aab669afa7c5e" | ||
11 | SRC_URI = "git://github.com/Itseez/opencv.git;branch=2.4 \ | ||
12 | " | ||
13 | PV = "2.4.3+git${SRCPV}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | do_install() { | ||
18 | cd samples/c | ||
19 | install -d ${D}/${bindir} | ||
20 | install -d ${D}/${datadir}/opencv/samples | ||
21 | |||
22 | cp * ${D}/${datadir}/opencv/samples || true | ||
23 | |||
24 | for i in *.c; do | ||
25 | echo "compiling $i" | ||
26 | ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv` || true | ||
27 | install -m 0755 `basename $i .c` ${D}/${bindir} || true | ||
28 | rm ${D}/${datadir}/opencv/samples/`basename $i .c` || true | ||
29 | done | ||
30 | for i in *.cpp; do | ||
31 | echo "compiling $i" | ||
32 | ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv` || true | ||
33 | install -m 0755 `basename $i .cpp` ${D}/${bindir} || true | ||
34 | rm ${D}/${datadir}/opencv/samples/`basename $i .cpp` || true | ||
35 | done | ||
36 | } | ||
37 | |||
38 | FILES_${PN}-dev += "${datadir}/opencv/samples/*.c* ${datadir}/opencv/samples/*.vcp* ${datadir}/opencv/samples/build*" | ||
39 | FILES_${PN} += "${bindir} ${datadir}/opencv" | ||