summaryrefslogtreecommitdiff
path: root/packages/opencv/opencv-samples_cvs.bb
blob: 0490f8b015126fa00da8b11ca481b0e9859d9e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "Opencv : The Open Computer Vision Library"
HOMEPAGE = "http://sourceforge.net/projects/opencvlibrary"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"

PR = "r2"

DEPENDS = "opencv"

SRC_URI = "cvs://anonymous@opencvlibrary.cvs.sourceforge.net/cvsroot/opencvlibrary;module=opencv \
"
SRCDATE = "20081115"
PV = "1.0.0+cvs${SRCDATE}"

S = "${WORKDIR}/opencv"

do_install() {
    cd samples/c
	install -d ${D}/${bindir}

    for i in *.c; do
        echo "compiling $i"
        ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`;
		install -m 0755 `basename $i .c` ${D}/${bindir}
	done
    for i in *.cpp; do
        echo "compiling $i"
        ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;
		install -m 0755 `basename $i .cpp` ${D}/${bindir}    
	done
}

FILES_${PN} += "${bindir}"