blob: cf9cbc39a13379b517f64641bea07a340c114502 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Camera fisheye calibration tool"
2LICENSE = "MediaTekProprietary"
3
4DEPENDS += " opencv rpm-native"
5RDEPENDS_${PN} += " opencv"
6
7inherit workonsrc
8#inherit pkgconfig cmake
9
10SRC_BUILD = "${TOPDIR}/../src/multimedia/camera-calibration/camera_calibration_iab"
11WORKONSRC = "${SRC_BUILD}"
12SRC_URI = "file://in_VID5.xml \
13 file://VID5.xml \
14 "
15
16inherit ${@'pkgconfig' if os.path.exists("${SRC_BUILD}") else ''}
17inherit ${@'cmake' if os.path.exists("${SRC_BUILD}") else ''}
18
19do_install () {
20 if [ -e '${SRC_BUILD}' ]; then
21 install -d ${D}${bindir}
22 install -m 0755 ./fisheye ${D}${bindir}
23
24 else
25 oe_runmake PREFIX="${prefix}" DESTDIR="${D}" install
26 fi
27
28 install -d ${D}${datadir}/fisheye/training_data
29 install -m 644 ${WORKDIR}/in_VID5.xml ${D}${datadir}/fisheye/training_data
30 install -m 644 ${WORKDIR}/VID5.xml ${D}${datadir}/fisheye/training_data
31}
32
33INSANE_SKIP_${PN} += "already-stripped"
34FILES_${PN} += "${datadir}/fisheye/training_data/VID5.xml \
35 ${datadir}/fisheye/training_data/in_VID5.xml"