summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-11-17 19:47:46 +0100
committerKoen Kooi <koen@openembedded.org>2008-11-17 19:47:46 +0100
commite9d084ab4c7e6c09c560fb5e310f6f8b739ed8c5 (patch)
tree6acf035cc877a02ee5e4dcadd00683ab02341404 /packages
parenteafbbdab8e9862901840f8127d5d08b1091a69f7 (diff)
opencv-samples: fix packages and ldflags
Diffstat (limited to 'packages')
-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}"