build: add license file to archives

This commit is contained in:
bastimeyer 2021-08-26 08:31:30 +02:00 committed by BtbN
parent 3716c203b3
commit 353ee9e29c
7 changed files with 9 additions and 0 deletions

View file

@ -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"

View file

@ -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

View file

@ -3,3 +3,4 @@ FF_CFLAGS=""
FF_CXXFLAGS="" FF_CXXFLAGS=""
FF_LDFLAGS="" FF_LDFLAGS=""
GIT_BRANCH="master" GIT_BRANCH="master"
LICENSE_FILE="COPYING.GPLv3"

View file

@ -3,3 +3,4 @@ FF_CFLAGS=""
FF_CXXFLAGS="" FF_CXXFLAGS=""
FF_LDFLAGS="" FF_LDFLAGS=""
GIT_BRANCH="master" GIT_BRANCH="master"
LICENSE_FILE="COPYING.LGPLv3"

View file

@ -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=""

View 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=""

View 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=""