xuesong.jiang | ae1548e | 2022-05-06 16:38:46 +0800 | [diff] [blame] | 1 | SUMMARY = "amlogic gstreamer plugin for video sink" |
| 2 | |
| 3 | LICENSE = "AMLOGIC" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-meson/license/AMLOGIC;md5=6c70138441c57c9e1edb9fde685bd3c8" |
| 5 | |
| 6 | DEPENDS = " gstreamer1.0 gstreamer1.0-plugins-base " |
| 7 | |
| 8 | RDEPENDS_${PN} = " " |
| 9 | |
| 10 | LDFLAGS_append = " -L${STAGING_LIBDIR}/gstreamer-1.0 -Wl,-rpath -Wl,/usr/lib/gstreamer-1.0 " |
| 11 | |
| 12 | SRCREV ?= "${AUTOREV}" |
| 13 | PV = "${SRCPV}" |
| 14 | |
| 15 | S = "${WORKDIR}/git/gst-plugin-aml-v4l2-1.0" |
| 16 | EXTRA_OEMAKE = "CROSS=${TARGET_PREFIX} TARGET_DIR=${STAGING_DIR_TARGET} STAGING_DIR=${D} DESTDIR=${D}" |
| 17 | inherit autotools pkgconfig features_check |
| 18 | |
| 19 | do_configure_append() { |
| 20 | #Special patch |
| 21 | if [ -n "$(basename ${STAGING_DIR_TARGET} | grep -- lib32)" ]; then |
| 22 | rm -f ${STAGING_DIR_TARGET}/usr/include/linux/videodev2.h |
| 23 | ln -sf ../../../../recipe-sysroot/usr/include/linux-meson/include/linux/videodev2.h ${STAGING_DIR_TARGET}/usr/include/linux/ |
| 24 | else |
| 25 | cp ${STAGING_DIR_TARGET}/usr/include/linux-meson/include/linux/videodev2.h ${STAGING_DIR_TARGET}/usr/include/linux/ |
| 26 | fi |
| 27 | } |
| 28 | |
| 29 | FILES_${PN} += "/usr/lib/gstreamer-1.0/*" |
| 30 | INSANE_SKIP_${PN} = "ldflags dev-so " |
| 31 | INHIBIT_PACKAGE_STRIP = "1" |
| 32 | INHIBIT_SYSROOT_STRIP = "1" |
| 33 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |