summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/opencv/opencv-samples_cvs.bb9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/opencv/opencv-samples_cvs.bb b/packages/opencv/opencv-samples_cvs.bb
index e9b9ed0c0e..0490f8b015 100644
--- a/packages/opencv/opencv-samples_cvs.bb
+++ b/packages/opencv/opencv-samples_cvs.bb
@@ -4,7 +4,7 @@ SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
-PR = "r1"
+PR = "r2"
DEPENDS = "opencv"
@@ -15,19 +15,20 @@ PV = "1.0.0+cvs${SRCDATE}"
S = "${WORKDIR}/opencv"
-do_compile() {
+do_install() {
cd samples/c
install -d ${D}/${bindir}
for i in *.c; do
echo "compiling $i"
- ${CXX} -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`;
+ ${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} -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;
+ ${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}"