| DESCRIPTION = "Camera fisheye calibration tool" |
| LICENSE = "MediaTekProprietary" |
| |
| DEPENDS += " opencv rpm-native" |
| RDEPENDS_${PN} += " opencv" |
| |
| inherit workonsrc |
| #inherit pkgconfig cmake |
| |
| SRC_BUILD = "${TOPDIR}/../src/multimedia/camera-calibration/camera_calibration_iab" |
| WORKONSRC = "${SRC_BUILD}" |
| SRC_URI = "file://in_VID5.xml \ |
| file://VID5.xml \ |
| " |
| |
| inherit ${@'pkgconfig' if os.path.exists("${SRC_BUILD}") else ''} |
| inherit ${@'cmake' if os.path.exists("${SRC_BUILD}") else ''} |
| |
| do_install () { |
| if [ -e '${SRC_BUILD}' ]; then |
| install -d ${D}${bindir} |
| install -m 0755 ./fisheye ${D}${bindir} |
| |
| else |
| oe_runmake PREFIX="${prefix}" DESTDIR="${D}" install |
| fi |
| |
| install -d ${D}${datadir}/fisheye/training_data |
| install -m 644 ${WORKDIR}/in_VID5.xml ${D}${datadir}/fisheye/training_data |
| install -m 644 ${WORKDIR}/VID5.xml ${D}${datadir}/fisheye/training_data |
| } |
| |
| INSANE_SKIP_${PN} += "already-stripped" |
| FILES_${PN} += "${datadir}/fisheye/training_data/VID5.xml \ |
| ${datadir}/fisheye/training_data/in_VID5.xml" |