#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## host-libjpeg-9d: host install ##########"
cd /home/ych/rk3568/buildroot
PATH="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib/pkgconfig:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/pkgconfig"  /usr/bin/make -j21 install -C /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/host-libjpeg-9d/
cd /home/ych/rk3568/buildroot
/usr/bin/install -D -m 0644 package/libjpeg/libjpeg.pc.in /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/usr/lib/pkgconfig/libjpeg.pc
version=`sed -e '/^PACKAGE_VERSION/!d;s/PACKAGE_VERSION = \(.*\)/\1/' /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/host-libjpeg-9d/Makefile` ; /bin/sed -i -e "s/@PACKAGE_VERSION@/${version}/" /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/usr/lib/pkgconfig/libjpeg.pc
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/info/dir
