build: add license file to archives
This commit is contained in:
parent
3716c203b3
commit
353ee9e29c
7 changed files with 9 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -81,6 +81,8 @@ BUILD_NAME="ffmpeg-$(./ffbuild/ffmpeg/ffbuild/version.sh ffbuild/ffmpeg)-${TARGE
|
||||||
mkdir -p "ffbuild/pkgroot/$BUILD_NAME"
|
mkdir -p "ffbuild/pkgroot/$BUILD_NAME"
|
||||||
package_variant ffbuild/prefix "ffbuild/pkgroot/$BUILD_NAME"
|
package_variant ffbuild/prefix "ffbuild/pkgroot/$BUILD_NAME"
|
||||||
|
|
||||||
|
[[ -n "$LICENSE_FILE" ]] && cp "ffbuild/ffmpeg/$LICENSE_FILE" "ffbuild/pkgroot/$BUILD_NAME/LICENSE.txt"
|
||||||
|
|
||||||
cd ffbuild/pkgroot
|
cd ffbuild/pkgroot
|
||||||
if [[ "${TARGET}" == win* ]]; then
|
if [[ "${TARGET}" == win* ]]; then
|
||||||
OUTPUT_FNAME="${BUILD_NAME}.zip"
|
OUTPUT_FNAME="${BUILD_NAME}.zip"
|
||||||
|
|
|
@ -14,6 +14,8 @@ if ! [[ -f "variants/${TARGET}-${VARIANT}.sh" ]]; then
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LICENSE_FILE="COPYING.LGPLv2.1"
|
||||||
|
|
||||||
ADDINS=()
|
ADDINS=()
|
||||||
ADDINS_STR=""
|
ADDINS_STR=""
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
|
|
|
@ -3,3 +3,4 @@ FF_CFLAGS=""
|
||||||
FF_CXXFLAGS=""
|
FF_CXXFLAGS=""
|
||||||
FF_LDFLAGS=""
|
FF_LDFLAGS=""
|
||||||
GIT_BRANCH="master"
|
GIT_BRANCH="master"
|
||||||
|
LICENSE_FILE="COPYING.GPLv3"
|
||||||
|
|
|
@ -3,3 +3,4 @@ FF_CFLAGS=""
|
||||||
FF_CXXFLAGS=""
|
FF_CXXFLAGS=""
|
||||||
FF_LDFLAGS=""
|
FF_LDFLAGS=""
|
||||||
GIT_BRANCH="master"
|
GIT_BRANCH="master"
|
||||||
|
LICENSE_FILE="COPYING.LGPLv3"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")"/linux64-gpl.sh
|
source "$(dirname "$BASH_SOURCE")"/linux64-gpl.sh
|
||||||
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
||||||
|
LICENSE_FILE=""
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")"/win32-gpl.sh
|
source "$(dirname "$BASH_SOURCE")"/win32-gpl.sh
|
||||||
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
||||||
|
LICENSE_FILE=""
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
|
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
|
||||||
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
FF_CONFIGURE="--enable-nonfree $FF_CONFIGURE"
|
||||||
|
LICENSE_FILE=""
|
||||||
|
|
Loading…
Reference in a new issue