Clean up variant system
This commit is contained in:
parent
8eeff4a85d
commit
6d69575f50
14 changed files with 22 additions and 37 deletions
1
build.sh
1
build.sh
|
@ -15,7 +15,6 @@ get_output() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
source "variants/${VARIANT}.sh"
|
|
||||||
source "variants/${TARGET}-${VARIANT}.sh"
|
source "variants/${TARGET}-${VARIANT}.sh"
|
||||||
|
|
||||||
export FFBUILD_PREFIX="$(docker run --rm "$IMAGE" bash -c 'echo $FFBUILD_PREFIX')"
|
export FFBUILD_PREFIX="$(docker run --rm "$IMAGE" bash -c 'echo $FFBUILD_PREFIX')"
|
||||||
|
|
12
variants/default-install.sh
Normal file
12
variants/default-install.sh
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
package_variant() {
|
||||||
|
IN="$1"
|
||||||
|
OUT="$2"
|
||||||
|
|
||||||
|
mkdir -p "$OUT"/bin
|
||||||
|
cp "$IN"/bin/* "$OUT"/bin
|
||||||
|
|
||||||
|
mkdir -p "$OUT/doc"
|
||||||
|
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
|
||||||
|
}
|
|
@ -1,5 +0,0 @@
|
||||||
FF_CONFIGURE="--enable-gpl --enable-version3"
|
|
||||||
FF_CFLAGS=""
|
|
||||||
FF_CXXFLAGS=""
|
|
||||||
FF_LDFLAGS=""
|
|
||||||
GIT_BRANCH="release/4.3"
|
|
|
@ -1,5 +0,0 @@
|
||||||
FF_CONFIGURE="--enable-gpl --enable-version3"
|
|
||||||
FF_CFLAGS=""
|
|
||||||
FF_CXXFLAGS=""
|
|
||||||
FF_LDFLAGS=""
|
|
||||||
GIT_BRANCH="master"
|
|
|
@ -1,5 +0,0 @@
|
||||||
FF_CONFIGURE="--enable-version3"
|
|
||||||
FF_CFLAGS=""
|
|
||||||
FF_CXXFLAGS=""
|
|
||||||
FF_LDFLAGS=""
|
|
||||||
GIT_BRANCH="release/4.3"
|
|
|
@ -1,5 +0,0 @@
|
||||||
FF_CONFIGURE="--enable-version3"
|
|
||||||
FF_CFLAGS=""
|
|
||||||
FF_CXXFLAGS=""
|
|
||||||
FF_LDFLAGS=""
|
|
||||||
GIT_BRANCH="master"
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
|
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
|
||||||
|
GIT_BRANCH="release/4.3"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
|
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
|
||||||
|
|
|
@ -1,12 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
source "$(dirname "$BASH_SOURCE")"/default-install.sh
|
||||||
package_variant() {
|
source "$(dirname "$BASH_SOURCE")"/defaults-gpl.sh
|
||||||
IN="$1"
|
|
||||||
OUT="$2"
|
|
||||||
|
|
||||||
mkdir -p "$OUT"/bin
|
|
||||||
cp "$IN"/bin/* "$OUT"/bin
|
|
||||||
|
|
||||||
mkdir -p "$OUT/doc"
|
|
||||||
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
|
source "$(dirname "$BASH_SOURCE")"/win64-lgpl.sh
|
||||||
|
GIT_BRANCH="release/4.3"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
|
source "$(dirname "$BASH_SOURCE")"/win64-lgpl.sh
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
|
source "$(dirname "$BASH_SOURCE")"/default-install.sh
|
||||||
|
source "$(dirname "$BASH_SOURCE")"/defaults-lgpl.sh
|
||||||
|
|
Loading…
Reference in a new issue