windows-install-shared.sh 636 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. package_variant() {
  3. IN="$1"
  4. OUT="$2"
  5. mkdir -p "$OUT"/bin
  6. cp "$IN"/bin/*.{exe,dll} "$OUT"/bin
  7. mkdir -p "$OUT"/lib
  8. cp "$IN"/bin/*.lib "$OUT"/lib
  9. cp "$IN"/lib/*.{def,dll.a} "$OUT"/lib
  10. mkdir -p "$OUT"/lib/pkgconfig
  11. cp -a "$IN"/lib/pkgconfig/*.pc "$OUT"/lib/pkgconfig
  12. sed -i \
  13. -e 's|^prefix=.*|prefix=${pcfiledir}/../..|' \
  14. -e 's|/ffbuild/prefix|${prefix}|' \
  15. -e '/Libs.private:/d' \
  16. "$OUT"/lib/pkgconfig/*.pc
  17. mkdir -p "$OUT"/include
  18. cp -r "$IN"/include/* "$OUT"/include
  19. mkdir -p "$OUT"/doc
  20. cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
  21. }