#!/bin/sh

. config/options

$SCRIPTS/install zlib

mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/libavcodec/libavcodec.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/libavformat/libavformat.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/libavutil/libavutil.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/libswscale/libswscale.so.* $INSTALL/usr/lib
cp -P $PKG_BUILD/libpostproc/libpostproc.so.* $INSTALL/usr/lib
cp -P $PKG_BUILD/libswscale/libswscale.so.*  $INSTALL/usr/lib

if [ "$DEVTOOLS" = "yes" ]; then
  mkdir -p $INSTALL/usr/bin
  cp -P $PKG_BUILD/ffmpeg $INSTALL/usr/bin
  cp -P $PKG_BUILD/libavdevice/libavdevice.so.* $INSTALL/usr/lib
fi
