rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Camera fisheye calibration tool" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | |
| 4 | DEPENDS += " opencv rpm-native" |
| 5 | RDEPENDS_${PN} += " opencv" |
| 6 | |
| 7 | inherit workonsrc |
| 8 | #inherit pkgconfig cmake |
| 9 | |
| 10 | SRC_BUILD = "${TOPDIR}/../src/multimedia/camera-calibration/camera_calibration_iab" |
| 11 | WORKONSRC = "${SRC_BUILD}" |
| 12 | SRC_URI = "file://in_VID5.xml \ |
| 13 | file://VID5.xml \ |
| 14 | " |
| 15 | |
| 16 | inherit ${@'pkgconfig' if os.path.exists("${SRC_BUILD}") else ''} |
| 17 | inherit ${@'cmake' if os.path.exists("${SRC_BUILD}") else ''} |
| 18 | |
| 19 | do_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 | |
| 33 | INSANE_SKIP_${PN} += "already-stripped" |
| 34 | FILES_${PN} += "${datadir}/fisheye/training_data/VID5.xml \ |
| 35 | ${datadir}/fisheye/training_data/in_VID5.xml" |