vcpkg/ports/ffnvcodec/build.sh
Marc Bertola 78a2116a4a
[ffmpeg] Add NVIDIA Codec feature for Windows and Linux (#9171)
* Add NVIDIA Codec support for Windows, Linux and Linux for Tegra

* [ffnvcodec] Fix typos, add/remove comments

* Bump nvcodec version to 9.1.23.1

* Update version number as per change request

* Use PORT variable instead of hardcoded portname

* Identify the release the hash pertains to

* Find nvcodec in 'installed' instead of 'packages'

* Force FFmpeg to look for nvcodec headers in the installed directory instead of /usr/lib/pkgconfig.

* Use p option on cygpath to convert full path in case it contains more than one entry
2020-03-24 13:00:09 -07:00

19 lines
328 B
Bash

#!/usr/bin/bash
# Deploys the ffnvcodec.pc file to the MSYS rootfs so that pkgconfig can find it.
set -e
export PATH=/usr/bin:$PATH
SOURCE_PATH="$1"
CURRENT_PACKAGES_DIR="$2"
pushd ${SOURCE_PATH}
# Create ffnvcodec.pc
make PREFIX=${CURRENT_PACKAGES_DIR}
make install PREFIX=${CURRENT_PACKAGES_DIR}
popd