mirror of
https://github.com/asticode/go-astiav.git
synced 2025-12-24 13:08:00 +08:00
15 lines
357 B
Makefile
15 lines
357 B
Makefile
version=
|
|
srcPath=
|
|
patchPath=
|
|
|
|
install-ffmpeg:
|
|
rm -rf $(srcPath)
|
|
mkdir -p $(srcPath)
|
|
cd $(srcPath) && git clone https://github.com/FFmpeg/FFmpeg .
|
|
cd $(srcPath) && git checkout $(version)
|
|
ifneq "" "$(patchPath)"
|
|
cd $(srcPath) && git apply $(patchPath)
|
|
endif
|
|
cd $(srcPath) && ./configure --prefix=..
|
|
cd $(srcPath) && make
|
|
cd $(srcPath) && make install
|