Compare commits
269 commits
autobuild-
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
0a5e19d524 | ||
|
336c8909c8 | ||
|
c07b573acd | ||
|
2fe73c5aab | ||
|
683e3a4dc9 | ||
|
7a5bf0c0bb | ||
|
a7ae13efb7 | ||
|
6c86fdaad0 | ||
|
49684930d2 | ||
|
71c3a919b8 | ||
|
20172ca00a | ||
|
0e9c6f8e4d | ||
|
0071c270bb | ||
|
9465728b3b | ||
|
547eee9db4 | ||
|
be992fa253 | ||
|
0598fb3dba | ||
|
73f17b7213 | ||
|
91b977f84d | ||
|
8c336b4dec | ||
|
3e75fcc0e4 | ||
|
61debb00e5 | ||
|
c3fec1bd50 | ||
|
78191a73a6 | ||
|
d75466340a | ||
|
1ae971430e | ||
|
a197b3f9ca | ||
|
915d6e0afa | ||
|
ccda3224ff | ||
|
67723fc5c2 | ||
|
0d1bf557c8 | ||
|
9f930118ab | ||
|
94dcf28fad | ||
|
c02dbf2722 | ||
|
5ab621cb66 | ||
|
e2acf44a52 | ||
|
8a04456211 | ||
|
341ed9f992 | ||
|
5e54b68d5e | ||
|
ccbc205c57 | ||
|
01980b12aa | ||
|
a1fdcf77ae | ||
|
521d708a8e | ||
|
13129c7061 | ||
|
1b3fd62fbf | ||
|
ffa7c41e0f | ||
|
c6c7051948 | ||
|
b78f798c9f | ||
|
3aaec67422 | ||
|
f0568e9a9a | ||
|
a6e38b38fd | ||
|
193f55691b | ||
|
0e5f512f8a | ||
|
1a3257f655 | ||
|
75f7b8e218 | ||
|
7e91dfcaa5 | ||
|
2bb8f6d5e0 | ||
|
74a2af1977 | ||
|
3183ec99b3 | ||
|
60ce7242b7 | ||
|
583334e450 | ||
|
0d2e5c7051 | ||
|
98b1aa8b2d | ||
|
b1fcac316e | ||
|
12473a216f | ||
|
e676b22a71 | ||
|
ef8c6edf64 | ||
|
d89d75ea4a | ||
|
ab4299b595 | ||
|
6eab5153f5 | ||
|
8dac144f1c | ||
|
d88a84b308 | ||
|
37d82154fd | ||
|
d74737d76b | ||
|
e6e28d4704 | ||
|
c83db5db6a | ||
|
cca0f227ac | ||
|
81c3431e57 | ||
|
e7853fda68 | ||
|
3bb2b17e48 | ||
|
f395efe8a1 | ||
|
c03ab7a812 | ||
|
fd4fac0ec7 | ||
|
bbad7e7057 | ||
|
fe0e366d93 | ||
|
009c516860 | ||
|
ec535f414f | ||
|
2f0d9dbf8b | ||
|
1f74f0a60a | ||
|
782f731350 | ||
|
41079cb7bf | ||
|
18e540f47d | ||
|
768ded56fa | ||
|
cf6565ec66 | ||
|
e768af40fb | ||
|
f5cf1599d6 | ||
|
6f44be6038 | ||
|
7028cb01c4 | ||
|
1896b0d138 | ||
|
ef36e7e00d | ||
|
86e25e0657 | ||
|
2c3417550c | ||
|
8fff2b2a8e | ||
|
f83799c36f | ||
|
869e257511 | ||
|
b6b1d68d83 | ||
|
37f2a44634 | ||
|
15babf288b | ||
|
5bd1b6a1e1 | ||
|
ce62fe2fee | ||
|
3b673c5169 | ||
|
36f1ff77a4 | ||
|
bce41a5cce | ||
|
17c294f25c | ||
|
22440fc549 | ||
|
8bc793644e | ||
|
7bb9176330 | ||
|
bd13b3b07d | ||
|
7d31bb2d06 | ||
|
7689f421fd | ||
|
9210cc598d | ||
|
be519d8dc5 | ||
|
0c02e8fe66 | ||
|
d7fe570326 | ||
|
c9a6797b95 | ||
|
843642ae9b | ||
|
c406209c93 | ||
|
d4de0513b5 | ||
|
512e0fe9b4 | ||
|
5be16c7672 | ||
|
8c1fe93e89 | ||
|
3ccb2f20b4 | ||
|
11741adccb | ||
|
21f5e861bb | ||
|
c7a73215c6 | ||
|
d1b90729b6 | ||
|
fcc7e6d9fb | ||
|
ab020724b4 | ||
|
dfdfc29311 | ||
|
64cc9bb50d | ||
|
975fd8d3fd | ||
|
13f25e0993 | ||
|
2c02757377 | ||
|
ce66686c5a | ||
|
f8f6de13db | ||
|
c065001c71 | ||
|
801aa94c0e | ||
|
20ef083828 | ||
|
3ad7540a02 | ||
|
d1dd644b80 | ||
|
b7ca4432e1 | ||
|
d726824cf5 | ||
|
5339e22d26 | ||
|
a74783a375 | ||
|
42202d95bc | ||
|
38fccdcd44 | ||
|
b9a3f7ffce | ||
|
a4c1851a86 | ||
|
f7882ac230 | ||
|
ad7773b276 | ||
|
8a44955e4c | ||
|
9c766b0b33 | ||
|
f29d3b5662 | ||
|
cfd9fde44f | ||
|
7730280bd8 | ||
|
26daa8f380 | ||
|
7407f42884 | ||
|
03f047df3a | ||
|
1e5dc2ed56 | ||
|
a807ae4523 | ||
|
84385814bd | ||
|
e57447b1c8 | ||
|
76aacb4b85 | ||
|
7f6eef0e5f | ||
|
dcbf2a77f3 | ||
|
c68820877b | ||
|
8906c0968c | ||
|
c9635455a0 | ||
|
d7a253b168 | ||
|
42174778e7 | ||
|
48f83820fb | ||
|
0d5fea8a18 | ||
|
3be839badf | ||
|
8573a684fb | ||
|
22eebe8ea6 | ||
|
ce9add44fb | ||
|
6fdf7bf4fa | ||
|
ee8ea9129e | ||
|
89c0e1b825 | ||
|
e176c33861 | ||
|
71b37989a5 | ||
|
aef227430c | ||
|
07084d6909 | ||
|
0795443336 | ||
|
787aa9ab39 | ||
|
06e3063275 | ||
|
22719ab0c0 | ||
|
760b8c3dec | ||
|
dd3eefc083 | ||
|
f0fba7b6b0 | ||
|
f899933422 | ||
|
0db921593e | ||
|
915cbaa276 | ||
|
015beac49a | ||
|
c4ec85d577 | ||
|
530851e039 | ||
|
d45fc4a498 | ||
|
43be1babc3 | ||
|
8c306d93d6 | ||
|
48671665e3 | ||
|
4d6aadd759 | ||
|
aae6f518b8 | ||
|
c8d2ea0cb6 | ||
|
2178fdcce9 | ||
|
30c0d7cae8 | ||
|
bf95872731 | ||
|
c4b62f47f3 | ||
|
fcf104f942 | ||
|
7320c777e8 | ||
|
df8e5bf96f | ||
|
d442ab7a0d | ||
|
7cf9552af5 | ||
|
31f67b5dba | ||
|
78895a8c49 | ||
|
ba9757634a | ||
|
20d4bf3ef7 | ||
|
db4e36b8f1 | ||
|
490e081b18 | ||
|
b773ed8d71 | ||
|
a209c6b6c5 | ||
|
1571708edc | ||
|
c6b1f3a439 | ||
|
60c5fd666d | ||
|
1fcefa4a08 | ||
|
3938a661be | ||
|
4bb38fd65a | ||
|
1466a4d8de | ||
|
5b6c9e28b3 | ||
|
6d3ce02bf7 | ||
|
12d1805f31 | ||
|
5aa01f37e3 | ||
|
3efcb24f50 | ||
|
bdf1cc507a | ||
|
71994e145a | ||
|
d7aed6010e | ||
|
7c29552e05 | ||
|
611b7a694c | ||
|
8ccc3a04d5 | ||
|
6c878d3f15 | ||
|
2d6767df32 | ||
|
cf8de5ee5e | ||
|
31dadc6444 | ||
|
b0416c8f36 | ||
|
d1d43c42b0 | ||
|
b84fcf068c | ||
|
c26651fc14 | ||
|
482c7d7987 | ||
|
4b7c1ac9f9 | ||
|
634a3f68ac | ||
|
78645acdd7 | ||
|
1cd3f207c5 | ||
|
176e853bbe | ||
|
6328ecc7fc | ||
|
7d78603a11 | ||
|
6a3324e258 | ||
|
b77d839e60 | ||
|
99ecadd76a | ||
|
cbb3adabf7 | ||
|
ecc6f8063b |
167 changed files with 5772 additions and 1175 deletions
2
.github/buildkit.toml
vendored
Normal file
2
.github/buildkit.toml
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[worker.oci]
|
||||||
|
max-parallelism = 4
|
240
.github/workflows/build.yml
vendored
240
.github/workflows/build.yml
vendored
|
@ -5,130 +5,261 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
repository_dispatch:
|
workflow_dispatch:
|
||||||
types: [build]
|
inputs:
|
||||||
|
doRelease:
|
||||||
|
description: 'Publish new release'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
buildOnly:
|
||||||
|
description: 'Only build ffmpeg'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * *'
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
|
HAVE_CLEANUP_PAT: ${{ secrets.CLEANUP_PAT != '' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre_check:
|
||||||
|
name: Pre Checks
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Repo Check
|
||||||
|
run: |
|
||||||
|
if [[ "$GITHUB_REPOSITORY" != "BtbN/FFmpeg-Builds" ]]; then
|
||||||
|
echo "When forking this repository to make your own builds, you have to adjust this check."
|
||||||
|
echo "When doing so make sure to randomize the scheduled cron time above, in order to spread out the various build times as much as possible."
|
||||||
|
echo "This has been put in place due to the enormous amounts of traffic hundreds/thousands of parallel builds can cause on external infrastructure."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
build_base:
|
build_base:
|
||||||
name: Build base image
|
name: Build base image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
|
needs: pre_check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: Install buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
config: .github/buildkit.toml
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
- name: Image Name
|
- name: Image Name
|
||||||
id: imagename
|
id: imagename
|
||||||
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base:latest"
|
run: |
|
||||||
- name: Build base image
|
IMG="${GITHUB_REPOSITORY,,}/base"
|
||||||
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} images/base
|
DLIMG="${GITHUB_REPOSITORY,,}/dl_cache"
|
||||||
- name: Push base image
|
echo "name=ghcr.io/${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
run: docker push ${{ steps.imagename.outputs.name }}
|
echo "rawname=${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
|
echo "dlname=ghcr.io/${DLIMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
|
echo "dlrawname=${DLIMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
|
- name: Stop Commands
|
||||||
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
|
- name: Build target base image
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: images/base
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
- name: Generate download cache Dockerfile
|
||||||
|
id: dl_cache
|
||||||
|
run: |
|
||||||
|
./generate.sh dl only
|
||||||
|
echo "dltagname=$(./util/get_dl_cache_tag.sh)" >> $GITHUB_OUTPUT
|
||||||
|
cat Dockerfile.dl
|
||||||
|
- name: Build download cache image
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.dl
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.imagename.outputs.dlname }}:${{ steps.dl_cache.outputs.dltagname }}
|
||||||
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.dlname }}:cache
|
||||||
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.dlname }}:cache
|
||||||
|
- name: Cleanup
|
||||||
|
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
||||||
|
continue-on-error: true
|
||||||
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CLEANUP_PAT }}
|
||||||
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
|
repository_owner: ${{ github.repository_owner }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
owner_type: user
|
||||||
|
untagged_only: true
|
||||||
|
- name: Cleanup Download Cache
|
||||||
|
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
||||||
|
continue-on-error: true
|
||||||
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CLEANUP_PAT }}
|
||||||
|
package_name: ${{ steps.imagename.outputs.dlrawname }}
|
||||||
|
repository_owner: ${{ github.repository_owner }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
owner_type: user
|
||||||
|
untagged_only: false
|
||||||
|
keep_latest: 20
|
||||||
build_target_bases:
|
build_target_bases:
|
||||||
name: Build target base image
|
name: Build target base image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
needs: build_base
|
needs: build_base
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [win64,linux64]
|
target: [win64,linux64,linuxarm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: Install buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
config: .github/buildkit.toml
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
- name: Image Name
|
- name: Image Name
|
||||||
id: imagename
|
id: imagename
|
||||||
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base-${{ matrix.target }}:latest"
|
run: |
|
||||||
|
IMG="${GITHUB_REPOSITORY,,}/base-${{ matrix.target }}"
|
||||||
|
echo "name=ghcr.io/${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
|
echo "rawname=${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
|
echo "gh_repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
|
||||||
|
- name: Stop Commands
|
||||||
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
- name: Build target base image
|
- name: Build target base image
|
||||||
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --build-arg GH_REPO=${GITHUB_REPOSITORY,,} --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} images/base-${{ matrix.target }}
|
uses: docker/build-push-action@v3
|
||||||
- name: Push target base image
|
with:
|
||||||
run: docker push ${{ steps.imagename.outputs.name }}
|
context: images/base-${{ matrix.target }}
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
build-args: |
|
||||||
|
GH_REPO=ghcr.io/${{ steps.imagename.outputs.gh_repo }}
|
||||||
|
- name: Cleanup
|
||||||
|
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
||||||
|
continue-on-error: true
|
||||||
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CLEANUP_PAT }}
|
||||||
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
|
repository_owner: ${{ github.repository_owner }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
owner_type: user
|
||||||
|
untagged_only: true
|
||||||
build_targets:
|
build_targets:
|
||||||
name: Build target-variant image
|
name: Build target-variant image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
needs: build_target_bases
|
needs: build_target_bases
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [win64,linux64]
|
target: [win64,linux64,linuxarm64]
|
||||||
variant: [gpl,lgpl,gpl 4.4,lgpl 4.4,gpl-shared,lgpl-shared,gpl-shared 4.4,lgpl-shared 4.4]
|
variant: [gpl,lgpl,gpl 4.4,gpl 5.1,gpl 6.0,lgpl 4.4,lgpl 5.1,lgpl 6.0,gpl-shared,lgpl-shared,gpl-shared 4.4,gpl-shared 5.1,gpl-shared 6.0,lgpl-shared 4.4,lgpl-shared 5.1,lgpl-shared 6.0]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Install buildx
|
- name: Install buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Generate Dockerfile
|
with:
|
||||||
run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }}
|
config: .github/buildkit.toml
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
- name: Generate Dockerfile
|
||||||
|
run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
- name: Image Name
|
- name: Image Name
|
||||||
id: imagename
|
id: imagename
|
||||||
run: |
|
run: |
|
||||||
IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}"
|
IMG="${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}"
|
||||||
echo "::set-output name=name::${IMG/ /-}:latest"
|
echo "name=ghcr.io/${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=cache_name::${IMG/ /-}:cache"
|
echo "rawname=${IMG/ /-}" >> $GITHUB_OUTPUT
|
||||||
- name: Build variant image
|
- name: Stop Commands
|
||||||
run: |
|
run: T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
docker buildx build \
|
- name: Build target base image
|
||||||
--pull \
|
uses: docker/build-push-action@v3
|
||||||
--tag ${{ steps.imagename.outputs.name }} \
|
with:
|
||||||
--cache-to=type=registry,mode=max,ref=${{ steps.imagename.outputs.cache_name }} \
|
context: .
|
||||||
--cache-from=type=registry,ref=${{ steps.imagename.outputs.cache_name }} \
|
pull: true
|
||||||
--output=type=image,push=true,name=${{ steps.imagename.outputs.name }} \
|
push: true
|
||||||
.
|
tags: ${{ steps.imagename.outputs.name }}:latest
|
||||||
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
|
- name: Cleanup
|
||||||
|
if: ${{ env.HAVE_CLEANUP_PAT == 'true' }}
|
||||||
|
continue-on-error: true
|
||||||
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CLEANUP_PAT }}
|
||||||
|
package_name: ${{ steps.imagename.outputs.rawname }}
|
||||||
|
repository_owner: ${{ github.repository_owner }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
owner_type: user
|
||||||
|
untagged_only: true
|
||||||
build_ffmpeg:
|
build_ffmpeg:
|
||||||
name: Build ffmpeg
|
name: Build ffmpeg
|
||||||
|
if: ${{ ( github.event.inputs.buildOnly == 'true' && !cancelled() ) || success() }}
|
||||||
needs: build_targets
|
needs: build_targets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [win64,linux64]
|
target: [win64,linux64,linuxarm64]
|
||||||
variant: [gpl,lgpl,gpl 4.4,lgpl 4.4,gpl-shared,lgpl-shared,gpl-shared 4.4,lgpl-shared 4.4]
|
variant: [gpl,lgpl,gpl 4.4,gpl 5.1,gpl 6.0,lgpl 4.4,lgpl 5.1,lgpl 6.0,gpl-shared,lgpl-shared,gpl-shared 4.4,gpl-shared 5.1,gpl-shared 6.0,lgpl-shared 4.4,lgpl-shared 5.1,lgpl-shared 6.0]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
- name: Build ffmpeg
|
- name: Build ffmpeg
|
||||||
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
run: |
|
||||||
|
T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
|
./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
name: ffmpeg
|
||||||
path: artifacts/*
|
path: artifacts/*
|
||||||
publish_release:
|
publish_release:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
if: github.event_name != 'push'
|
if: ${{ !cancelled() && ( github.event_name == 'schedule' || github.event.inputs.doRelease == 'true' ) && needs.build_ffmpeg.result == 'success' }}
|
||||||
needs: build_ffmpeg
|
needs: build_ffmpeg
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
name: ffmpeg
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
@ -136,10 +267,27 @@ jobs:
|
||||||
id: create_release
|
id: create_release
|
||||||
run: |
|
run: |
|
||||||
set -xe
|
set -xe
|
||||||
NAME="Auto-Build $(date +'%Y-%m-%d %H:%M')"
|
shopt -s nullglob
|
||||||
|
RELDATE="$(date +'%Y-%m-%d %H:%M')"
|
||||||
|
NAME="Auto-Build $RELDATE"
|
||||||
TAGNAME="autobuild-$(date +'%Y-%m-%d-%H-%M')"
|
TAGNAME="autobuild-$(date +'%Y-%m-%d-%H-%M')"
|
||||||
hub release create $(for a in artifacts/*.{zip,tar.xz}; do echo -a $a; done) -m "$NAME" -t "master" "$TAGNAME"
|
hub release create $(for a in artifacts/*.{zip,tar.xz}; do echo -a $a; done) -m "$NAME" -t "master" "$TAGNAME"
|
||||||
echo "::set-output name=tag_name::${TAGNAME}"
|
echo "tag_name=${TAGNAME}" >> $GITHUB_OUTPUT
|
||||||
|
echo "rel_date=${RELDATE}" >> $GITHUB_OUTPUT
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
- name: Update Latest
|
||||||
|
run: |
|
||||||
|
set -xe
|
||||||
|
shopt -s nullglob
|
||||||
|
mkdir latest_artifacts
|
||||||
|
./util/repack_latest.sh latest_artifacts artifacts/*.{zip,tar.xz}
|
||||||
|
NAME="Latest Auto-Build (${{ steps.create_release.outputs.rel_date }})"
|
||||||
|
TAGNAME="latest"
|
||||||
|
hub release delete "$TAGNAME" || true
|
||||||
|
git push --delete origin "$TAGNAME" || true
|
||||||
|
sleep 15
|
||||||
|
hub release create $(for a in latest_artifacts/*; do echo -a $a; done) -m "$NAME" -t "master" "$TAGNAME"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
- name: Update Wiki
|
- name: Update Wiki
|
||||||
|
|
26
.github/workflows/pr.yml
vendored
26
.github/workflows/pr.yml
vendored
|
@ -17,17 +17,35 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: [win64,linux64]
|
target: [win64,linux64,linuxarm64]
|
||||||
variant: [gpl,lgpl,gpl 4.4,lgpl 4.4,gpl-shared,lgpl-shared,gpl-shared 4.4,lgpl-shared 4.4]
|
variant: [lgpl,gpl 6.0,gpl 5.1,lgpl 6.0,lgpl 5.1,gpl-shared,lgpl-shared,gpl-shared 6.0,gpl-shared 5.1,lgpl-shared 6.0,lgpl-shared 5.1]
|
||||||
|
quickbuild: [1]
|
||||||
|
include:
|
||||||
|
- target: win64
|
||||||
|
variant: gpl
|
||||||
|
quickbuild: ''
|
||||||
|
- target: linux64
|
||||||
|
variant: gpl
|
||||||
|
quickbuild: ''
|
||||||
|
- target: linuxarm64
|
||||||
|
variant: gpl
|
||||||
|
quickbuild: ''
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: Install buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
config: .github/buildkit.toml
|
||||||
|
driver: docker
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }}
|
run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
|
env:
|
||||||
|
QUICKBUILD: ${{ matrix.quickbuild }}
|
||||||
- name: Build ffmpeg
|
- name: Build ffmpeg
|
||||||
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
name: ffmpeg
|
||||||
path: artifacts/*
|
path: artifacts/*
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
/Dockerfile
|
/Dockerfile*
|
||||||
/ffbuild/
|
/ffbuild/
|
||||||
/artifacts/
|
/artifacts/
|
||||||
|
/.cache/
|
||||||
|
|
26
README.md
26
README.md
|
@ -4,16 +4,21 @@ Static Windows (x86_64) and Linux (x86_64) Builds of ffmpeg master and latest re
|
||||||
|
|
||||||
Windows builds are targetting Windows 7 and newer.
|
Windows builds are targetting Windows 7 and newer.
|
||||||
|
|
||||||
Linux builds are targetting Ubuntu 16.04 (glibc-2.23 + linux-4.4) and anything more recent.
|
Linux (x86_64) builds are targetting Ubuntu 16.04 (glibc-2.23 + linux-4.4) and anything more recent.
|
||||||
|
|
||||||
|
Linux (arm64) builds are targetting Ubuntu 18.04 (glibc-2.27 + linux-4.15) and anything more recent.
|
||||||
|
|
||||||
## Auto-Builds
|
## Auto-Builds
|
||||||
|
|
||||||
Builds run daily at 12:00 UTC (or GitHubs idea of that time) and are automatically released on success.
|
Builds run daily at 12:00 UTC (or GitHubs idea of that time) and are automatically released on success.
|
||||||
|
|
||||||
|
**Auto-Builds run ONLY for win64 and linux(arm)64. There are no win32/x86 auto-builds, though you can produce win32 builds yourself following the instructions below.**
|
||||||
|
|
||||||
### Release Retention Policy
|
### Release Retention Policy
|
||||||
|
|
||||||
- The last build of each month is kept for two years.
|
- The last build of each month is kept for two years.
|
||||||
- The last 14 daily builds are kept.
|
- The last 14 daily builds are kept.
|
||||||
|
- The special "latest" build floats and provides consistent URLs always pointing to the latest build.
|
||||||
|
|
||||||
## Package List
|
## Package List
|
||||||
|
|
||||||
|
@ -29,11 +34,11 @@ Every file corresponds to its respective package.
|
||||||
|
|
||||||
### Build Image
|
### Build Image
|
||||||
|
|
||||||
* `./makeimage.sh target variant [addins]`
|
* `./makeimage.sh target variant [addin [addin] [addin] ...]`
|
||||||
|
|
||||||
### Build FFmpeg
|
### Build FFmpeg
|
||||||
|
|
||||||
* `./build.sh target variant [addins]`
|
* `./build.sh target variant [addin [addin] [addin] ...]`
|
||||||
|
|
||||||
On success, the resulting zip file will be in the `artifacts` subdir.
|
On success, the resulting zip file will be in the `artifacts` subdir.
|
||||||
|
|
||||||
|
@ -43,13 +48,22 @@ Available targets:
|
||||||
* `win64` (x86_64 Windows)
|
* `win64` (x86_64 Windows)
|
||||||
* `win32` (x86 Windows)
|
* `win32` (x86 Windows)
|
||||||
* `linux64` (x86_64 Linux, glibc>=2.23, linux>=4.4)
|
* `linux64` (x86_64 Linux, glibc>=2.23, linux>=4.4)
|
||||||
|
* `linuxarm64` (arm64 (aarch64) Linux, glibc>=2.27, linux>=4.15)
|
||||||
|
|
||||||
Available:
|
The linuxarm64 target will not build some dependencies due to lack of arm64 (aarch64) architecture support or cross-compiling restrictions.
|
||||||
|
|
||||||
|
* `davs2` and `xavs2`: aarch64 support is broken.
|
||||||
|
* `libmfx` and `libva`: Library for Intel QSV, so there is no aarch64 support.
|
||||||
|
|
||||||
|
Available variants:
|
||||||
* `gpl` Includes all dependencies, even those that require full GPL instead of just LGPL.
|
* `gpl` Includes all dependencies, even those that require full GPL instead of just LGPL.
|
||||||
* `lgpl` Lacking libraries that are GPL-only. Most prominently libx264 and libx265.
|
* `lgpl` Lacking libraries that are GPL-only. Most prominently libx264 and libx265.
|
||||||
|
* `nonfree` Includes fdk-aac in addition to all the dependencies of the gpl variant.
|
||||||
* `gpl-shared` Same as gpl, but comes with the libav* family of shared libs instead of pure static executables.
|
* `gpl-shared` Same as gpl, but comes with the libav* family of shared libs instead of pure static executables.
|
||||||
* `lgpl-shared` Same again, but with the lgpl set of dependencies.
|
* `lgpl-shared` Same again, but with the lgpl set of dependencies.
|
||||||
|
* `nonfree-shared` Same again, but with the nonfree set of dependencies.
|
||||||
|
|
||||||
All of those can be optionally combined with any combination of addins.
|
All of those can be optionally combined with any combination of addins:
|
||||||
* `4.4` to build from the 4.4 release branch instead of master.
|
* `4.4`/`5.0`/`5.1`/`6.0` to build from the respective release branch instead of master.
|
||||||
* `debug` to not strip debug symbols from the binaries. This increases the output size by about 250MB.
|
* `debug` to not strip debug symbols from the binaries. This increases the output size by about 250MB.
|
||||||
|
* `lto` build all dependencies and ffmpeg with -flto=auto (HIGHLY EXPERIMENTAL, broken for Windows, sometimes works for Linux)
|
||||||
|
|
2
addins/5.0.sh
Normal file
2
addins/5.0.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
GIT_BRANCH="release/5.0"
|
2
addins/5.1.sh
Normal file
2
addins/5.1.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
GIT_BRANCH="release/5.1"
|
2
addins/6.0.sh
Normal file
2
addins/6.0.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
GIT_BRANCH="release/6.0"
|
7
addins/lto.sh
Normal file
7
addins/lto.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
FF_CONFIGURE="$FF_CONFIGURE --enable-lto"
|
||||||
|
|
||||||
|
ffbuild_dockeraddin() {
|
||||||
|
to_df 'ENV CFLAGS="$CFLAGS -flto=auto" CXXFLAGS="$CXXFLAGS -flto=auto" LDFLAGS="$LDFLAGS -flto=auto"'
|
||||||
|
to_df 'ENV FFBUILD_TARGET_FLAGS="$FFBUILD_TARGET_FLAGS --ar=${FFBUILD_TOOLCHAIN}-gcc-ar --nm=${FFBUILD_TOOLCHAIN}-gcc-nm --ranlib=${FFBUILD_TOOLCHAIN}-gcc-ranlib"'
|
||||||
|
}
|
14
build.sh
14
build.sh
|
@ -50,6 +50,11 @@ rm -f "$TESTFILE"
|
||||||
rm -rf ffbuild
|
rm -rf ffbuild
|
||||||
mkdir ffbuild
|
mkdir ffbuild
|
||||||
|
|
||||||
|
FFMPEG_REPO="${FFMPEG_REPO:-https://github.com/FFmpeg/FFmpeg.git}"
|
||||||
|
FFMPEG_REPO="${FFMPEG_REPO_OVERRIDE:-$FFMPEG_REPO}"
|
||||||
|
GIT_BRANCH="${GIT_BRANCH:-master}"
|
||||||
|
GIT_BRANCH="${GIT_BRANCH_OVERRIDE:-$GIT_BRANCH}"
|
||||||
|
|
||||||
BUILD_SCRIPT="$(mktemp)"
|
BUILD_SCRIPT="$(mktemp)"
|
||||||
trap "rm -f -- '$BUILD_SCRIPT'" EXIT
|
trap "rm -f -- '$BUILD_SCRIPT'" EXIT
|
||||||
|
|
||||||
|
@ -58,9 +63,8 @@ cat <<EOF >"$BUILD_SCRIPT"
|
||||||
cd /ffbuild
|
cd /ffbuild
|
||||||
rm -rf ffmpeg prefix
|
rm -rf ffmpeg prefix
|
||||||
|
|
||||||
git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
|
git clone --filter=blob:none --branch='$GIT_BRANCH' '$FFMPEG_REPO' ffmpeg
|
||||||
cd ffmpeg
|
cd ffmpeg
|
||||||
git checkout $GIT_BRANCH
|
|
||||||
|
|
||||||
./configure --prefix=/ffbuild/prefix --pkg-config-flags="--static" \$FFBUILD_TARGET_FLAGS $FF_CONFIGURE \
|
./configure --prefix=/ffbuild/prefix --pkg-config-flags="--static" \$FFBUILD_TARGET_FLAGS $FF_CONFIGURE \
|
||||||
--extra-cflags='$FF_CFLAGS' --extra-cxxflags='$FF_CXXFLAGS' \
|
--extra-cflags='$FF_CFLAGS' --extra-cxxflags='$FF_CXXFLAGS' \
|
||||||
|
@ -86,16 +90,16 @@ package_variant ffbuild/prefix "ffbuild/pkgroot/$BUILD_NAME"
|
||||||
cd ffbuild/pkgroot
|
cd ffbuild/pkgroot
|
||||||
if [[ "${TARGET}" == win* ]]; then
|
if [[ "${TARGET}" == win* ]]; then
|
||||||
OUTPUT_FNAME="${BUILD_NAME}.zip"
|
OUTPUT_FNAME="${BUILD_NAME}.zip"
|
||||||
zip -9 -r "${ARTIFACTS_PATH}/${OUTPUT_FNAME}" "$BUILD_NAME"
|
docker run --rm -i $TTY_ARG "${UIDARGS[@]}" -v "${ARTIFACTS_PATH}":/out -v "${PWD}/${BUILD_NAME}":"/${BUILD_NAME}" -w / "$IMAGE" zip -9 -r "/out/${OUTPUT_FNAME}" "$BUILD_NAME"
|
||||||
else
|
else
|
||||||
OUTPUT_FNAME="${BUILD_NAME}.tar.xz"
|
OUTPUT_FNAME="${BUILD_NAME}.tar.xz"
|
||||||
tar cJf "${ARTIFACTS_PATH}/${OUTPUT_FNAME}" "$BUILD_NAME"
|
docker run --rm -i $TTY_ARG "${UIDARGS[@]}" -v "${ARTIFACTS_PATH}":/out -v "${PWD}/${BUILD_NAME}":"/${BUILD_NAME}" -w / "$IMAGE" tar cJf "/out/${OUTPUT_FNAME}" "$BUILD_NAME"
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
rm -rf ffbuild
|
rm -rf ffbuild
|
||||||
|
|
||||||
if [[ -n "$GITHUB_ACTIONS" ]]; then
|
if [[ -n "$GITHUB_ACTIONS" ]]; then
|
||||||
echo "::set-output name=build_name::${BUILD_NAME}"
|
echo "build_name=${BUILD_NAME}" >> "$GITHUB_OUTPUT"
|
||||||
echo "${OUTPUT_FNAME}" > "${ARTIFACTS_PATH}/${TARGET}-${VARIANT}${ADDINS_STR:+-}${ADDINS_STR}.txt"
|
echo "${OUTPUT_FNAME}" > "${ARTIFACTS_PATH}/${TARGET}-${VARIANT}${ADDINS_STR:+-}${ADDINS_STR}.txt"
|
||||||
fi
|
fi
|
||||||
|
|
85
generate.sh
85
generate.sh
|
@ -1,34 +1,95 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -xe
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
source util/vars.sh
|
source util/vars.sh
|
||||||
|
|
||||||
rm -f Dockerfile
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
|
rm -f Dockerfile Dockerfile.{dl,final,dl.final}
|
||||||
|
|
||||||
layername() {
|
layername() {
|
||||||
printf "layer-"
|
printf "layer-"
|
||||||
basename "$1" | sed 's/.sh$//'
|
basename "$1" | sed 's/.sh$//'
|
||||||
}
|
}
|
||||||
|
|
||||||
exec_dockerstage() {
|
|
||||||
SCRIPT="$1"
|
|
||||||
(
|
|
||||||
SELF="$SCRIPT"
|
|
||||||
source "$SCRIPT"
|
|
||||||
ffbuild_enabled || exit 0
|
|
||||||
ffbuild_dockerstage || exit $?
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
to_df() {
|
to_df() {
|
||||||
_of="${TODF:-Dockerfile}"
|
_of="${TODF:-Dockerfile}"
|
||||||
printf "$@" >> "$_of"
|
printf "$@" >> "$_of"
|
||||||
echo >> "$_of"
|
echo >> "$_of"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default_dl() {
|
||||||
|
to_df "RUN git-mini-clone \"$SCRIPT_REPO\" \"$SCRIPT_COMMIT\" \"$1\""
|
||||||
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Generate download Dockerfile
|
||||||
|
###
|
||||||
|
|
||||||
|
exec_dockerstage_dl() {
|
||||||
|
SCRIPT="$1"
|
||||||
|
(
|
||||||
|
SELF="$SCRIPT"
|
||||||
|
SELFLAYER="$(layername "$STAGE")"
|
||||||
|
source "$SCRIPT"
|
||||||
|
ffbuild_dockerdl || exit $?
|
||||||
|
TODF="Dockerfile.dl.final" ffbuild_dockerlayer_dl || exit $?
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export TODF="Dockerfile.dl"
|
||||||
|
|
||||||
|
to_df "FROM ${REGISTRY}/${REPO}/base:latest AS base"
|
||||||
|
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
|
||||||
|
to_df "WORKDIR \$FFBUILD_DLDIR"
|
||||||
|
|
||||||
|
for STAGE in scripts.d/*.sh scripts.d/*/*.sh; do
|
||||||
|
to_df "FROM base AS $(layername "$STAGE")"
|
||||||
|
exec_dockerstage_dl "$STAGE"
|
||||||
|
done
|
||||||
|
|
||||||
|
to_df "FROM base AS intermediate"
|
||||||
|
cat Dockerfile.dl.final >> "$TODF"
|
||||||
|
rm Dockerfile.dl.final
|
||||||
|
|
||||||
|
to_df "FROM scratch"
|
||||||
|
to_df "COPY --from=intermediate /opt/ffdl/. /"
|
||||||
|
|
||||||
|
if [[ "$TARGET" == "dl" && "$VARIANT" == "only" ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
DL_IMAGE="${DL_IMAGE_RAW}:$(./util/get_dl_cache_tag.sh)"
|
||||||
|
|
||||||
|
###
|
||||||
|
### Generate main Dockerfile
|
||||||
|
###
|
||||||
|
|
||||||
|
exec_dockerstage() {
|
||||||
|
SCRIPT="$1"
|
||||||
|
(
|
||||||
|
SELF="$SCRIPT"
|
||||||
|
source "$SCRIPT"
|
||||||
|
|
||||||
|
ffbuild_enabled || exit 0
|
||||||
|
|
||||||
|
to_df "ENV SELF=\"$SELF\""
|
||||||
|
ffbuild_dockerstage || exit $?
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export TODF="Dockerfile"
|
||||||
|
|
||||||
to_df "FROM ${REGISTRY}/${REPO}/base-${TARGET}:latest AS base"
|
to_df "FROM ${REGISTRY}/${REPO}/base-${TARGET}:latest AS base"
|
||||||
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
|
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
|
||||||
|
|
||||||
|
for addin in "${ADDINS[@]}"; do
|
||||||
|
(
|
||||||
|
source addins/"${addin}.sh"
|
||||||
|
type ffbuild_dockeraddin &>/dev/null && ffbuild_dockeraddin || true
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
PREVLAYER="base"
|
PREVLAYER="base"
|
||||||
for ID in $(ls -1d scripts.d/??-* | sed -s 's|^.*/\(..\).*|\1|' | sort -u); do
|
for ID in $(ls -1d scripts.d/??-* | sed -s 's|^.*/\(..\).*|\1|' | sort -u); do
|
||||||
LAYER="layer-$ID"
|
LAYER="layer-$ID"
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
ARG GH_REPO=btbn/ffmpeg-builds
|
ARG GH_REPO=ghcr.io/btbn/ffmpeg-builds
|
||||||
FROM ghcr.io/$GH_REPO/base:latest
|
FROM $GH_REPO/base:latest
|
||||||
|
|
||||||
ENV PATH="/opt/ct-ng/bin:${PATH}"
|
|
||||||
RUN --mount=src=ct-ng-config,dst=/.config \
|
RUN --mount=src=ct-ng-config,dst=/.config \
|
||||||
git clone https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
||||||
./bootstrap && \
|
./bootstrap && \
|
||||||
./configure --enable-local && \
|
./configure --enable-local && \
|
||||||
make -j$(nproc) && \
|
make -j$(nproc) && \
|
||||||
|
@ -20,26 +19,43 @@ RUN \
|
||||||
-and -not -name 'libdl.*' \
|
-and -not -name 'libdl.*' \
|
||||||
-and -not -name 'libc.*' \
|
-and -not -name 'libc.*' \
|
||||||
-and -not -name 'libm.*' \
|
-and -not -name 'libm.*' \
|
||||||
|
-and -not -name 'libmvec.*' \
|
||||||
|
-and -not -name 'librt.*' \
|
||||||
|
-and -not -name 'libpthread.*' \
|
||||||
-delete && \
|
-delete && \
|
||||||
find /opt/ct-ng \
|
find /opt/ct-ng \
|
||||||
-name 'libdl.a' \
|
-name 'libdl.a' \
|
||||||
-or -name 'libc.a' \
|
-or -name 'libc.a' \
|
||||||
-or -name 'libm.a' \
|
-or -name 'libm.a' \
|
||||||
-delete
|
-or -name 'libmvec.a' \
|
||||||
|
-or -name 'librt.a' \
|
||||||
|
-or -name 'libpthread.a' \
|
||||||
|
-delete && \
|
||||||
|
mkdir /opt/ffbuild
|
||||||
|
|
||||||
ADD toolchain.cmake /toolchain.cmake
|
ADD toolchain.cmake /toolchain.cmake
|
||||||
ADD cross.meson /cross.meson
|
ADD cross.meson /cross.meson
|
||||||
|
|
||||||
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux" \
|
ADD gen-implib.sh /usr/bin/gen-implib
|
||||||
FFBUILD_TOOLCHAIN=x86_64-ffbuild-linux-gnu \
|
RUN git clone --filter=blob:none --depth=1 https://github.com/yugr/Implib.so /opt/implib
|
||||||
FFBUILD_CROSS_PREFIX="x86_64-ffbuild-linux-gnu-" \
|
|
||||||
|
ENV FFBUILD_TOOLCHAIN=x86_64-ffbuild-linux-gnu
|
||||||
|
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||||
|
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=${FFBUILD_TOOLCHAIN}- --arch=x86_64 --target-os=linux" \
|
||||||
|
FFBUILD_CROSS_PREFIX="${FFBUILD_TOOLCHAIN}-" \
|
||||||
FFBUILD_RUST_TARGET="x86_64-unknown-linux-gnu" \
|
FFBUILD_RUST_TARGET="x86_64-unknown-linux-gnu" \
|
||||||
FFBUILD_PREFIX=/opt/ffbuild \
|
FFBUILD_PREFIX=/opt/ffbuild \
|
||||||
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
||||||
PKG_CONFIG=pkg-config \
|
PKG_CONFIG=pkg-config \
|
||||||
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
||||||
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
CC="${FFBUILD_TOOLCHAIN}-gcc" \
|
||||||
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -pthread" \
|
CXX="${FFBUILD_TOOLCHAIN}-g++" \
|
||||||
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong -Wl,-z,relro,-z,now -pthread -lm" \
|
LD="${FFBUILD_TOOLCHAIN}-ld" \
|
||||||
|
AR="${FFBUILD_TOOLCHAIN}-gcc-ar" \
|
||||||
|
RANLIB="${FFBUILD_TOOLCHAIN}-gcc-ranlib" \
|
||||||
|
NM="${FFBUILD_TOOLCHAIN}-gcc-nm" \
|
||||||
|
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -pthread" \
|
||||||
|
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -pthread" \
|
||||||
|
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong -fstack-clash-protection -Wl,-z,relro,-z,now -pthread -lm" \
|
||||||
STAGE_CFLAGS="-fvisibility=hidden -fno-semantic-interposition" \
|
STAGE_CFLAGS="-fvisibility=hidden -fno-semantic-interposition" \
|
||||||
STAGE_CXXFLAGS="-fvisibility=hidden -fno-semantic-interposition"
|
STAGE_CXXFLAGS="-fvisibility=hidden -fno-semantic-interposition"
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
c = 'x86_64-ffbuild-linux-gnu-gcc'
|
c = 'x86_64-ffbuild-linux-gnu-gcc'
|
||||||
cpp = 'x86_64-ffbuild-linux-gnu-g++'
|
cpp = 'x86_64-ffbuild-linux-gnu-g++'
|
||||||
ld = 'x86_64-ffbuild-linux-gnu-ld'
|
ld = 'x86_64-ffbuild-linux-gnu-ld'
|
||||||
ar = 'x86_64-ffbuild-linux-gnu-ar'
|
ar = 'x86_64-ffbuild-linux-gnu-gcc-ar'
|
||||||
|
ranlib = 'x86_64-ffbuild-linux-gnu-gcc-ranlib'
|
||||||
strip = 'x86_64-ffbuild-linux-gnu-strip'
|
strip = 'x86_64-ffbuild-linux-gnu-strip'
|
||||||
|
|
||||||
[host_machine]
|
[host_machine]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# crosstool-NG 1.24.0.394_3782373 Configuration
|
# crosstool-NG 1.25.0.196_227d99d Configuration
|
||||||
#
|
#
|
||||||
CT_CONFIGURE_has_static_link=y
|
CT_CONFIGURE_has_static_link=y
|
||||||
CT_CONFIGURE_has_cxx11=y
|
CT_CONFIGURE_has_cxx11=y
|
||||||
|
@ -8,16 +8,18 @@ CT_CONFIGURE_has_wget=y
|
||||||
CT_CONFIGURE_has_curl=y
|
CT_CONFIGURE_has_curl=y
|
||||||
CT_CONFIGURE_has_meson=y
|
CT_CONFIGURE_has_meson=y
|
||||||
CT_CONFIGURE_has_ninja=y
|
CT_CONFIGURE_has_ninja=y
|
||||||
|
CT_CONFIGURE_has_rsync=y
|
||||||
CT_CONFIGURE_has_make_3_81_or_newer=y
|
CT_CONFIGURE_has_make_3_81_or_newer=y
|
||||||
CT_CONFIGURE_has_make_4_0_or_newer=y
|
CT_CONFIGURE_has_make_4_0_or_newer=y
|
||||||
CT_CONFIGURE_has_libtool_2_4_or_newer=y
|
CT_CONFIGURE_has_libtool_2_4_or_newer=y
|
||||||
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
|
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
|
||||||
CT_CONFIGURE_has_autoconf_2_65_or_newer=y
|
CT_CONFIGURE_has_autoconf_2_71_or_newer=y
|
||||||
CT_CONFIGURE_has_autoreconf_2_65_or_newer=y
|
CT_CONFIGURE_has_autoreconf_2_71_or_newer=y
|
||||||
CT_CONFIGURE_has_automake_1_15_or_newer=y
|
CT_CONFIGURE_has_automake_1_16_or_newer=y
|
||||||
CT_CONFIGURE_has_gnu_m4_1_4_12_or_newer=y
|
CT_CONFIGURE_has_gnu_m4_1_4_12_or_newer=y
|
||||||
CT_CONFIGURE_has_python_3_4_or_newer=y
|
CT_CONFIGURE_has_python_3_4_or_newer=y
|
||||||
CT_CONFIGURE_has_bison_2_7_or_newer=y
|
CT_CONFIGURE_has_bison_2_7_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_3_0_4_or_newer=y
|
||||||
CT_CONFIGURE_has_python=y
|
CT_CONFIGURE_has_python=y
|
||||||
CT_CONFIGURE_has_svn=y
|
CT_CONFIGURE_has_svn=y
|
||||||
CT_CONFIGURE_has_git=y
|
CT_CONFIGURE_has_git=y
|
||||||
|
@ -26,11 +28,11 @@ CT_CONFIGURE_has_sha1sum=y
|
||||||
CT_CONFIGURE_has_sha256sum=y
|
CT_CONFIGURE_has_sha256sum=y
|
||||||
CT_CONFIGURE_has_sha512sum=y
|
CT_CONFIGURE_has_sha512sum=y
|
||||||
CT_CONFIGURE_has_install_with_strip_program=y
|
CT_CONFIGURE_has_install_with_strip_program=y
|
||||||
CT_VERSION="1.24.0.394_3782373"
|
CT_VERSION="1.25.0.196_227d99d"
|
||||||
CT_VCHECK=""
|
CT_VCHECK=""
|
||||||
CT_CONFIG_VERSION_ENV="3"
|
CT_CONFIG_VERSION_ENV="4"
|
||||||
CT_CONFIG_VERSION_CURRENT="3"
|
CT_CONFIG_VERSION_CURRENT="4"
|
||||||
CT_CONFIG_VERSION="3"
|
CT_CONFIG_VERSION="4"
|
||||||
CT_MODULES=y
|
CT_MODULES=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -44,6 +46,7 @@ CT_OBSOLETE=y
|
||||||
CT_EXPERIMENTAL=y
|
CT_EXPERIMENTAL=y
|
||||||
CT_ALLOW_BUILD_AS_ROOT=y
|
CT_ALLOW_BUILD_AS_ROOT=y
|
||||||
CT_ALLOW_BUILD_AS_ROOT_SURE=y
|
CT_ALLOW_BUILD_AS_ROOT_SURE=y
|
||||||
|
# CT_ENABLE_EXPERIMENTAL_BUNDLED_PATCHES is not set
|
||||||
# CT_DEBUG_CT is not set
|
# CT_DEBUG_CT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -62,6 +65,7 @@ CT_REMOVE_DOCS=y
|
||||||
# CT_PREFIX_DIR_RO is not set
|
# CT_PREFIX_DIR_RO is not set
|
||||||
CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y
|
CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y
|
||||||
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
|
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
# CT_TARBALL_RESULT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Downloading
|
# Downloading
|
||||||
|
@ -119,12 +123,11 @@ CT_CONFIG_SHELL="${bash}"
|
||||||
# CT_LOG_ERROR is not set
|
# CT_LOG_ERROR is not set
|
||||||
# CT_LOG_WARN is not set
|
# CT_LOG_WARN is not set
|
||||||
# CT_LOG_INFO is not set
|
# CT_LOG_INFO is not set
|
||||||
CT_LOG_EXTRA=y
|
# CT_LOG_EXTRA is not set
|
||||||
# CT_LOG_ALL is not set
|
# CT_LOG_ALL is not set
|
||||||
# CT_LOG_DEBUG is not set
|
CT_LOG_DEBUG=y
|
||||||
CT_LOG_LEVEL_MAX="EXTRA"
|
CT_LOG_LEVEL_MAX="DEBUG"
|
||||||
# CT_LOG_SEE_TOOLS_WARN is not set
|
# CT_LOG_SEE_TOOLS_WARN is not set
|
||||||
# CT_LOG_PROGRESS_BAR is not set
|
|
||||||
# CT_LOG_TO_FILE is not set
|
# CT_LOG_TO_FILE is not set
|
||||||
# end of Paths and misc options
|
# end of Paths and misc options
|
||||||
|
|
||||||
|
@ -135,7 +138,9 @@ CT_LOG_LEVEL_MAX="EXTRA"
|
||||||
# CT_ARCH_ARC is not set
|
# CT_ARCH_ARC is not set
|
||||||
# CT_ARCH_ARM is not set
|
# CT_ARCH_ARM is not set
|
||||||
# CT_ARCH_AVR is not set
|
# CT_ARCH_AVR is not set
|
||||||
|
# CT_ARCH_BPF is not set
|
||||||
# CT_ARCH_C6X is not set
|
# CT_ARCH_C6X is not set
|
||||||
|
# CT_ARCH_LOONGARCH is not set
|
||||||
# CT_ARCH_M68K is not set
|
# CT_ARCH_M68K is not set
|
||||||
# CT_ARCH_MICROBLAZE is not set
|
# CT_ARCH_MICROBLAZE is not set
|
||||||
# CT_ARCH_MIPS is not set
|
# CT_ARCH_MIPS is not set
|
||||||
|
@ -160,7 +165,7 @@ CT_ARCH_X86_SHOW=y
|
||||||
# Options for x86
|
# Options for x86
|
||||||
#
|
#
|
||||||
CT_ARCH_X86_PKG_KSYM=""
|
CT_ARCH_X86_PKG_KSYM=""
|
||||||
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR C6X M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
|
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR BPF C6X LOONGARCH M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
|
||||||
CT_ARCH_SUFFIX=""
|
CT_ARCH_SUFFIX=""
|
||||||
# CT_OMIT_TARGET_VENDOR is not set
|
# CT_OMIT_TARGET_VENDOR is not set
|
||||||
|
|
||||||
|
@ -170,6 +175,7 @@ CT_ARCH_SUFFIX=""
|
||||||
# CT_MULTILIB is not set
|
# CT_MULTILIB is not set
|
||||||
CT_DEMULTILIB=y
|
CT_DEMULTILIB=y
|
||||||
CT_ARCH_USE_MMU=y
|
CT_ARCH_USE_MMU=y
|
||||||
|
CT_ARCH_SUPPORTS_LIBSANITIZER=y
|
||||||
CT_ARCH_SUPPORTS_32=y
|
CT_ARCH_SUPPORTS_32=y
|
||||||
CT_ARCH_SUPPORTS_64=y
|
CT_ARCH_SUPPORTS_64=y
|
||||||
CT_ARCH_DEFAULT_32=y
|
CT_ARCH_DEFAULT_32=y
|
||||||
|
@ -263,6 +269,17 @@ CT_LINUX_PATCH_GLOBAL=y
|
||||||
# CT_LINUX_PATCH_LOCAL_BUNDLED is not set
|
# CT_LINUX_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_LINUX_PATCH_NONE is not set
|
# CT_LINUX_PATCH_NONE is not set
|
||||||
CT_LINUX_PATCH_ORDER="global"
|
CT_LINUX_PATCH_ORDER="global"
|
||||||
|
# CT_LINUX_V_6_3 is not set
|
||||||
|
# CT_LINUX_V_6_2 is not set
|
||||||
|
# CT_LINUX_V_6_1 is not set
|
||||||
|
# CT_LINUX_V_6_0 is not set
|
||||||
|
# CT_LINUX_V_5_19 is not set
|
||||||
|
# CT_LINUX_V_5_18 is not set
|
||||||
|
# CT_LINUX_V_5_17 is not set
|
||||||
|
# CT_LINUX_V_5_16 is not set
|
||||||
|
# CT_LINUX_V_5_15 is not set
|
||||||
|
# CT_LINUX_V_5_14 is not set
|
||||||
|
# CT_LINUX_V_5_13 is not set
|
||||||
# CT_LINUX_V_5_12 is not set
|
# CT_LINUX_V_5_12 is not set
|
||||||
# CT_LINUX_V_5_11 is not set
|
# CT_LINUX_V_5_11 is not set
|
||||||
# CT_LINUX_V_5_10 is not set
|
# CT_LINUX_V_5_10 is not set
|
||||||
|
@ -287,55 +304,37 @@ CT_LINUX_PATCH_ORDER="global"
|
||||||
# CT_LINUX_V_4_11 is not set
|
# CT_LINUX_V_4_11 is not set
|
||||||
# CT_LINUX_V_4_10 is not set
|
# CT_LINUX_V_4_10 is not set
|
||||||
# CT_LINUX_V_4_9 is not set
|
# CT_LINUX_V_4_9 is not set
|
||||||
# CT_LINUX_V_4_8 is not set
|
|
||||||
# CT_LINUX_V_4_7 is not set
|
|
||||||
# CT_LINUX_V_4_6 is not set
|
|
||||||
# CT_LINUX_V_4_5 is not set
|
|
||||||
CT_LINUX_V_4_4=y
|
CT_LINUX_V_4_4=y
|
||||||
# CT_LINUX_V_4_3 is not set
|
|
||||||
# CT_LINUX_V_4_2 is not set
|
|
||||||
# CT_LINUX_V_4_1 is not set
|
# CT_LINUX_V_4_1 is not set
|
||||||
# CT_LINUX_V_4_0 is not set
|
|
||||||
# CT_LINUX_V_3_19 is not set
|
|
||||||
# CT_LINUX_V_3_18 is not set
|
# CT_LINUX_V_3_18 is not set
|
||||||
# CT_LINUX_V_3_17 is not set
|
|
||||||
# CT_LINUX_V_3_16 is not set
|
# CT_LINUX_V_3_16 is not set
|
||||||
# CT_LINUX_V_3_15 is not set
|
|
||||||
# CT_LINUX_V_3_14 is not set
|
|
||||||
# CT_LINUX_V_3_13 is not set
|
# CT_LINUX_V_3_13 is not set
|
||||||
# CT_LINUX_V_3_12 is not set
|
# CT_LINUX_V_3_12 is not set
|
||||||
# CT_LINUX_V_3_11 is not set
|
|
||||||
# CT_LINUX_V_3_10 is not set
|
# CT_LINUX_V_3_10 is not set
|
||||||
# CT_LINUX_V_3_9 is not set
|
|
||||||
# CT_LINUX_V_3_8 is not set
|
|
||||||
# CT_LINUX_V_3_7 is not set
|
|
||||||
# CT_LINUX_V_3_6 is not set
|
|
||||||
# CT_LINUX_V_3_5 is not set
|
|
||||||
# CT_LINUX_V_3_4 is not set
|
# CT_LINUX_V_3_4 is not set
|
||||||
# CT_LINUX_V_3_3 is not set
|
|
||||||
# CT_LINUX_V_3_2 is not set
|
# CT_LINUX_V_3_2 is not set
|
||||||
# CT_LINUX_V_3_1 is not set
|
|
||||||
# CT_LINUX_V_3_0 is not set
|
|
||||||
# CT_LINUX_V_2_6_39 is not set
|
|
||||||
# CT_LINUX_V_2_6_38 is not set
|
|
||||||
# CT_LINUX_V_2_6_37 is not set
|
|
||||||
# CT_LINUX_V_2_6_36 is not set
|
|
||||||
# CT_LINUX_V_2_6_35 is not set
|
|
||||||
# CT_LINUX_V_2_6_34 is not set
|
|
||||||
# CT_LINUX_V_2_6_33 is not set
|
|
||||||
# CT_LINUX_V_2_6_32 is not set
|
# CT_LINUX_V_2_6_32 is not set
|
||||||
CT_LINUX_VERSION="4.4.268"
|
CT_LINUX_VERSION="4.4.302"
|
||||||
CT_LINUX_MIRRORS="$(CT_Mirrors kernel.org linux ${CT_LINUX_VERSION})"
|
CT_LINUX_MIRRORS="$(CT_Mirrors kernel.org linux ${CT_LINUX_VERSION})"
|
||||||
CT_LINUX_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_LINUX_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_LINUX_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_LINUX_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_LINUX_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
CT_LINUX_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
CT_LINUX_SIGNATURE_FORMAT="unpacked/.sign"
|
CT_LINUX_SIGNATURE_FORMAT="unpacked/.sign"
|
||||||
|
CT_LINUX_5_19_or_older=y
|
||||||
|
CT_LINUX_older_than_5_19=y
|
||||||
|
CT_LINUX_5_12_or_older=y
|
||||||
|
CT_LINUX_older_than_5_12=y
|
||||||
|
CT_LINUX_5_5_or_older=y
|
||||||
|
CT_LINUX_older_than_5_5=y
|
||||||
|
CT_LINUX_5_3_or_older=y
|
||||||
|
CT_LINUX_older_than_5_3=y
|
||||||
CT_LINUX_4_8_or_older=y
|
CT_LINUX_4_8_or_older=y
|
||||||
CT_LINUX_older_than_4_8=y
|
CT_LINUX_older_than_4_8=y
|
||||||
CT_LINUX_later_than_3_7=y
|
CT_LINUX_later_than_3_7=y
|
||||||
CT_LINUX_3_7_or_later=y
|
CT_LINUX_3_7_or_later=y
|
||||||
CT_LINUX_later_than_3_2=y
|
CT_LINUX_later_than_3_2=y
|
||||||
CT_LINUX_3_2_or_later=y
|
CT_LINUX_3_2_or_later=y
|
||||||
|
CT_KERNEL_DEP_RSYNC=y
|
||||||
CT_KERNEL_LINUX_VERBOSITY_0=y
|
CT_KERNEL_LINUX_VERBOSITY_0=y
|
||||||
# CT_KERNEL_LINUX_VERBOSITY_1 is not set
|
# CT_KERNEL_LINUX_VERBOSITY_1 is not set
|
||||||
# CT_KERNEL_LINUX_VERBOSITY_2 is not set
|
# CT_KERNEL_LINUX_VERBOSITY_2 is not set
|
||||||
|
@ -378,7 +377,11 @@ CT_BINUTILS_PATCH_GLOBAL=y
|
||||||
# CT_BINUTILS_PATCH_LOCAL_BUNDLED is not set
|
# CT_BINUTILS_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_BINUTILS_PATCH_NONE is not set
|
# CT_BINUTILS_PATCH_NONE is not set
|
||||||
CT_BINUTILS_PATCH_ORDER="global"
|
CT_BINUTILS_PATCH_ORDER="global"
|
||||||
CT_BINUTILS_V_2_36=y
|
CT_BINUTILS_V_2_40=y
|
||||||
|
# CT_BINUTILS_V_2_39 is not set
|
||||||
|
# CT_BINUTILS_V_2_38 is not set
|
||||||
|
# CT_BINUTILS_V_2_37 is not set
|
||||||
|
# CT_BINUTILS_V_2_36 is not set
|
||||||
# CT_BINUTILS_V_2_35 is not set
|
# CT_BINUTILS_V_2_35 is not set
|
||||||
# CT_BINUTILS_V_2_34 is not set
|
# CT_BINUTILS_V_2_34 is not set
|
||||||
# CT_BINUTILS_V_2_33 is not set
|
# CT_BINUTILS_V_2_33 is not set
|
||||||
|
@ -389,31 +392,24 @@ CT_BINUTILS_V_2_36=y
|
||||||
# CT_BINUTILS_V_2_28 is not set
|
# CT_BINUTILS_V_2_28 is not set
|
||||||
# CT_BINUTILS_V_2_27 is not set
|
# CT_BINUTILS_V_2_27 is not set
|
||||||
# CT_BINUTILS_V_2_26 is not set
|
# CT_BINUTILS_V_2_26 is not set
|
||||||
# CT_BINUTILS_V_2_25 is not set
|
CT_BINUTILS_VERSION="2.40"
|
||||||
# CT_BINUTILS_V_2_24 is not set
|
|
||||||
# CT_BINUTILS_V_2_23 is not set
|
|
||||||
CT_BINUTILS_VERSION="2.36.1"
|
|
||||||
CT_BINUTILS_MIRRORS="$(CT_Mirrors GNU binutils) $(CT_Mirrors sourceware binutils/releases)"
|
CT_BINUTILS_MIRRORS="$(CT_Mirrors GNU binutils) $(CT_Mirrors sourceware binutils/releases)"
|
||||||
CT_BINUTILS_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_BINUTILS_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_BINUTILS_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_BINUTILS_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_BINUTILS_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
CT_BINUTILS_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
CT_BINUTILS_SIGNATURE_FORMAT="packed/.sig"
|
CT_BINUTILS_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_BINUTILS_later_than_2_39=y
|
||||||
|
CT_BINUTILS_2_39_or_later=y
|
||||||
CT_BINUTILS_later_than_2_30=y
|
CT_BINUTILS_later_than_2_30=y
|
||||||
CT_BINUTILS_2_30_or_later=y
|
CT_BINUTILS_2_30_or_later=y
|
||||||
CT_BINUTILS_later_than_2_27=y
|
CT_BINUTILS_later_than_2_27=y
|
||||||
CT_BINUTILS_2_27_or_later=y
|
CT_BINUTILS_2_27_or_later=y
|
||||||
CT_BINUTILS_later_than_2_25=y
|
CT_BINUTILS_later_than_2_26=y
|
||||||
CT_BINUTILS_2_25_or_later=y
|
CT_BINUTILS_2_26_or_later=y
|
||||||
CT_BINUTILS_later_than_2_23=y
|
|
||||||
CT_BINUTILS_2_23_or_later=y
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# GNU binutils
|
# GNU binutils
|
||||||
#
|
#
|
||||||
CT_BINUTILS_HAS_HASH_STYLE=y
|
|
||||||
CT_BINUTILS_HAS_GOLD=y
|
|
||||||
CT_BINUTILS_HAS_PLUGINS=y
|
|
||||||
CT_BINUTILS_HAS_PKGVERSION_BUGURL=y
|
|
||||||
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
|
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
|
||||||
CT_BINUTILS_GOLD_SUPPORT=y
|
CT_BINUTILS_GOLD_SUPPORT=y
|
||||||
CT_BINUTILS_FORCE_LD_BFD_DEFAULT=y
|
CT_BINUTILS_FORCE_LD_BFD_DEFAULT=y
|
||||||
|
@ -432,13 +428,11 @@ CT_ALL_BINUTILS_CHOICES="BINUTILS"
|
||||||
#
|
#
|
||||||
# C-library
|
# C-library
|
||||||
#
|
#
|
||||||
# CT_LIBC_BIONIC is not set
|
|
||||||
CT_LIBC_GLIBC=y
|
CT_LIBC_GLIBC=y
|
||||||
# CT_LIBC_MUSL is not set
|
# CT_LIBC_MUSL is not set
|
||||||
# CT_LIBC_UCLIBC is not set
|
# CT_LIBC_UCLIBC_NG is not set
|
||||||
CT_LIBC="glibc"
|
CT_LIBC="glibc"
|
||||||
CT_LIBC_CHOICE_KSYM="GLIBC"
|
CT_LIBC_CHOICE_KSYM="GLIBC"
|
||||||
CT_THREADS="nptl"
|
|
||||||
CT_LIBC_GLIBC_SHOW=y
|
CT_LIBC_GLIBC_SHOW=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -447,7 +441,6 @@ CT_LIBC_GLIBC_SHOW=y
|
||||||
CT_LIBC_GLIBC_PKG_KSYM="GLIBC"
|
CT_LIBC_GLIBC_PKG_KSYM="GLIBC"
|
||||||
CT_GLIBC_DIR_NAME="glibc"
|
CT_GLIBC_DIR_NAME="glibc"
|
||||||
CT_GLIBC_USE_GNU=y
|
CT_GLIBC_USE_GNU=y
|
||||||
# CT_GLIBC_USE_LINARO is not set
|
|
||||||
# CT_GLIBC_USE_ORACLE is not set
|
# CT_GLIBC_USE_ORACLE is not set
|
||||||
CT_GLIBC_USE="GLIBC"
|
CT_GLIBC_USE="GLIBC"
|
||||||
CT_GLIBC_PKG_NAME="glibc"
|
CT_GLIBC_PKG_NAME="glibc"
|
||||||
|
@ -461,6 +454,10 @@ CT_GLIBC_PATCH_GLOBAL=y
|
||||||
# CT_GLIBC_PATCH_LOCAL_BUNDLED is not set
|
# CT_GLIBC_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_GLIBC_PATCH_NONE is not set
|
# CT_GLIBC_PATCH_NONE is not set
|
||||||
CT_GLIBC_PATCH_ORDER="global"
|
CT_GLIBC_PATCH_ORDER="global"
|
||||||
|
# CT_GLIBC_V_2_37 is not set
|
||||||
|
# CT_GLIBC_V_2_36 is not set
|
||||||
|
# CT_GLIBC_V_2_35 is not set
|
||||||
|
# CT_GLIBC_V_2_34 is not set
|
||||||
# CT_GLIBC_V_2_33 is not set
|
# CT_GLIBC_V_2_33 is not set
|
||||||
# CT_GLIBC_V_2_32 is not set
|
# CT_GLIBC_V_2_32 is not set
|
||||||
# CT_GLIBC_V_2_31 is not set
|
# CT_GLIBC_V_2_31 is not set
|
||||||
|
@ -472,26 +469,24 @@ CT_GLIBC_PATCH_ORDER="global"
|
||||||
# CT_GLIBC_V_2_25 is not set
|
# CT_GLIBC_V_2_25 is not set
|
||||||
# CT_GLIBC_V_2_24 is not set
|
# CT_GLIBC_V_2_24 is not set
|
||||||
CT_GLIBC_V_2_23=y
|
CT_GLIBC_V_2_23=y
|
||||||
# CT_GLIBC_V_2_22 is not set
|
|
||||||
# CT_GLIBC_V_2_21 is not set
|
|
||||||
# CT_GLIBC_V_2_20 is not set
|
|
||||||
# CT_GLIBC_V_2_19 is not set
|
# CT_GLIBC_V_2_19 is not set
|
||||||
# CT_GLIBC_V_2_18 is not set
|
|
||||||
# CT_GLIBC_V_2_17 is not set
|
# CT_GLIBC_V_2_17 is not set
|
||||||
# CT_GLIBC_V_2_16_0 is not set
|
|
||||||
# CT_GLIBC_V_2_15 is not set
|
|
||||||
# CT_GLIBC_V_2_14_1 is not set
|
|
||||||
# CT_GLIBC_V_2_13 is not set
|
|
||||||
# CT_GLIBC_V_2_12_2 is not set
|
|
||||||
# CT_GLIBC_V_2_12_1 is not set
|
|
||||||
CT_GLIBC_VERSION="2.23"
|
CT_GLIBC_VERSION="2.23"
|
||||||
CT_GLIBC_MIRRORS="$(CT_Mirrors GNU glibc)"
|
CT_GLIBC_MIRRORS="$(CT_Mirrors GNU glibc)"
|
||||||
CT_GLIBC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_GLIBC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_GLIBC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_GLIBC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_GLIBC_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
CT_GLIBC_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
CT_GLIBC_SIGNATURE_FORMAT="packed/.sig"
|
CT_GLIBC_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GLIBC_2_37_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_37=y
|
||||||
|
CT_GLIBC_2_36_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_36=y
|
||||||
|
CT_GLIBC_2_34_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_34=y
|
||||||
CT_GLIBC_2_32_or_older=y
|
CT_GLIBC_2_32_or_older=y
|
||||||
CT_GLIBC_older_than_2_32=y
|
CT_GLIBC_older_than_2_32=y
|
||||||
|
CT_GLIBC_2_31_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_31=y
|
||||||
CT_GLIBC_2_30_or_older=y
|
CT_GLIBC_2_30_or_older=y
|
||||||
CT_GLIBC_older_than_2_30=y
|
CT_GLIBC_older_than_2_30=y
|
||||||
CT_GLIBC_2_29_or_older=y
|
CT_GLIBC_2_29_or_older=y
|
||||||
|
@ -519,13 +514,15 @@ CT_GLIBC_DEP_BINUTILS=y
|
||||||
CT_GLIBC_DEP_GCC=y
|
CT_GLIBC_DEP_GCC=y
|
||||||
CT_GLIBC_DEP_PYTHON=y
|
CT_GLIBC_DEP_PYTHON=y
|
||||||
CT_GLIBC_SPARC_ALLOW_V7=y
|
CT_GLIBC_SPARC_ALLOW_V7=y
|
||||||
|
CT_THREADS="nptl"
|
||||||
CT_GLIBC_HAS_LIBIDN_ADDON=y
|
CT_GLIBC_HAS_LIBIDN_ADDON=y
|
||||||
# CT_GLIBC_USE_LIBIDN_ADDON is not set
|
# CT_GLIBC_USE_LIBIDN_ADDON is not set
|
||||||
CT_GLIBC_NO_SPARC_V8=y
|
CT_GLIBC_NO_SPARC_V8=y
|
||||||
CT_GLIBC_HAS_OBSOLETE_RPC=y
|
CT_GLIBC_HAS_OBSOLETE_RPC=y
|
||||||
CT_GLIBC_EXTRA_CONFIG_ARRAY="--with-pic"
|
CT_GLIBC_EXTRA_CONFIG_ARRAY="--with-pic"
|
||||||
CT_GLIBC_CONFIGPARMS=""
|
CT_GLIBC_CONFIGPARMS=""
|
||||||
CT_GLIBC_EXTRA_CFLAGS="-fPIC -DPIC"
|
# CT_GLIBC_ENABLE_DEBUG is not set
|
||||||
|
CT_GLIBC_EXTRA_CFLAGS="-fPIC -DPIC -no-pie"
|
||||||
CT_GLIBC_ENABLE_OBSOLETE_RPC=y
|
CT_GLIBC_ENABLE_OBSOLETE_RPC=y
|
||||||
# CT_GLIBC_ENABLE_FORTIFIED_BUILD is not set
|
# CT_GLIBC_ENABLE_FORTIFIED_BUILD is not set
|
||||||
# CT_GLIBC_DISABLE_VERSIONING is not set
|
# CT_GLIBC_DISABLE_VERSIONING is not set
|
||||||
|
@ -535,9 +532,9 @@ CT_GLIBC_FORCE_UNWIND=y
|
||||||
# CT_GLIBC_KERNEL_VERSION_NONE is not set
|
# CT_GLIBC_KERNEL_VERSION_NONE is not set
|
||||||
CT_GLIBC_KERNEL_VERSION_AS_HEADERS=y
|
CT_GLIBC_KERNEL_VERSION_AS_HEADERS=y
|
||||||
# CT_GLIBC_KERNEL_VERSION_CHOSEN is not set
|
# CT_GLIBC_KERNEL_VERSION_CHOSEN is not set
|
||||||
CT_GLIBC_MIN_KERNEL="4.4.268"
|
CT_GLIBC_MIN_KERNEL="4.4.302"
|
||||||
CT_GLIBC_ENABLE_COMMON_FLAG=y
|
CT_GLIBC_ENABLE_COMMON_FLAG=y
|
||||||
CT_ALL_LIBC_CHOICES="AVR_LIBC BIONIC GLIBC MINGW_W64 MOXIEBOX MUSL NEWLIB NONE UCLIBC"
|
CT_ALL_LIBC_CHOICES="AVR_LIBC GLIBC MINGW_W64 MOXIEBOX MUSL NEWLIB NONE PICOLIBC UCLIBC_NG"
|
||||||
CT_LIBC_SUPPORT_THREADS_ANY=y
|
CT_LIBC_SUPPORT_THREADS_ANY=y
|
||||||
CT_LIBC_SUPPORT_THREADS_NATIVE=y
|
CT_LIBC_SUPPORT_THREADS_NATIVE=y
|
||||||
|
|
||||||
|
@ -552,12 +549,12 @@ CT_LIBC_XLDD=y
|
||||||
#
|
#
|
||||||
# C compiler
|
# C compiler
|
||||||
#
|
#
|
||||||
CT_CC_CORE_PASSES_NEEDED=y
|
CT_CC_CORE_NEEDED=y
|
||||||
CT_CC_CORE_PASS_1_NEEDED=y
|
|
||||||
CT_CC_CORE_PASS_2_NEEDED=y
|
|
||||||
CT_CC_SUPPORT_CXX=y
|
CT_CC_SUPPORT_CXX=y
|
||||||
CT_CC_SUPPORT_FORTRAN=y
|
CT_CC_SUPPORT_FORTRAN=y
|
||||||
CT_CC_SUPPORT_ADA=y
|
CT_CC_SUPPORT_ADA=y
|
||||||
|
CT_CC_SUPPORT_D=y
|
||||||
|
CT_CC_SUPPORT_JIT=y
|
||||||
CT_CC_SUPPORT_OBJC=y
|
CT_CC_SUPPORT_OBJC=y
|
||||||
CT_CC_SUPPORT_OBJCXX=y
|
CT_CC_SUPPORT_OBJCXX=y
|
||||||
CT_CC_SUPPORT_GOLANG=y
|
CT_CC_SUPPORT_GOLANG=y
|
||||||
|
@ -586,7 +583,9 @@ CT_GCC_PATCH_GLOBAL=y
|
||||||
# CT_GCC_PATCH_LOCAL_BUNDLED is not set
|
# CT_GCC_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_GCC_PATCH_NONE is not set
|
# CT_GCC_PATCH_NONE is not set
|
||||||
CT_GCC_PATCH_ORDER="global"
|
CT_GCC_PATCH_ORDER="global"
|
||||||
CT_GCC_V_11=y
|
CT_GCC_V_13=y
|
||||||
|
# CT_GCC_V_12 is not set
|
||||||
|
# CT_GCC_V_11 is not set
|
||||||
# CT_GCC_V_10 is not set
|
# CT_GCC_V_10 is not set
|
||||||
# CT_GCC_V_9 is not set
|
# CT_GCC_V_9 is not set
|
||||||
# CT_GCC_V_8 is not set
|
# CT_GCC_V_8 is not set
|
||||||
|
@ -594,13 +593,16 @@ CT_GCC_V_11=y
|
||||||
# CT_GCC_V_6 is not set
|
# CT_GCC_V_6 is not set
|
||||||
# CT_GCC_V_5 is not set
|
# CT_GCC_V_5 is not set
|
||||||
# CT_GCC_V_4_9 is not set
|
# CT_GCC_V_4_9 is not set
|
||||||
# CT_GCC_V_4_8 is not set
|
CT_GCC_VERSION="13.1.0"
|
||||||
CT_GCC_VERSION="11.1.0"
|
|
||||||
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
|
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
|
||||||
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_GCC_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
CT_GCC_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
CT_GCC_SIGNATURE_FORMAT=""
|
CT_GCC_SIGNATURE_FORMAT=""
|
||||||
|
CT_GCC_later_than_13=y
|
||||||
|
CT_GCC_13_or_later=y
|
||||||
|
CT_GCC_later_than_12=y
|
||||||
|
CT_GCC_12_or_later=y
|
||||||
CT_GCC_later_than_11=y
|
CT_GCC_later_than_11=y
|
||||||
CT_GCC_11_or_later=y
|
CT_GCC_11_or_later=y
|
||||||
CT_GCC_later_than_10=y
|
CT_GCC_later_than_10=y
|
||||||
|
@ -617,13 +619,11 @@ CT_GCC_later_than_5=y
|
||||||
CT_GCC_5_or_later=y
|
CT_GCC_5_or_later=y
|
||||||
CT_GCC_later_than_4_9=y
|
CT_GCC_later_than_4_9=y
|
||||||
CT_GCC_4_9_or_later=y
|
CT_GCC_4_9_or_later=y
|
||||||
CT_GCC_later_than_4_8=y
|
|
||||||
CT_GCC_4_8_or_later=y
|
|
||||||
CT_CC_GCC_ENABLE_PLUGINS=y
|
CT_CC_GCC_ENABLE_PLUGINS=y
|
||||||
CT_CC_GCC_HAS_LIBMPX=y
|
CT_CC_GCC_HAS_LIBMPX=y
|
||||||
CT_CC_GCC_ENABLE_CXX_FLAGS=""
|
CT_CC_GCC_ENABLE_CXX_FLAGS=""
|
||||||
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp"
|
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp"
|
||||||
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp"
|
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp --with-build-config=bootstrap-lto-lean --enable-link-serialization=2"
|
||||||
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
|
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
|
||||||
# CT_CC_GCC_SYSTEM_ZLIB is not set
|
# CT_CC_GCC_SYSTEM_ZLIB is not set
|
||||||
CT_CC_GCC_CONFIG_TLS=m
|
CT_CC_GCC_CONFIG_TLS=m
|
||||||
|
@ -633,10 +633,12 @@ CT_CC_GCC_CONFIG_TLS=m
|
||||||
#
|
#
|
||||||
CT_CC_GCC_USE_GRAPHITE=y
|
CT_CC_GCC_USE_GRAPHITE=y
|
||||||
CT_CC_GCC_USE_LTO=y
|
CT_CC_GCC_USE_LTO=y
|
||||||
|
CT_CC_GCC_LTO_ZSTD=m
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for libraries running on target
|
# Settings for libraries running on target
|
||||||
#
|
#
|
||||||
|
CT_CC_GCC_ENABLE_DEFAULT_PIE=y
|
||||||
# CT_CC_GCC_ENABLE_TARGET_OPTSPACE is not set
|
# CT_CC_GCC_ENABLE_TARGET_OPTSPACE is not set
|
||||||
# CT_CC_GCC_LIBMUDFLAP is not set
|
# CT_CC_GCC_LIBMUDFLAP is not set
|
||||||
CT_CC_GCC_LIBGOMP=y
|
CT_CC_GCC_LIBGOMP=y
|
||||||
|
@ -644,6 +646,7 @@ CT_CC_GCC_LIBSSP=m
|
||||||
# CT_CC_GCC_LIBQUADMATH is not set
|
# CT_CC_GCC_LIBQUADMATH is not set
|
||||||
# CT_CC_GCC_LIBSANITIZER is not set
|
# CT_CC_GCC_LIBSANITIZER is not set
|
||||||
# CT_CC_GCC_LIBMPX is not set
|
# CT_CC_GCC_LIBMPX is not set
|
||||||
|
# CT_CC_GCC_LIBSTDCXX_VERBOSE is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Misc. obscure options.
|
# Misc. obscure options.
|
||||||
|
@ -670,8 +673,10 @@ CT_ALL_CC_CHOICES="GCC"
|
||||||
# Additional supported languages:
|
# Additional supported languages:
|
||||||
#
|
#
|
||||||
CT_CC_LANG_CXX=y
|
CT_CC_LANG_CXX=y
|
||||||
CT_CC_LANG_FORTRAN=y
|
# CT_CC_LANG_FORTRAN is not set
|
||||||
|
# CT_CC_LANG_JIT is not set
|
||||||
# CT_CC_LANG_ADA is not set
|
# CT_CC_LANG_ADA is not set
|
||||||
|
# CT_CC_LANG_D is not set
|
||||||
# CT_CC_LANG_OBJC is not set
|
# CT_CC_LANG_OBJC is not set
|
||||||
# CT_CC_LANG_OBJCXX is not set
|
# CT_CC_LANG_OBJCXX is not set
|
||||||
# CT_CC_LANG_GOLANG is not set
|
# CT_CC_LANG_GOLANG is not set
|
||||||
|
@ -708,15 +713,30 @@ CT_GETTEXT_PATCH_GLOBAL=y
|
||||||
# CT_GETTEXT_PATCH_LOCAL_BUNDLED is not set
|
# CT_GETTEXT_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_GETTEXT_PATCH_NONE is not set
|
# CT_GETTEXT_PATCH_NONE is not set
|
||||||
CT_GETTEXT_PATCH_ORDER="global"
|
CT_GETTEXT_PATCH_ORDER="global"
|
||||||
CT_GETTEXT_V_0_20_1=y
|
CT_GETTEXT_V_0_21=y
|
||||||
|
# CT_GETTEXT_V_0_20_1 is not set
|
||||||
# CT_GETTEXT_V_0_19_8_1 is not set
|
# CT_GETTEXT_V_0_19_8_1 is not set
|
||||||
# CT_GETTEXT_V_0_19_7 is not set
|
CT_GETTEXT_VERSION="0.21"
|
||||||
CT_GETTEXT_VERSION="0.20.1"
|
|
||||||
CT_GETTEXT_MIRRORS="$(CT_Mirrors GNU gettext)"
|
CT_GETTEXT_MIRRORS="$(CT_Mirrors GNU gettext)"
|
||||||
CT_GETTEXT_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_GETTEXT_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_GETTEXT_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_GETTEXT_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_GETTEXT_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
CT_GETTEXT_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
CT_GETTEXT_SIGNATURE_FORMAT="packed/.sig"
|
CT_GETTEXT_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GETTEXT_0_21_or_later=y
|
||||||
|
CT_GETTEXT_0_21_or_older=y
|
||||||
|
CT_GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# This version of gettext is not compatible with uClibc-NG. Select
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# a different version if uClibc-NG is used on the target or (in a
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Canadian cross build) on the host.
|
||||||
|
#
|
||||||
CT_COMP_LIBS_GMP=y
|
CT_COMP_LIBS_GMP=y
|
||||||
CT_COMP_LIBS_GMP_PKG_KSYM="GMP"
|
CT_COMP_LIBS_GMP_PKG_KSYM="GMP"
|
||||||
CT_GMP_DIR_NAME="gmp"
|
CT_GMP_DIR_NAME="gmp"
|
||||||
|
@ -733,20 +753,12 @@ CT_GMP_PATCH_GLOBAL=y
|
||||||
CT_GMP_PATCH_ORDER="global"
|
CT_GMP_PATCH_ORDER="global"
|
||||||
CT_GMP_V_6_2=y
|
CT_GMP_V_6_2=y
|
||||||
# CT_GMP_V_6_1 is not set
|
# CT_GMP_V_6_1 is not set
|
||||||
# CT_GMP_V_6_0 is not set
|
|
||||||
# CT_GMP_V_5_1 is not set
|
|
||||||
# CT_GMP_V_5_0 is not set
|
|
||||||
CT_GMP_VERSION="6.2.1"
|
CT_GMP_VERSION="6.2.1"
|
||||||
CT_GMP_MIRRORS="https://gmplib.org/download/gmp https://gmplib.org/download/gmp/archive $(CT_Mirrors GNU gmp)"
|
CT_GMP_MIRRORS="https://gmplib.org/download/gmp https://gmplib.org/download/gmp/archive $(CT_Mirrors GNU gmp)"
|
||||||
CT_GMP_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_GMP_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_GMP_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_GMP_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_GMP_ARCHIVE_FORMATS=".tar.xz .tar.lz .tar.bz2"
|
CT_GMP_ARCHIVE_FORMATS=".tar.xz .tar.lz .tar.bz2"
|
||||||
CT_GMP_SIGNATURE_FORMAT="packed/.sig"
|
CT_GMP_SIGNATURE_FORMAT="packed/.sig"
|
||||||
CT_GMP_later_than_5_1_0=y
|
|
||||||
CT_GMP_5_1_0_or_later=y
|
|
||||||
CT_GMP_later_than_5_0_0=y
|
|
||||||
CT_GMP_5_0_0_or_later=y
|
|
||||||
CT_GMP_REQUIRE_5_0_0_or_later=y
|
|
||||||
CT_COMP_LIBS_ISL=y
|
CT_COMP_LIBS_ISL=y
|
||||||
CT_COMP_LIBS_ISL_PKG_KSYM="ISL"
|
CT_COMP_LIBS_ISL_PKG_KSYM="ISL"
|
||||||
CT_ISL_DIR_NAME="isl"
|
CT_ISL_DIR_NAME="isl"
|
||||||
|
@ -761,8 +773,11 @@ CT_ISL_PATCH_GLOBAL=y
|
||||||
# CT_ISL_PATCH_LOCAL_BUNDLED is not set
|
# CT_ISL_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_ISL_PATCH_NONE is not set
|
# CT_ISL_PATCH_NONE is not set
|
||||||
CT_ISL_PATCH_ORDER="global"
|
CT_ISL_PATCH_ORDER="global"
|
||||||
|
CT_ISL_V_0_26=y
|
||||||
|
# CT_ISL_V_0_25 is not set
|
||||||
# CT_ISL_V_0_24 is not set
|
# CT_ISL_V_0_24 is not set
|
||||||
CT_ISL_V_0_22=y
|
# CT_ISL_V_0_23 is not set
|
||||||
|
# CT_ISL_V_0_22 is not set
|
||||||
# CT_ISL_V_0_21 is not set
|
# CT_ISL_V_0_21 is not set
|
||||||
# CT_ISL_V_0_20 is not set
|
# CT_ISL_V_0_20 is not set
|
||||||
# CT_ISL_V_0_19 is not set
|
# CT_ISL_V_0_19 is not set
|
||||||
|
@ -770,8 +785,9 @@ CT_ISL_V_0_22=y
|
||||||
# CT_ISL_V_0_17 is not set
|
# CT_ISL_V_0_17 is not set
|
||||||
# CT_ISL_V_0_16 is not set
|
# CT_ISL_V_0_16 is not set
|
||||||
# CT_ISL_V_0_15 is not set
|
# CT_ISL_V_0_15 is not set
|
||||||
CT_ISL_VERSION="0.22"
|
# CT_ISL_V_0_11 is not set
|
||||||
CT_ISL_MIRRORS="http://isl.gforge.inria.fr"
|
CT_ISL_VERSION="0.26"
|
||||||
|
CT_ISL_MIRRORS="https://libisl.sourceforge.io"
|
||||||
CT_ISL_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_ISL_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_ISL_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_ISL_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_ISL_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
CT_ISL_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
@ -780,15 +796,6 @@ CT_ISL_later_than_0_18=y
|
||||||
CT_ISL_0_18_or_later=y
|
CT_ISL_0_18_or_later=y
|
||||||
CT_ISL_later_than_0_15=y
|
CT_ISL_later_than_0_15=y
|
||||||
CT_ISL_0_15_or_later=y
|
CT_ISL_0_15_or_later=y
|
||||||
CT_ISL_REQUIRE_0_15_or_later=y
|
|
||||||
CT_ISL_later_than_0_14=y
|
|
||||||
CT_ISL_0_14_or_later=y
|
|
||||||
CT_ISL_REQUIRE_0_14_or_later=y
|
|
||||||
CT_ISL_later_than_0_13=y
|
|
||||||
CT_ISL_0_13_or_later=y
|
|
||||||
CT_ISL_later_than_0_12=y
|
|
||||||
CT_ISL_0_12_or_later=y
|
|
||||||
CT_ISL_REQUIRE_0_12_or_later=y
|
|
||||||
# CT_COMP_LIBS_LIBELF is not set
|
# CT_COMP_LIBS_LIBELF is not set
|
||||||
CT_COMP_LIBS_LIBICONV=y
|
CT_COMP_LIBS_LIBICONV=y
|
||||||
CT_COMP_LIBS_LIBICONV_PKG_KSYM="LIBICONV"
|
CT_COMP_LIBS_LIBICONV_PKG_KSYM="LIBICONV"
|
||||||
|
@ -806,7 +813,6 @@ CT_LIBICONV_PATCH_GLOBAL=y
|
||||||
CT_LIBICONV_PATCH_ORDER="global"
|
CT_LIBICONV_PATCH_ORDER="global"
|
||||||
CT_LIBICONV_V_1_16=y
|
CT_LIBICONV_V_1_16=y
|
||||||
# CT_LIBICONV_V_1_15 is not set
|
# CT_LIBICONV_V_1_15 is not set
|
||||||
# CT_LIBICONV_V_1_14 is not set
|
|
||||||
CT_LIBICONV_VERSION="1.16"
|
CT_LIBICONV_VERSION="1.16"
|
||||||
CT_LIBICONV_MIRRORS="$(CT_Mirrors GNU libiconv)"
|
CT_LIBICONV_MIRRORS="$(CT_Mirrors GNU libiconv)"
|
||||||
CT_LIBICONV_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_LIBICONV_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
@ -830,10 +836,7 @@ CT_MPC_PATCH_ORDER="global"
|
||||||
CT_MPC_V_1_2=y
|
CT_MPC_V_1_2=y
|
||||||
# CT_MPC_V_1_1 is not set
|
# CT_MPC_V_1_1 is not set
|
||||||
# CT_MPC_V_1_0 is not set
|
# CT_MPC_V_1_0 is not set
|
||||||
# CT_MPC_V_0_9 is not set
|
CT_MPC_VERSION="1.2.1"
|
||||||
# CT_MPC_V_0_8 is not set
|
|
||||||
# CT_MPC_V_0_7 is not set
|
|
||||||
CT_MPC_VERSION="1.2.0"
|
|
||||||
CT_MPC_MIRRORS="http://www.multiprecision.org/downloads $(CT_Mirrors GNU mpc)"
|
CT_MPC_MIRRORS="http://www.multiprecision.org/downloads $(CT_Mirrors GNU mpc)"
|
||||||
CT_MPC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_MPC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_MPC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_MPC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
@ -858,7 +861,6 @@ CT_MPFR_PATCH_ORDER="global"
|
||||||
CT_MPFR_V_4_1=y
|
CT_MPFR_V_4_1=y
|
||||||
# CT_MPFR_V_4_0 is not set
|
# CT_MPFR_V_4_0 is not set
|
||||||
# CT_MPFR_V_3_1 is not set
|
# CT_MPFR_V_3_1 is not set
|
||||||
# CT_MPFR_V_3_0 is not set
|
|
||||||
CT_MPFR_VERSION="4.1.0"
|
CT_MPFR_VERSION="4.1.0"
|
||||||
CT_MPFR_MIRRORS="http://www.mpfr.org/mpfr-${CT_MPFR_VERSION} $(CT_Mirrors GNU mpfr)"
|
CT_MPFR_MIRRORS="http://www.mpfr.org/mpfr-${CT_MPFR_VERSION} $(CT_Mirrors GNU mpfr)"
|
||||||
CT_MPFR_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_MPFR_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
@ -867,9 +869,6 @@ CT_MPFR_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz .zip"
|
||||||
CT_MPFR_SIGNATURE_FORMAT="packed/.asc"
|
CT_MPFR_SIGNATURE_FORMAT="packed/.asc"
|
||||||
CT_MPFR_later_than_4_0_0=y
|
CT_MPFR_later_than_4_0_0=y
|
||||||
CT_MPFR_4_0_0_or_later=y
|
CT_MPFR_4_0_0_or_later=y
|
||||||
CT_MPFR_later_than_3_0_0=y
|
|
||||||
CT_MPFR_3_0_0_or_later=y
|
|
||||||
CT_MPFR_REQUIRE_3_0_0_or_later=y
|
|
||||||
CT_COMP_LIBS_NCURSES=y
|
CT_COMP_LIBS_NCURSES=y
|
||||||
CT_COMP_LIBS_NCURSES_PKG_KSYM="NCURSES"
|
CT_COMP_LIBS_NCURSES_PKG_KSYM="NCURSES"
|
||||||
CT_NCURSES_DIR_NAME="ncurses"
|
CT_NCURSES_DIR_NAME="ncurses"
|
||||||
|
@ -884,10 +883,11 @@ CT_NCURSES_PATCH_GLOBAL=y
|
||||||
# CT_NCURSES_PATCH_LOCAL_BUNDLED is not set
|
# CT_NCURSES_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_NCURSES_PATCH_NONE is not set
|
# CT_NCURSES_PATCH_NONE is not set
|
||||||
CT_NCURSES_PATCH_ORDER="global"
|
CT_NCURSES_PATCH_ORDER="global"
|
||||||
CT_NCURSES_V_6_2=y
|
CT_NCURSES_V_6_4=y
|
||||||
|
# CT_NCURSES_V_6_2 is not set
|
||||||
# CT_NCURSES_V_6_1 is not set
|
# CT_NCURSES_V_6_1 is not set
|
||||||
# CT_NCURSES_V_6_0 is not set
|
# CT_NCURSES_V_6_0 is not set
|
||||||
CT_NCURSES_VERSION="6.2"
|
CT_NCURSES_VERSION="6.4"
|
||||||
CT_NCURSES_MIRRORS="https://invisible-mirror.net/archives/ncurses $(CT_Mirrors GNU ncurses)"
|
CT_NCURSES_MIRRORS="https://invisible-mirror.net/archives/ncurses $(CT_Mirrors GNU ncurses)"
|
||||||
CT_NCURSES_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_NCURSES_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_NCURSES_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_NCURSES_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
@ -914,14 +914,37 @@ CT_ZLIB_PATCH_GLOBAL=y
|
||||||
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
|
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
|
||||||
# CT_ZLIB_PATCH_NONE is not set
|
# CT_ZLIB_PATCH_NONE is not set
|
||||||
CT_ZLIB_PATCH_ORDER="global"
|
CT_ZLIB_PATCH_ORDER="global"
|
||||||
CT_ZLIB_V_1_2_11=y
|
CT_ZLIB_V_1_2_13=y
|
||||||
CT_ZLIB_VERSION="1.2.11"
|
# CT_ZLIB_V_1_2_12 is not set
|
||||||
CT_ZLIB_MIRRORS="http://downloads.sourceforge.net/project/libpng/zlib/${CT_ZLIB_VERSION} https://www.zlib.net/"
|
CT_ZLIB_VERSION="1.2.13"
|
||||||
|
CT_ZLIB_MIRRORS="https://github.com/madler/zlib/releases/download/v${CT_ZLIB_VERSION} https://www.zlib.net/"
|
||||||
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
CT_ZLIB_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
CT_ZLIB_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
CT_ZLIB_SIGNATURE_FORMAT="packed/.asc"
|
CT_ZLIB_SIGNATURE_FORMAT="packed/.asc"
|
||||||
CT_ALL_COMP_LIBS_CHOICES="CLOOG EXPAT GETTEXT GMP GNUPRUMCU ISL LIBELF LIBICONV MPC MPFR NCURSES NEWLIB_NANO PICOLIBC ZLIB"
|
CT_COMP_LIBS_ZSTD=y
|
||||||
|
CT_COMP_LIBS_ZSTD_PKG_KSYM="ZSTD"
|
||||||
|
CT_ZSTD_DIR_NAME="zstd"
|
||||||
|
CT_ZSTD_PKG_NAME="zstd"
|
||||||
|
CT_ZSTD_SRC_RELEASE=y
|
||||||
|
# CT_ZSTD_SRC_DEVEL is not set
|
||||||
|
# CT_ZSTD_SRC_CUSTOM is not set
|
||||||
|
CT_ZSTD_PATCH_GLOBAL=y
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_NONE is not set
|
||||||
|
CT_ZSTD_PATCH_ORDER="global"
|
||||||
|
CT_ZSTD_V_1_5_5=y
|
||||||
|
# CT_ZSTD_V_1_5_2 is not set
|
||||||
|
CT_ZSTD_VERSION="1.5.5"
|
||||||
|
CT_ZSTD_MIRRORS="https://github.com/facebook/zstd/releases/download/v${CT_ZSTD_VERSION} https://www.zstd.net/"
|
||||||
|
CT_ZSTD_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_ZSTD_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_ALL_COMP_LIBS_CHOICES="CLOOG EXPAT GETTEXT GMP GNUPRUMCU ISL LIBELF LIBICONV MPC MPFR NCURSES NEWLIB_NANO PICOLIBC ZLIB ZSTD"
|
||||||
CT_LIBICONV_NEEDED=y
|
CT_LIBICONV_NEEDED=y
|
||||||
CT_GETTEXT_NEEDED=y
|
CT_GETTEXT_NEEDED=y
|
||||||
CT_GMP_NEEDED=y
|
CT_GMP_NEEDED=y
|
||||||
|
@ -930,6 +953,7 @@ CT_ISL_NEEDED=y
|
||||||
CT_MPC_NEEDED=y
|
CT_MPC_NEEDED=y
|
||||||
CT_NCURSES_NEEDED=y
|
CT_NCURSES_NEEDED=y
|
||||||
CT_ZLIB_NEEDED=y
|
CT_ZLIB_NEEDED=y
|
||||||
|
CT_ZSTD_NEEDED=y
|
||||||
CT_LIBICONV=y
|
CT_LIBICONV=y
|
||||||
CT_GETTEXT=y
|
CT_GETTEXT=y
|
||||||
CT_GMP=y
|
CT_GMP=y
|
||||||
|
@ -938,6 +962,7 @@ CT_ISL=y
|
||||||
CT_MPC=y
|
CT_MPC=y
|
||||||
CT_NCURSES=y
|
CT_NCURSES=y
|
||||||
CT_ZLIB=y
|
CT_ZLIB=y
|
||||||
|
CT_ZSTD=y
|
||||||
# end of Companion libraries
|
# end of Companion libraries
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
17
images/base-linux64/gen-implib.sh
Executable file
17
images/base-linux64/gen-implib.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
if [[ $# != 2 ]]; then
|
||||||
|
echo "Invalid arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
IN="$1"
|
||||||
|
OUT="$2"
|
||||||
|
|
||||||
|
TMPDIR="$(mktemp -d)"
|
||||||
|
trap "rm -rf '$TMPDIR'" EXIT
|
||||||
|
cd "$TMPDIR"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
python3 /opt/implib/implib-gen.py --target x86_64-linux-gnu --dlopen --lazy-load --verbose "$IN"
|
||||||
|
${FFBUILD_CROSS_PREFIX}gcc $CFLAGS $STAGE_CFLAGS -DIMPLIB_HIDDEN_SHIMS -c *.tramp.S *.init.c
|
||||||
|
${FFBUILD_CROSS_PREFIX}ar -rcs "$OUT" *.tramp.o *.init.o
|
|
@ -5,8 +5,8 @@ set(triple x86_64-ffbuild-linux-gnu)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER ${triple}-gcc)
|
set(CMAKE_C_COMPILER ${triple}-gcc)
|
||||||
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
||||||
set(CMAKE_RANLIB ${triple}-ranlib)
|
set(CMAKE_RANLIB ${triple}-gcc-ranlib)
|
||||||
set(CMAKE_AR ${triple}-ar)
|
set(CMAKE_AR ${triple}-gcc-ar)
|
||||||
|
|
||||||
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
||||||
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
||||||
|
|
63
images/base-linuxarm64/Dockerfile
Normal file
63
images/base-linuxarm64/Dockerfile
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
ARG GH_REPO=ghcr.io/btbn/ffmpeg-builds
|
||||||
|
FROM $GH_REPO/base:latest
|
||||||
|
|
||||||
|
RUN --mount=src=ct-ng-config,dst=/.config \
|
||||||
|
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
||||||
|
./bootstrap && \
|
||||||
|
./configure --enable-local && \
|
||||||
|
make -j$(nproc) && \
|
||||||
|
cp /.config .config && \
|
||||||
|
./ct-ng build && \
|
||||||
|
cd / && \
|
||||||
|
rm -rf ct-ng
|
||||||
|
|
||||||
|
# Prepare cross environment to heavily favour static builds
|
||||||
|
RUN \
|
||||||
|
find /opt/ct-ng -type l \
|
||||||
|
-and -name '*.so' \
|
||||||
|
-and -not -ipath '*plugin*' \
|
||||||
|
-and -not -name 'libdl.*' \
|
||||||
|
-and -not -name 'libc.*' \
|
||||||
|
-and -not -name 'libm.*' \
|
||||||
|
-and -not -name 'libmvec.*' \
|
||||||
|
-and -not -name 'librt.*' \
|
||||||
|
-and -not -name 'libpthread.*' \
|
||||||
|
-delete && \
|
||||||
|
find /opt/ct-ng \
|
||||||
|
-name 'libdl.a' \
|
||||||
|
-or -name 'libc.a' \
|
||||||
|
-or -name 'libm.a' \
|
||||||
|
-or -name 'libmvec.a' \
|
||||||
|
-or -name 'librt.a' \
|
||||||
|
-or -name 'libpthread.a' \
|
||||||
|
-delete && \
|
||||||
|
mkdir /opt/ffbuild
|
||||||
|
|
||||||
|
RUN rustup target add aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
ADD toolchain.cmake /toolchain.cmake
|
||||||
|
ADD cross.meson /cross.meson
|
||||||
|
|
||||||
|
ADD gen-implib.sh /usr/bin/gen-implib
|
||||||
|
RUN git clone --filter=blob:none --depth=1 https://github.com/yugr/Implib.so /opt/implib
|
||||||
|
|
||||||
|
ENV FFBUILD_TOOLCHAIN=aarch64-ffbuild-linux-gnu
|
||||||
|
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||||
|
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=${FFBUILD_TOOLCHAIN}- --arch=aarch64 --target-os=linux" \
|
||||||
|
FFBUILD_CROSS_PREFIX="${FFBUILD_TOOLCHAIN}-" \
|
||||||
|
FFBUILD_RUST_TARGET="aarch64-unknown-linux-gnu" \
|
||||||
|
FFBUILD_PREFIX=/opt/ffbuild \
|
||||||
|
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
||||||
|
PKG_CONFIG=pkg-config \
|
||||||
|
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
||||||
|
CC="${FFBUILD_TOOLCHAIN}-gcc" \
|
||||||
|
CXX="${FFBUILD_TOOLCHAIN}-g++" \
|
||||||
|
LD="${FFBUILD_TOOLCHAIN}-ld" \
|
||||||
|
AR="${FFBUILD_TOOLCHAIN}-gcc-ar" \
|
||||||
|
RANLIB="${FFBUILD_TOOLCHAIN}-gcc-ranlib" \
|
||||||
|
NM="${FFBUILD_TOOLCHAIN}-gcc-nm" \
|
||||||
|
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -pthread" \
|
||||||
|
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -pthread" \
|
||||||
|
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong -fstack-clash-protection -Wl,-z,relro,-z,now -pthread -lm" \
|
||||||
|
STAGE_CFLAGS="-fvisibility=hidden -fno-semantic-interposition" \
|
||||||
|
STAGE_CXXFLAGS="-fvisibility=hidden -fno-semantic-interposition"
|
13
images/base-linuxarm64/cross.meson
Normal file
13
images/base-linuxarm64/cross.meson
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[binaries]
|
||||||
|
c = 'aarch64-ffbuild-linux-gnu-gcc'
|
||||||
|
cpp = 'aarch64-ffbuild-linux-gnu-g++'
|
||||||
|
ld = 'aarch64-ffbuild-linux-gnu-ld'
|
||||||
|
ar = 'aarch64-ffbuild-linux-gnu-gcc-ar'
|
||||||
|
ranlib = 'x86_64-ffbuild-linux-gnu-gcc-ranlib'
|
||||||
|
strip = 'aarch64-ffbuild-linux-gnu-strip'
|
||||||
|
|
||||||
|
[host_machine]
|
||||||
|
system = 'linux'
|
||||||
|
cpu_family = 'aarch64'
|
||||||
|
cpu = 'aarch64'
|
||||||
|
endian = 'little'
|
998
images/base-linuxarm64/ct-ng-config
Normal file
998
images/base-linuxarm64/ct-ng-config
Normal file
|
@ -0,0 +1,998 @@
|
||||||
|
#
|
||||||
|
# Automatically generated file; DO NOT EDIT.
|
||||||
|
# crosstool-NG 1.25.0.196_227d99d Configuration
|
||||||
|
#
|
||||||
|
CT_CONFIGURE_has_static_link=y
|
||||||
|
CT_CONFIGURE_has_cxx11=y
|
||||||
|
CT_CONFIGURE_has_wget=y
|
||||||
|
CT_CONFIGURE_has_curl=y
|
||||||
|
CT_CONFIGURE_has_meson=y
|
||||||
|
CT_CONFIGURE_has_ninja=y
|
||||||
|
CT_CONFIGURE_has_rsync=y
|
||||||
|
CT_CONFIGURE_has_make_3_81_or_newer=y
|
||||||
|
CT_CONFIGURE_has_make_4_0_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtool_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoreconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_automake_1_16_or_newer=y
|
||||||
|
CT_CONFIGURE_has_gnu_m4_1_4_12_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python_3_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_2_7_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_3_0_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python=y
|
||||||
|
CT_CONFIGURE_has_svn=y
|
||||||
|
CT_CONFIGURE_has_git=y
|
||||||
|
CT_CONFIGURE_has_md5sum=y
|
||||||
|
CT_CONFIGURE_has_sha1sum=y
|
||||||
|
CT_CONFIGURE_has_sha256sum=y
|
||||||
|
CT_CONFIGURE_has_sha512sum=y
|
||||||
|
CT_CONFIGURE_has_install_with_strip_program=y
|
||||||
|
CT_VERSION="1.25.0.196_227d99d"
|
||||||
|
CT_VCHECK=""
|
||||||
|
CT_CONFIG_VERSION_ENV="4"
|
||||||
|
CT_CONFIG_VERSION_CURRENT="4"
|
||||||
|
CT_CONFIG_VERSION="4"
|
||||||
|
CT_MODULES=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths and misc options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# crosstool-NG behavior
|
||||||
|
#
|
||||||
|
CT_OBSOLETE=y
|
||||||
|
CT_EXPERIMENTAL=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT_SURE=y
|
||||||
|
# CT_ENABLE_EXPERIMENTAL_BUNDLED_PATCHES is not set
|
||||||
|
# CT_DEBUG_CT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths
|
||||||
|
#
|
||||||
|
CT_LOCAL_TARBALLS_DIR="${HOME}/src"
|
||||||
|
# CT_SAVE_TARBALLS is not set
|
||||||
|
# CT_TARBALLS_BUILDROOT_LAYOUT is not set
|
||||||
|
CT_WORK_DIR="${CT_TOP_DIR}/build"
|
||||||
|
CT_BUILD_TOP_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
||||||
|
CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
|
||||||
|
CT_PREFIX_DIR="/opt/ct-ng"
|
||||||
|
CT_RM_RF_PREFIX_DIR=y
|
||||||
|
CT_REMOVE_DOCS=y
|
||||||
|
# CT_INSTALL_LICENSES is not set
|
||||||
|
# CT_PREFIX_DIR_RO is not set
|
||||||
|
CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
# CT_TARBALL_RESULT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Downloading
|
||||||
|
#
|
||||||
|
CT_DOWNLOAD_AGENT_WGET=y
|
||||||
|
# CT_DOWNLOAD_AGENT_CURL is not set
|
||||||
|
# CT_DOWNLOAD_AGENT_NONE is not set
|
||||||
|
# CT_FORBID_DOWNLOAD is not set
|
||||||
|
# CT_FORCE_DOWNLOAD is not set
|
||||||
|
CT_CONNECT_TIMEOUT=10
|
||||||
|
CT_DOWNLOAD_WGET_OPTIONS="--passive-ftp --tries=3 -nc --progress=dot:binary"
|
||||||
|
# CT_ONLY_DOWNLOAD is not set
|
||||||
|
# CT_USE_MIRROR is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST=y
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_SHA512=y
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA256 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA1 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_MD5 is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_ALG="sha512"
|
||||||
|
# CT_VERIFY_DOWNLOAD_SIGNATURE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Extracting
|
||||||
|
#
|
||||||
|
# CT_FORCE_EXTRACT is not set
|
||||||
|
CT_OVERRIDE_CONFIG_GUESS_SUB=y
|
||||||
|
# CT_ONLY_EXTRACT is not set
|
||||||
|
CT_PATCH_BUNDLED=y
|
||||||
|
# CT_PATCH_LOCAL is not set
|
||||||
|
# CT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_PATCH_NONE is not set
|
||||||
|
CT_PATCH_ORDER="bundled"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build behavior
|
||||||
|
#
|
||||||
|
CT_PARALLEL_JOBS=0
|
||||||
|
CT_LOAD=""
|
||||||
|
CT_USE_PIPES=y
|
||||||
|
CT_EXTRA_CFLAGS_FOR_BUILD="-fPIC -DPIC"
|
||||||
|
CT_EXTRA_CXXFLAGS_FOR_BUILD="-fPIC -DPIC"
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_CFLAGS_FOR_HOST="-fPIC -DPIC"
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_HOST=""
|
||||||
|
# CT_CONFIG_SHELL_SH is not set
|
||||||
|
# CT_CONFIG_SHELL_ASH is not set
|
||||||
|
CT_CONFIG_SHELL_BASH=y
|
||||||
|
# CT_CONFIG_SHELL_CUSTOM is not set
|
||||||
|
CT_CONFIG_SHELL="${bash}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logging
|
||||||
|
#
|
||||||
|
# CT_LOG_ERROR is not set
|
||||||
|
# CT_LOG_WARN is not set
|
||||||
|
# CT_LOG_INFO is not set
|
||||||
|
# CT_LOG_EXTRA is not set
|
||||||
|
# CT_LOG_ALL is not set
|
||||||
|
CT_LOG_DEBUG=y
|
||||||
|
CT_LOG_LEVEL_MAX="DEBUG"
|
||||||
|
# CT_LOG_SEE_TOOLS_WARN is not set
|
||||||
|
# CT_LOG_TO_FILE is not set
|
||||||
|
# end of Paths and misc options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target options
|
||||||
|
#
|
||||||
|
# CT_ARCH_ALPHA is not set
|
||||||
|
# CT_ARCH_ARC is not set
|
||||||
|
CT_ARCH_ARM=y
|
||||||
|
# CT_ARCH_AVR is not set
|
||||||
|
# CT_ARCH_BPF is not set
|
||||||
|
# CT_ARCH_C6X is not set
|
||||||
|
# CT_ARCH_LOONGARCH is not set
|
||||||
|
# CT_ARCH_M68K is not set
|
||||||
|
# CT_ARCH_MICROBLAZE is not set
|
||||||
|
# CT_ARCH_MIPS is not set
|
||||||
|
# CT_ARCH_MOXIE is not set
|
||||||
|
# CT_ARCH_MSP430 is not set
|
||||||
|
# CT_ARCH_NIOS2 is not set
|
||||||
|
# CT_ARCH_POWERPC is not set
|
||||||
|
# CT_ARCH_PRU is not set
|
||||||
|
# CT_ARCH_RISCV is not set
|
||||||
|
# CT_ARCH_S390 is not set
|
||||||
|
# CT_ARCH_SH is not set
|
||||||
|
# CT_ARCH_SPARC is not set
|
||||||
|
# CT_ARCH_X86 is not set
|
||||||
|
# CT_ARCH_XTENSA is not set
|
||||||
|
CT_ARCH="arm"
|
||||||
|
CT_ARCH_CHOICE_KSYM="ARM"
|
||||||
|
CT_ARCH_CPU=""
|
||||||
|
CT_ARCH_TUNE=""
|
||||||
|
CT_ARCH_ARM_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for arm
|
||||||
|
#
|
||||||
|
CT_ARCH_ARM_PKG_KSYM=""
|
||||||
|
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR BPF C6X LOONGARCH M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
|
||||||
|
CT_ARCH_SUFFIX=""
|
||||||
|
# CT_OMIT_TARGET_VENDOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic target options
|
||||||
|
#
|
||||||
|
# CT_MULTILIB is not set
|
||||||
|
CT_DEMULTILIB=y
|
||||||
|
CT_ARCH_SUPPORTS_BOTH_MMU=y
|
||||||
|
CT_ARCH_DEFAULT_HAS_MMU=y
|
||||||
|
CT_ARCH_USE_MMU=y
|
||||||
|
CT_ARCH_SUPPORTS_FLAT_FORMAT=y
|
||||||
|
CT_ARCH_SUPPORTS_LIBSANITIZER=y
|
||||||
|
CT_ARCH_SUPPORTS_EITHER_ENDIAN=y
|
||||||
|
CT_ARCH_DEFAULT_LE=y
|
||||||
|
# CT_ARCH_BE is not set
|
||||||
|
CT_ARCH_LE=y
|
||||||
|
CT_ARCH_ENDIAN="little"
|
||||||
|
CT_ARCH_SUPPORTS_32=y
|
||||||
|
CT_ARCH_SUPPORTS_64=y
|
||||||
|
CT_ARCH_DEFAULT_32=y
|
||||||
|
CT_ARCH_BITNESS=64
|
||||||
|
# CT_ARCH_32 is not set
|
||||||
|
CT_ARCH_64=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target optimisations
|
||||||
|
#
|
||||||
|
CT_ARCH_SUPPORTS_WITH_ARCH=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_CPU=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_TUNE=y
|
||||||
|
CT_ARCH_EXCLUSIVE_WITH_CPU=y
|
||||||
|
CT_ARCH_ARCH=""
|
||||||
|
CT_TARGET_CFLAGS="-fPIC -DPIC"
|
||||||
|
CT_TARGET_LDFLAGS=""
|
||||||
|
# end of Target options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# General toolchain options
|
||||||
|
#
|
||||||
|
CT_USE_SYSROOT=y
|
||||||
|
CT_SYSROOT_NAME="sysroot"
|
||||||
|
CT_SYSROOT_DIR_PREFIX=""
|
||||||
|
# CT_STATIC_TOOLCHAIN is not set
|
||||||
|
CT_SHOW_CT_VERSION=y
|
||||||
|
CT_TOOLCHAIN_PKGVERSION=""
|
||||||
|
CT_TOOLCHAIN_BUGURL=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tuple completion and aliasing
|
||||||
|
#
|
||||||
|
CT_TARGET_VENDOR="ffbuild"
|
||||||
|
CT_TARGET_ALIAS_SED_EXPR=""
|
||||||
|
CT_TARGET_ALIAS=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain type
|
||||||
|
#
|
||||||
|
# CT_NATIVE is not set
|
||||||
|
CT_CROSS=y
|
||||||
|
# CT_CROSS_NATIVE is not set
|
||||||
|
# CT_CANADIAN is not set
|
||||||
|
CT_TOOLCHAIN_TYPE="cross"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build system
|
||||||
|
#
|
||||||
|
CT_BUILD=""
|
||||||
|
CT_BUILD_PREFIX=""
|
||||||
|
CT_BUILD_SUFFIX=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc options
|
||||||
|
#
|
||||||
|
# CT_TOOLCHAIN_ENABLE_NLS is not set
|
||||||
|
# end of Toolchain options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Operating System
|
||||||
|
#
|
||||||
|
CT_KERNEL_SUPPORTS_SHARED_LIBS=y
|
||||||
|
# CT_KERNEL_BARE_METAL is not set
|
||||||
|
CT_KERNEL_LINUX=y
|
||||||
|
CT_KERNEL="linux"
|
||||||
|
CT_KERNEL_CHOICE_KSYM="LINUX"
|
||||||
|
CT_KERNEL_LINUX_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for linux
|
||||||
|
#
|
||||||
|
CT_KERNEL_LINUX_PKG_KSYM="LINUX"
|
||||||
|
CT_LINUX_DIR_NAME="linux"
|
||||||
|
CT_LINUX_USE_WWW_KERNEL_ORG=y
|
||||||
|
# CT_LINUX_USE_ORACLE is not set
|
||||||
|
CT_LINUX_USE="LINUX"
|
||||||
|
CT_LINUX_PKG_NAME="linux"
|
||||||
|
CT_LINUX_SRC_RELEASE=y
|
||||||
|
# CT_LINUX_SRC_DEVEL is not set
|
||||||
|
# CT_LINUX_SRC_CUSTOM is not set
|
||||||
|
CT_LINUX_PATCH_GLOBAL=y
|
||||||
|
# CT_LINUX_PATCH_BUNDLED is not set
|
||||||
|
# CT_LINUX_PATCH_LOCAL is not set
|
||||||
|
# CT_LINUX_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_LINUX_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_LINUX_PATCH_NONE is not set
|
||||||
|
CT_LINUX_PATCH_ORDER="global"
|
||||||
|
# CT_LINUX_V_6_3 is not set
|
||||||
|
# CT_LINUX_V_6_2 is not set
|
||||||
|
# CT_LINUX_V_6_1 is not set
|
||||||
|
# CT_LINUX_V_6_0 is not set
|
||||||
|
# CT_LINUX_V_5_19 is not set
|
||||||
|
# CT_LINUX_V_5_18 is not set
|
||||||
|
# CT_LINUX_V_5_17 is not set
|
||||||
|
# CT_LINUX_V_5_16 is not set
|
||||||
|
# CT_LINUX_V_5_15 is not set
|
||||||
|
# CT_LINUX_V_5_14 is not set
|
||||||
|
# CT_LINUX_V_5_13 is not set
|
||||||
|
# CT_LINUX_V_5_12 is not set
|
||||||
|
# CT_LINUX_V_5_11 is not set
|
||||||
|
# CT_LINUX_V_5_10 is not set
|
||||||
|
# CT_LINUX_V_5_9 is not set
|
||||||
|
# CT_LINUX_V_5_8 is not set
|
||||||
|
# CT_LINUX_V_5_7 is not set
|
||||||
|
# CT_LINUX_V_5_5 is not set
|
||||||
|
# CT_LINUX_V_5_4 is not set
|
||||||
|
# CT_LINUX_V_5_3 is not set
|
||||||
|
# CT_LINUX_V_5_2 is not set
|
||||||
|
# CT_LINUX_V_5_1 is not set
|
||||||
|
# CT_LINUX_V_5_0 is not set
|
||||||
|
# CT_LINUX_V_4_20 is not set
|
||||||
|
# CT_LINUX_V_4_19 is not set
|
||||||
|
# CT_LINUX_V_4_18 is not set
|
||||||
|
# CT_LINUX_V_4_17 is not set
|
||||||
|
# CT_LINUX_V_4_16 is not set
|
||||||
|
CT_LINUX_V_4_15=y
|
||||||
|
# CT_LINUX_V_4_14 is not set
|
||||||
|
# CT_LINUX_V_4_13 is not set
|
||||||
|
# CT_LINUX_V_4_12 is not set
|
||||||
|
# CT_LINUX_V_4_11 is not set
|
||||||
|
# CT_LINUX_V_4_10 is not set
|
||||||
|
# CT_LINUX_V_4_9 is not set
|
||||||
|
# CT_LINUX_V_4_4 is not set
|
||||||
|
# CT_LINUX_V_4_1 is not set
|
||||||
|
# CT_LINUX_V_3_18 is not set
|
||||||
|
# CT_LINUX_V_3_16 is not set
|
||||||
|
# CT_LINUX_V_3_13 is not set
|
||||||
|
# CT_LINUX_V_3_12 is not set
|
||||||
|
# CT_LINUX_V_3_10 is not set
|
||||||
|
CT_LINUX_VERSION="4.15.18"
|
||||||
|
CT_LINUX_MIRRORS="$(CT_Mirrors kernel.org linux ${CT_LINUX_VERSION})"
|
||||||
|
CT_LINUX_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_LINUX_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_LINUX_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_LINUX_SIGNATURE_FORMAT="unpacked/.sign"
|
||||||
|
CT_LINUX_5_19_or_older=y
|
||||||
|
CT_LINUX_older_than_5_19=y
|
||||||
|
CT_LINUX_5_12_or_older=y
|
||||||
|
CT_LINUX_older_than_5_12=y
|
||||||
|
CT_LINUX_5_5_or_older=y
|
||||||
|
CT_LINUX_older_than_5_5=y
|
||||||
|
CT_LINUX_5_3_or_older=y
|
||||||
|
CT_LINUX_older_than_5_3=y
|
||||||
|
CT_LINUX_later_than_4_8=y
|
||||||
|
CT_LINUX_4_8_or_later=y
|
||||||
|
CT_LINUX_later_than_3_7=y
|
||||||
|
CT_LINUX_3_7_or_later=y
|
||||||
|
CT_LINUX_REQUIRE_3_7_or_later=y
|
||||||
|
CT_LINUX_later_than_3_2=y
|
||||||
|
CT_LINUX_3_2_or_later=y
|
||||||
|
CT_LINUX_REQUIRE_3_2_or_later=y
|
||||||
|
CT_KERNEL_DEP_RSYNC=y
|
||||||
|
CT_KERNEL_LINUX_VERBOSITY_0=y
|
||||||
|
# CT_KERNEL_LINUX_VERBOSITY_1 is not set
|
||||||
|
# CT_KERNEL_LINUX_VERBOSITY_2 is not set
|
||||||
|
CT_KERNEL_LINUX_VERBOSE_LEVEL=0
|
||||||
|
# CT_KERNEL_LINUX_INSTALL_CHECK is not set
|
||||||
|
CT_ALL_KERNEL_CHOICES="BARE_METAL LINUX WINDOWS"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common kernel options
|
||||||
|
#
|
||||||
|
CT_SHARED_LIBS=y
|
||||||
|
# end of Operating System
|
||||||
|
|
||||||
|
#
|
||||||
|
# Binary utilities
|
||||||
|
#
|
||||||
|
CT_ARCH_BINFMT_ELF=y
|
||||||
|
CT_BINUTILS_BINUTILS=y
|
||||||
|
CT_BINUTILS="binutils"
|
||||||
|
CT_BINUTILS_CHOICE_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_BINUTILS_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_BINUTILS_PKG_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_DIR_NAME="binutils"
|
||||||
|
CT_BINUTILS_USE_GNU=y
|
||||||
|
# CT_BINUTILS_USE_LINARO is not set
|
||||||
|
# CT_BINUTILS_USE_ORACLE is not set
|
||||||
|
CT_BINUTILS_USE="BINUTILS"
|
||||||
|
CT_BINUTILS_PKG_NAME="binutils"
|
||||||
|
CT_BINUTILS_SRC_RELEASE=y
|
||||||
|
# CT_BINUTILS_SRC_DEVEL is not set
|
||||||
|
# CT_BINUTILS_SRC_CUSTOM is not set
|
||||||
|
CT_BINUTILS_PATCH_GLOBAL=y
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_NONE is not set
|
||||||
|
CT_BINUTILS_PATCH_ORDER="global"
|
||||||
|
CT_BINUTILS_V_2_40=y
|
||||||
|
# CT_BINUTILS_V_2_39 is not set
|
||||||
|
# CT_BINUTILS_V_2_38 is not set
|
||||||
|
# CT_BINUTILS_V_2_37 is not set
|
||||||
|
# CT_BINUTILS_V_2_36 is not set
|
||||||
|
# CT_BINUTILS_V_2_35 is not set
|
||||||
|
# CT_BINUTILS_V_2_34 is not set
|
||||||
|
# CT_BINUTILS_V_2_33 is not set
|
||||||
|
# CT_BINUTILS_V_2_32 is not set
|
||||||
|
# CT_BINUTILS_V_2_31 is not set
|
||||||
|
# CT_BINUTILS_V_2_30 is not set
|
||||||
|
# CT_BINUTILS_V_2_29 is not set
|
||||||
|
# CT_BINUTILS_V_2_28 is not set
|
||||||
|
# CT_BINUTILS_V_2_27 is not set
|
||||||
|
# CT_BINUTILS_V_2_26 is not set
|
||||||
|
CT_BINUTILS_VERSION="2.40"
|
||||||
|
CT_BINUTILS_MIRRORS="$(CT_Mirrors GNU binutils) $(CT_Mirrors sourceware binutils/releases)"
|
||||||
|
CT_BINUTILS_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_BINUTILS_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_BINUTILS_later_than_2_39=y
|
||||||
|
CT_BINUTILS_2_39_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_30=y
|
||||||
|
CT_BINUTILS_2_30_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_27=y
|
||||||
|
CT_BINUTILS_2_27_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_26=y
|
||||||
|
CT_BINUTILS_2_26_or_later=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# GNU binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
|
||||||
|
CT_BINUTILS_GOLD_SUPPORT=y
|
||||||
|
CT_BINUTILS_FORCE_LD_BFD_DEFAULT=y
|
||||||
|
CT_BINUTILS_LINKER_LD=y
|
||||||
|
# CT_BINUTILS_LINKER_LD_GOLD is not set
|
||||||
|
CT_BINUTILS_LINKERS_LIST="ld"
|
||||||
|
CT_BINUTILS_LINKER_DEFAULT="bfd"
|
||||||
|
CT_BINUTILS_PLUGINS=y
|
||||||
|
CT_BINUTILS_RELRO=m
|
||||||
|
CT_BINUTILS_DETERMINISTIC_ARCHIVES=y
|
||||||
|
CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
|
||||||
|
# CT_BINUTILS_FOR_TARGET is not set
|
||||||
|
CT_ALL_BINUTILS_CHOICES="BINUTILS"
|
||||||
|
# end of Binary utilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# C-library
|
||||||
|
#
|
||||||
|
CT_LIBC_GLIBC=y
|
||||||
|
# CT_LIBC_MUSL is not set
|
||||||
|
# CT_LIBC_UCLIBC_NG is not set
|
||||||
|
CT_LIBC="glibc"
|
||||||
|
CT_LIBC_CHOICE_KSYM="GLIBC"
|
||||||
|
CT_LIBC_GLIBC_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for glibc
|
||||||
|
#
|
||||||
|
CT_LIBC_GLIBC_PKG_KSYM="GLIBC"
|
||||||
|
CT_GLIBC_DIR_NAME="glibc"
|
||||||
|
CT_GLIBC_USE_GNU=y
|
||||||
|
# CT_GLIBC_USE_ORACLE is not set
|
||||||
|
CT_GLIBC_USE="GLIBC"
|
||||||
|
CT_GLIBC_PKG_NAME="glibc"
|
||||||
|
CT_GLIBC_SRC_RELEASE=y
|
||||||
|
# CT_GLIBC_SRC_DEVEL is not set
|
||||||
|
# CT_GLIBC_SRC_CUSTOM is not set
|
||||||
|
CT_GLIBC_PATCH_GLOBAL=y
|
||||||
|
# CT_GLIBC_PATCH_BUNDLED is not set
|
||||||
|
# CT_GLIBC_PATCH_LOCAL is not set
|
||||||
|
# CT_GLIBC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GLIBC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GLIBC_PATCH_NONE is not set
|
||||||
|
CT_GLIBC_PATCH_ORDER="global"
|
||||||
|
# CT_GLIBC_V_2_37 is not set
|
||||||
|
# CT_GLIBC_V_2_36 is not set
|
||||||
|
# CT_GLIBC_V_2_35 is not set
|
||||||
|
# CT_GLIBC_V_2_34 is not set
|
||||||
|
# CT_GLIBC_V_2_33 is not set
|
||||||
|
# CT_GLIBC_V_2_32 is not set
|
||||||
|
# CT_GLIBC_V_2_31 is not set
|
||||||
|
# CT_GLIBC_V_2_30 is not set
|
||||||
|
# CT_GLIBC_V_2_29 is not set
|
||||||
|
# CT_GLIBC_V_2_28 is not set
|
||||||
|
CT_GLIBC_V_2_27=y
|
||||||
|
# CT_GLIBC_V_2_26 is not set
|
||||||
|
# CT_GLIBC_V_2_25 is not set
|
||||||
|
# CT_GLIBC_V_2_24 is not set
|
||||||
|
# CT_GLIBC_V_2_23 is not set
|
||||||
|
# CT_GLIBC_V_2_19 is not set
|
||||||
|
# CT_GLIBC_V_2_17 is not set
|
||||||
|
CT_GLIBC_VERSION="2.27"
|
||||||
|
CT_GLIBC_MIRRORS="$(CT_Mirrors GNU glibc)"
|
||||||
|
CT_GLIBC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GLIBC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GLIBC_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_GLIBC_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GLIBC_2_37_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_37=y
|
||||||
|
CT_GLIBC_2_36_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_36=y
|
||||||
|
CT_GLIBC_2_34_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_34=y
|
||||||
|
CT_GLIBC_2_32_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_32=y
|
||||||
|
CT_GLIBC_2_31_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_31=y
|
||||||
|
CT_GLIBC_2_30_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_30=y
|
||||||
|
CT_GLIBC_2_29_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_29=y
|
||||||
|
CT_GLIBC_2_28_or_older=y
|
||||||
|
CT_GLIBC_older_than_2_28=y
|
||||||
|
CT_GLIBC_2_27_or_later=y
|
||||||
|
CT_GLIBC_2_27_or_older=y
|
||||||
|
CT_GLIBC_later_than_2_26=y
|
||||||
|
CT_GLIBC_2_26_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_25=y
|
||||||
|
CT_GLIBC_2_25_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_24=y
|
||||||
|
CT_GLIBC_2_24_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_23=y
|
||||||
|
CT_GLIBC_2_23_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_20=y
|
||||||
|
CT_GLIBC_2_20_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_17=y
|
||||||
|
CT_GLIBC_2_17_or_later=y
|
||||||
|
CT_GLIBC_later_than_2_14=y
|
||||||
|
CT_GLIBC_2_14_or_later=y
|
||||||
|
CT_GLIBC_DEP_KERNEL_HEADERS_VERSION=y
|
||||||
|
CT_GLIBC_DEP_BINUTILS=y
|
||||||
|
CT_GLIBC_DEP_GCC=y
|
||||||
|
CT_GLIBC_DEP_PYTHON=y
|
||||||
|
CT_GLIBC_SPARC_ALLOW_V7=y
|
||||||
|
CT_THREADS="nptl"
|
||||||
|
CT_GLIBC_BUILD_SSP=y
|
||||||
|
CT_GLIBC_HAS_LIBIDN_ADDON=y
|
||||||
|
# CT_GLIBC_USE_LIBIDN_ADDON is not set
|
||||||
|
CT_GLIBC_NO_SPARC_V8=y
|
||||||
|
CT_GLIBC_HAS_OBSOLETE_RPC=y
|
||||||
|
CT_GLIBC_EXTRA_CONFIG_ARRAY="--with-pic"
|
||||||
|
CT_GLIBC_CONFIGPARMS=""
|
||||||
|
# CT_GLIBC_ENABLE_DEBUG is not set
|
||||||
|
CT_GLIBC_EXTRA_CFLAGS="-fPIC -DPIC"
|
||||||
|
CT_GLIBC_ENABLE_OBSOLETE_RPC=y
|
||||||
|
# CT_GLIBC_ENABLE_FORTIFIED_BUILD is not set
|
||||||
|
# CT_GLIBC_DISABLE_VERSIONING is not set
|
||||||
|
CT_GLIBC_OLDEST_ABI=""
|
||||||
|
CT_GLIBC_FORCE_UNWIND=y
|
||||||
|
# CT_GLIBC_LOCALES is not set
|
||||||
|
# CT_GLIBC_KERNEL_VERSION_NONE is not set
|
||||||
|
CT_GLIBC_KERNEL_VERSION_AS_HEADERS=y
|
||||||
|
# CT_GLIBC_KERNEL_VERSION_CHOSEN is not set
|
||||||
|
CT_GLIBC_MIN_KERNEL="4.15.18"
|
||||||
|
CT_GLIBC_SSP_DEFAULT=y
|
||||||
|
# CT_GLIBC_SSP_NO is not set
|
||||||
|
# CT_GLIBC_SSP_YES is not set
|
||||||
|
# CT_GLIBC_SSP_ALL is not set
|
||||||
|
# CT_GLIBC_SSP_STRONG is not set
|
||||||
|
CT_GLIBC_ENABLE_COMMON_FLAG=y
|
||||||
|
CT_ALL_LIBC_CHOICES="AVR_LIBC GLIBC MINGW_W64 MOXIEBOX MUSL NEWLIB NONE PICOLIBC UCLIBC_NG"
|
||||||
|
CT_LIBC_SUPPORT_THREADS_ANY=y
|
||||||
|
CT_LIBC_SUPPORT_THREADS_NATIVE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common C library options
|
||||||
|
#
|
||||||
|
CT_THREADS_NATIVE=y
|
||||||
|
# CT_CREATE_LDSO_CONF is not set
|
||||||
|
CT_LIBC_XLDD=y
|
||||||
|
# end of C-library
|
||||||
|
|
||||||
|
#
|
||||||
|
# C compiler
|
||||||
|
#
|
||||||
|
CT_CC_CORE_NEEDED=y
|
||||||
|
CT_CC_SUPPORT_CXX=y
|
||||||
|
CT_CC_SUPPORT_FORTRAN=y
|
||||||
|
CT_CC_SUPPORT_ADA=y
|
||||||
|
CT_CC_SUPPORT_D=y
|
||||||
|
CT_CC_SUPPORT_JIT=y
|
||||||
|
CT_CC_SUPPORT_OBJC=y
|
||||||
|
CT_CC_SUPPORT_OBJCXX=y
|
||||||
|
CT_CC_SUPPORT_GOLANG=y
|
||||||
|
CT_CC_GCC=y
|
||||||
|
CT_CC="gcc"
|
||||||
|
CT_CC_CHOICE_KSYM="GCC"
|
||||||
|
CT_CC_GCC_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for gcc
|
||||||
|
#
|
||||||
|
CT_CC_GCC_PKG_KSYM="GCC"
|
||||||
|
CT_GCC_DIR_NAME="gcc"
|
||||||
|
CT_GCC_USE_GNU=y
|
||||||
|
# CT_GCC_USE_LINARO is not set
|
||||||
|
# CT_GCC_USE_ORACLE is not set
|
||||||
|
CT_GCC_USE="GCC"
|
||||||
|
CT_GCC_PKG_NAME="gcc"
|
||||||
|
CT_GCC_SRC_RELEASE=y
|
||||||
|
# CT_GCC_SRC_DEVEL is not set
|
||||||
|
# CT_GCC_SRC_CUSTOM is not set
|
||||||
|
CT_GCC_PATCH_GLOBAL=y
|
||||||
|
# CT_GCC_PATCH_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_NONE is not set
|
||||||
|
CT_GCC_PATCH_ORDER="global"
|
||||||
|
CT_GCC_V_13=y
|
||||||
|
# CT_GCC_V_12 is not set
|
||||||
|
# CT_GCC_V_11 is not set
|
||||||
|
# CT_GCC_V_10 is not set
|
||||||
|
# CT_GCC_V_9 is not set
|
||||||
|
# CT_GCC_V_8 is not set
|
||||||
|
# CT_GCC_V_7 is not set
|
||||||
|
# CT_GCC_V_6 is not set
|
||||||
|
# CT_GCC_V_5 is not set
|
||||||
|
# CT_GCC_V_4_9 is not set
|
||||||
|
CT_GCC_VERSION="13.1.0"
|
||||||
|
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
|
||||||
|
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GCC_SIGNATURE_FORMAT=""
|
||||||
|
CT_GCC_later_than_13=y
|
||||||
|
CT_GCC_13_or_later=y
|
||||||
|
CT_GCC_later_than_12=y
|
||||||
|
CT_GCC_12_or_later=y
|
||||||
|
CT_GCC_later_than_11=y
|
||||||
|
CT_GCC_11_or_later=y
|
||||||
|
CT_GCC_later_than_10=y
|
||||||
|
CT_GCC_10_or_later=y
|
||||||
|
CT_GCC_later_than_9=y
|
||||||
|
CT_GCC_9_or_later=y
|
||||||
|
CT_GCC_later_than_8=y
|
||||||
|
CT_GCC_8_or_later=y
|
||||||
|
CT_GCC_later_than_7=y
|
||||||
|
CT_GCC_7_or_later=y
|
||||||
|
CT_GCC_later_than_6=y
|
||||||
|
CT_GCC_6_or_later=y
|
||||||
|
CT_GCC_later_than_5=y
|
||||||
|
CT_GCC_5_or_later=y
|
||||||
|
CT_GCC_later_than_4_9=y
|
||||||
|
CT_GCC_4_9_or_later=y
|
||||||
|
CT_GCC_REQUIRE_4_9_or_later=y
|
||||||
|
CT_CC_GCC_ENABLE_PLUGINS=y
|
||||||
|
CT_CC_GCC_HAS_LIBMPX=y
|
||||||
|
CT_CC_GCC_ENABLE_CXX_FLAGS=""
|
||||||
|
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp"
|
||||||
|
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-host-shared --enable-default-ssp --with-build-config=bootstrap-lto-lean --enable-link-serialization=2"
|
||||||
|
# CT_CC_GCC_STATIC_LIBSTDCXX is not set
|
||||||
|
# CT_CC_GCC_SYSTEM_ZLIB is not set
|
||||||
|
CT_CC_GCC_CONFIG_TLS=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Optimisation features
|
||||||
|
#
|
||||||
|
CT_CC_GCC_USE_GRAPHITE=y
|
||||||
|
CT_CC_GCC_USE_LTO=y
|
||||||
|
CT_CC_GCC_LTO_ZSTD=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for libraries running on target
|
||||||
|
#
|
||||||
|
CT_CC_GCC_ENABLE_DEFAULT_PIE=y
|
||||||
|
# CT_CC_GCC_ENABLE_TARGET_OPTSPACE is not set
|
||||||
|
# CT_CC_GCC_LIBMUDFLAP is not set
|
||||||
|
CT_CC_GCC_LIBGOMP=y
|
||||||
|
CT_CC_GCC_LIBSSP=m
|
||||||
|
# CT_CC_GCC_LIBQUADMATH is not set
|
||||||
|
# CT_CC_GCC_LIBSANITIZER is not set
|
||||||
|
# CT_CC_GCC_LIBSTDCXX_VERBOSE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc. obscure options.
|
||||||
|
#
|
||||||
|
CT_CC_CXA_ATEXIT=y
|
||||||
|
CT_CC_GCC_TM_CLONE_REGISTRY=m
|
||||||
|
# CT_CC_GCC_DISABLE_PCH is not set
|
||||||
|
CT_CC_GCC_SJLJ_EXCEPTIONS=m
|
||||||
|
CT_CC_GCC_LDBL_128=m
|
||||||
|
# CT_CC_GCC_BUILD_ID is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_SYSV is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_GNU is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_BOTH is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE=""
|
||||||
|
CT_CC_GCC_DEC_FLOATS_AUTO=y
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_BID is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_DPD is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_NO is not set
|
||||||
|
CT_CC_GCC_DEC_FLOATS=""
|
||||||
|
CT_ALL_CC_CHOICES="GCC"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Additional supported languages:
|
||||||
|
#
|
||||||
|
CT_CC_LANG_CXX=y
|
||||||
|
# CT_CC_LANG_FORTRAN is not set
|
||||||
|
# CT_CC_LANG_JIT is not set
|
||||||
|
# CT_CC_LANG_ADA is not set
|
||||||
|
# CT_CC_LANG_D is not set
|
||||||
|
# CT_CC_LANG_OBJC is not set
|
||||||
|
# CT_CC_LANG_OBJCXX is not set
|
||||||
|
# CT_CC_LANG_GOLANG is not set
|
||||||
|
CT_CC_LANG_OTHERS=""
|
||||||
|
# end of C compiler
|
||||||
|
|
||||||
|
#
|
||||||
|
# Debug facilities
|
||||||
|
#
|
||||||
|
# CT_DEBUG_DUMA is not set
|
||||||
|
# CT_DEBUG_GDB is not set
|
||||||
|
# CT_DEBUG_LTRACE is not set
|
||||||
|
# CT_DEBUG_STRACE is not set
|
||||||
|
CT_ALL_DEBUG_CHOICES="DUMA GDB LTRACE STRACE"
|
||||||
|
# end of Debug facilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion libraries
|
||||||
|
#
|
||||||
|
# CT_COMPLIBS_CHECK is not set
|
||||||
|
# CT_COMP_LIBS_CLOOG is not set
|
||||||
|
# CT_COMP_LIBS_EXPAT is not set
|
||||||
|
CT_COMP_LIBS_GETTEXT=y
|
||||||
|
CT_COMP_LIBS_GETTEXT_PKG_KSYM="GETTEXT"
|
||||||
|
CT_GETTEXT_DIR_NAME="gettext"
|
||||||
|
CT_GETTEXT_PKG_NAME="gettext"
|
||||||
|
CT_GETTEXT_SRC_RELEASE=y
|
||||||
|
# CT_GETTEXT_SRC_DEVEL is not set
|
||||||
|
# CT_GETTEXT_SRC_CUSTOM is not set
|
||||||
|
CT_GETTEXT_PATCH_GLOBAL=y
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_NONE is not set
|
||||||
|
CT_GETTEXT_PATCH_ORDER="global"
|
||||||
|
CT_GETTEXT_V_0_21=y
|
||||||
|
# CT_GETTEXT_V_0_20_1 is not set
|
||||||
|
# CT_GETTEXT_V_0_19_8_1 is not set
|
||||||
|
CT_GETTEXT_VERSION="0.21"
|
||||||
|
CT_GETTEXT_MIRRORS="$(CT_Mirrors GNU gettext)"
|
||||||
|
CT_GETTEXT_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GETTEXT_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GETTEXT_0_21_or_later=y
|
||||||
|
CT_GETTEXT_0_21_or_older=y
|
||||||
|
CT_GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# This version of gettext is not compatible with uClibc-NG. Select
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# a different version if uClibc-NG is used on the target or (in a
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Canadian cross build) on the host.
|
||||||
|
#
|
||||||
|
CT_COMP_LIBS_GMP=y
|
||||||
|
CT_COMP_LIBS_GMP_PKG_KSYM="GMP"
|
||||||
|
CT_GMP_DIR_NAME="gmp"
|
||||||
|
CT_GMP_PKG_NAME="gmp"
|
||||||
|
CT_GMP_SRC_RELEASE=y
|
||||||
|
# CT_GMP_SRC_DEVEL is not set
|
||||||
|
# CT_GMP_SRC_CUSTOM is not set
|
||||||
|
CT_GMP_PATCH_GLOBAL=y
|
||||||
|
# CT_GMP_PATCH_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_NONE is not set
|
||||||
|
CT_GMP_PATCH_ORDER="global"
|
||||||
|
CT_GMP_V_6_2=y
|
||||||
|
# CT_GMP_V_6_1 is not set
|
||||||
|
CT_GMP_VERSION="6.2.1"
|
||||||
|
CT_GMP_MIRRORS="https://gmplib.org/download/gmp https://gmplib.org/download/gmp/archive $(CT_Mirrors GNU gmp)"
|
||||||
|
CT_GMP_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_FORMATS=".tar.xz .tar.lz .tar.bz2"
|
||||||
|
CT_GMP_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_COMP_LIBS_ISL=y
|
||||||
|
CT_COMP_LIBS_ISL_PKG_KSYM="ISL"
|
||||||
|
CT_ISL_DIR_NAME="isl"
|
||||||
|
CT_ISL_PKG_NAME="isl"
|
||||||
|
CT_ISL_SRC_RELEASE=y
|
||||||
|
# CT_ISL_SRC_DEVEL is not set
|
||||||
|
# CT_ISL_SRC_CUSTOM is not set
|
||||||
|
CT_ISL_PATCH_GLOBAL=y
|
||||||
|
# CT_ISL_PATCH_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_NONE is not set
|
||||||
|
CT_ISL_PATCH_ORDER="global"
|
||||||
|
CT_ISL_V_0_26=y
|
||||||
|
# CT_ISL_V_0_25 is not set
|
||||||
|
# CT_ISL_V_0_24 is not set
|
||||||
|
# CT_ISL_V_0_23 is not set
|
||||||
|
# CT_ISL_V_0_22 is not set
|
||||||
|
# CT_ISL_V_0_21 is not set
|
||||||
|
# CT_ISL_V_0_20 is not set
|
||||||
|
# CT_ISL_V_0_19 is not set
|
||||||
|
# CT_ISL_V_0_18 is not set
|
||||||
|
# CT_ISL_V_0_17 is not set
|
||||||
|
# CT_ISL_V_0_16 is not set
|
||||||
|
# CT_ISL_V_0_15 is not set
|
||||||
|
# CT_ISL_V_0_11 is not set
|
||||||
|
CT_ISL_VERSION="0.26"
|
||||||
|
CT_ISL_MIRRORS="https://libisl.sourceforge.io"
|
||||||
|
CT_ISL_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_ISL_SIGNATURE_FORMAT=""
|
||||||
|
CT_ISL_later_than_0_18=y
|
||||||
|
CT_ISL_0_18_or_later=y
|
||||||
|
CT_ISL_later_than_0_15=y
|
||||||
|
CT_ISL_0_15_or_later=y
|
||||||
|
# CT_COMP_LIBS_LIBELF is not set
|
||||||
|
CT_COMP_LIBS_LIBICONV=y
|
||||||
|
CT_COMP_LIBS_LIBICONV_PKG_KSYM="LIBICONV"
|
||||||
|
CT_LIBICONV_DIR_NAME="libiconv"
|
||||||
|
CT_LIBICONV_PKG_NAME="libiconv"
|
||||||
|
CT_LIBICONV_SRC_RELEASE=y
|
||||||
|
# CT_LIBICONV_SRC_DEVEL is not set
|
||||||
|
# CT_LIBICONV_SRC_CUSTOM is not set
|
||||||
|
CT_LIBICONV_PATCH_GLOBAL=y
|
||||||
|
# CT_LIBICONV_PATCH_BUNDLED is not set
|
||||||
|
# CT_LIBICONV_PATCH_LOCAL is not set
|
||||||
|
# CT_LIBICONV_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_LIBICONV_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_LIBICONV_PATCH_NONE is not set
|
||||||
|
CT_LIBICONV_PATCH_ORDER="global"
|
||||||
|
CT_LIBICONV_V_1_16=y
|
||||||
|
# CT_LIBICONV_V_1_15 is not set
|
||||||
|
CT_LIBICONV_VERSION="1.16"
|
||||||
|
CT_LIBICONV_MIRRORS="$(CT_Mirrors GNU libiconv)"
|
||||||
|
CT_LIBICONV_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_LIBICONV_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_LIBICONV_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_LIBICONV_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_COMP_LIBS_MPC=y
|
||||||
|
CT_COMP_LIBS_MPC_PKG_KSYM="MPC"
|
||||||
|
CT_MPC_DIR_NAME="mpc"
|
||||||
|
CT_MPC_PKG_NAME="mpc"
|
||||||
|
CT_MPC_SRC_RELEASE=y
|
||||||
|
# CT_MPC_SRC_DEVEL is not set
|
||||||
|
# CT_MPC_SRC_CUSTOM is not set
|
||||||
|
CT_MPC_PATCH_GLOBAL=y
|
||||||
|
# CT_MPC_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_NONE is not set
|
||||||
|
CT_MPC_PATCH_ORDER="global"
|
||||||
|
CT_MPC_V_1_2=y
|
||||||
|
# CT_MPC_V_1_1 is not set
|
||||||
|
# CT_MPC_V_1_0 is not set
|
||||||
|
CT_MPC_VERSION="1.2.1"
|
||||||
|
CT_MPC_MIRRORS="http://www.multiprecision.org/downloads $(CT_Mirrors GNU mpc)"
|
||||||
|
CT_MPC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_MPC_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_MPC_later_than_1_1_0=y
|
||||||
|
CT_MPC_1_1_0_or_later=y
|
||||||
|
CT_COMP_LIBS_MPFR=y
|
||||||
|
CT_COMP_LIBS_MPFR_PKG_KSYM="MPFR"
|
||||||
|
CT_MPFR_DIR_NAME="mpfr"
|
||||||
|
CT_MPFR_PKG_NAME="mpfr"
|
||||||
|
CT_MPFR_SRC_RELEASE=y
|
||||||
|
# CT_MPFR_SRC_DEVEL is not set
|
||||||
|
# CT_MPFR_SRC_CUSTOM is not set
|
||||||
|
CT_MPFR_PATCH_GLOBAL=y
|
||||||
|
# CT_MPFR_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_NONE is not set
|
||||||
|
CT_MPFR_PATCH_ORDER="global"
|
||||||
|
CT_MPFR_V_4_1=y
|
||||||
|
# CT_MPFR_V_4_0 is not set
|
||||||
|
# CT_MPFR_V_3_1 is not set
|
||||||
|
CT_MPFR_VERSION="4.1.0"
|
||||||
|
CT_MPFR_MIRRORS="http://www.mpfr.org/mpfr-${CT_MPFR_VERSION} $(CT_Mirrors GNU mpfr)"
|
||||||
|
CT_MPFR_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz .zip"
|
||||||
|
CT_MPFR_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_MPFR_later_than_4_0_0=y
|
||||||
|
CT_MPFR_4_0_0_or_later=y
|
||||||
|
CT_COMP_LIBS_NCURSES=y
|
||||||
|
CT_COMP_LIBS_NCURSES_PKG_KSYM="NCURSES"
|
||||||
|
CT_NCURSES_DIR_NAME="ncurses"
|
||||||
|
CT_NCURSES_PKG_NAME="ncurses"
|
||||||
|
CT_NCURSES_SRC_RELEASE=y
|
||||||
|
# CT_NCURSES_SRC_DEVEL is not set
|
||||||
|
# CT_NCURSES_SRC_CUSTOM is not set
|
||||||
|
CT_NCURSES_PATCH_GLOBAL=y
|
||||||
|
# CT_NCURSES_PATCH_BUNDLED is not set
|
||||||
|
# CT_NCURSES_PATCH_LOCAL is not set
|
||||||
|
# CT_NCURSES_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_NCURSES_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_NCURSES_PATCH_NONE is not set
|
||||||
|
CT_NCURSES_PATCH_ORDER="global"
|
||||||
|
CT_NCURSES_V_6_4=y
|
||||||
|
# CT_NCURSES_V_6_2 is not set
|
||||||
|
# CT_NCURSES_V_6_1 is not set
|
||||||
|
# CT_NCURSES_V_6_0 is not set
|
||||||
|
CT_NCURSES_VERSION="6.4"
|
||||||
|
CT_NCURSES_MIRRORS="https://invisible-mirror.net/archives/ncurses $(CT_Mirrors GNU ncurses)"
|
||||||
|
CT_NCURSES_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_NCURSES_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_NCURSES_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_NCURSES_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
# CT_NCURSES_NEW_ABI is not set
|
||||||
|
CT_NCURSES_HOST_CONFIG_ARGS=""
|
||||||
|
CT_NCURSES_HOST_DISABLE_DB=y
|
||||||
|
CT_NCURSES_HOST_FALLBACKS="linux,xterm,xterm-color,xterm-256color,vt100"
|
||||||
|
CT_NCURSES_TARGET_CONFIG_ARGS=""
|
||||||
|
# CT_NCURSES_TARGET_DISABLE_DB is not set
|
||||||
|
CT_NCURSES_TARGET_FALLBACKS=""
|
||||||
|
CT_COMP_LIBS_ZLIB=y
|
||||||
|
CT_COMP_LIBS_ZLIB_PKG_KSYM="ZLIB"
|
||||||
|
CT_ZLIB_DIR_NAME="zlib"
|
||||||
|
CT_ZLIB_PKG_NAME="zlib"
|
||||||
|
CT_ZLIB_SRC_RELEASE=y
|
||||||
|
# CT_ZLIB_SRC_DEVEL is not set
|
||||||
|
# CT_ZLIB_SRC_CUSTOM is not set
|
||||||
|
CT_ZLIB_PATCH_GLOBAL=y
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_NONE is not set
|
||||||
|
CT_ZLIB_PATCH_ORDER="global"
|
||||||
|
CT_ZLIB_V_1_2_13=y
|
||||||
|
# CT_ZLIB_V_1_2_12 is not set
|
||||||
|
CT_ZLIB_VERSION="1.2.13"
|
||||||
|
CT_ZLIB_MIRRORS="https://github.com/madler/zlib/releases/download/v${CT_ZLIB_VERSION} https://www.zlib.net/"
|
||||||
|
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_ZLIB_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_COMP_LIBS_ZSTD=y
|
||||||
|
CT_COMP_LIBS_ZSTD_PKG_KSYM="ZSTD"
|
||||||
|
CT_ZSTD_DIR_NAME="zstd"
|
||||||
|
CT_ZSTD_PKG_NAME="zstd"
|
||||||
|
CT_ZSTD_SRC_RELEASE=y
|
||||||
|
# CT_ZSTD_SRC_DEVEL is not set
|
||||||
|
# CT_ZSTD_SRC_CUSTOM is not set
|
||||||
|
CT_ZSTD_PATCH_GLOBAL=y
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_NONE is not set
|
||||||
|
CT_ZSTD_PATCH_ORDER="global"
|
||||||
|
CT_ZSTD_V_1_5_5=y
|
||||||
|
# CT_ZSTD_V_1_5_2 is not set
|
||||||
|
CT_ZSTD_VERSION="1.5.5"
|
||||||
|
CT_ZSTD_MIRRORS="https://github.com/facebook/zstd/releases/download/v${CT_ZSTD_VERSION} https://www.zstd.net/"
|
||||||
|
CT_ZSTD_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_ZSTD_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_ALL_COMP_LIBS_CHOICES="CLOOG EXPAT GETTEXT GMP GNUPRUMCU ISL LIBELF LIBICONV MPC MPFR NCURSES NEWLIB_NANO PICOLIBC ZLIB ZSTD"
|
||||||
|
CT_LIBICONV_NEEDED=y
|
||||||
|
CT_GETTEXT_NEEDED=y
|
||||||
|
CT_GMP_NEEDED=y
|
||||||
|
CT_MPFR_NEEDED=y
|
||||||
|
CT_ISL_NEEDED=y
|
||||||
|
CT_MPC_NEEDED=y
|
||||||
|
CT_NCURSES_NEEDED=y
|
||||||
|
CT_ZLIB_NEEDED=y
|
||||||
|
CT_ZSTD_NEEDED=y
|
||||||
|
CT_LIBICONV=y
|
||||||
|
CT_GETTEXT=y
|
||||||
|
CT_GMP=y
|
||||||
|
CT_MPFR=y
|
||||||
|
CT_ISL=y
|
||||||
|
CT_MPC=y
|
||||||
|
CT_NCURSES=y
|
||||||
|
CT_ZLIB=y
|
||||||
|
CT_ZSTD=y
|
||||||
|
# end of Companion libraries
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion tools
|
||||||
|
#
|
||||||
|
# CT_COMP_TOOLS_FOR_HOST is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOCONF is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOMAKE is not set
|
||||||
|
# CT_COMP_TOOLS_BISON is not set
|
||||||
|
# CT_COMP_TOOLS_DTC is not set
|
||||||
|
# CT_COMP_TOOLS_LIBTOOL is not set
|
||||||
|
# CT_COMP_TOOLS_M4 is not set
|
||||||
|
# CT_COMP_TOOLS_MAKE is not set
|
||||||
|
CT_ALL_COMP_TOOLS_CHOICES="AUTOCONF AUTOMAKE BISON DTC LIBTOOL M4 MAKE"
|
||||||
|
# end of Companion tools
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test suite
|
||||||
|
#
|
||||||
|
# CT_TEST_SUITE_GCC is not set
|
||||||
|
# end of Test suite
|
17
images/base-linuxarm64/gen-implib.sh
Executable file
17
images/base-linuxarm64/gen-implib.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
if [[ $# != 2 ]]; then
|
||||||
|
echo "Invalid arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
IN="$1"
|
||||||
|
OUT="$2"
|
||||||
|
|
||||||
|
TMPDIR="$(mktemp -d)"
|
||||||
|
trap "rm -rf '$TMPDIR'" EXIT
|
||||||
|
cd "$TMPDIR"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
python3 /opt/implib/implib-gen.py --target aarch64-linux-gnu --dlopen --lazy-load --verbose "$IN"
|
||||||
|
${FFBUILD_CROSS_PREFIX}gcc $CFLAGS $STAGE_CFLAGS -DIMPLIB_HIDDEN_SHIMS -c *.tramp.S *.init.c
|
||||||
|
${FFBUILD_CROSS_PREFIX}ar -rcs "$OUT" *.tramp.o *.init.o
|
16
images/base-linuxarm64/toolchain.cmake
Normal file
16
images/base-linuxarm64/toolchain.cmake
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
||||||
|
|
||||||
|
set(triple aarch64-ffbuild-linux-gnu)
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER ${triple}-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
||||||
|
set(CMAKE_RANLIB ${triple}-gcc-ranlib)
|
||||||
|
set(CMAKE_AR ${triple}-gcc-ar)
|
||||||
|
|
||||||
|
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
@ -1,15 +1,22 @@
|
||||||
ARG GH_REPO=btbn/ffmpeg-builds
|
ARG GH_REPO=ghcr.io/btbn/ffmpeg-builds
|
||||||
FROM ghcr.io/$GH_REPO/base:latest
|
FROM $GH_REPO/base:latest
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
RUN --mount=src=ct-ng-config,dst=/.config \
|
||||||
|
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
||||||
|
./bootstrap && \
|
||||||
|
./configure --enable-local && \
|
||||||
|
make -j$(nproc) && \
|
||||||
|
cp /.config .config && \
|
||||||
|
./ct-ng build && \
|
||||||
|
cd / && \
|
||||||
|
rm -rf ct-ng
|
||||||
|
|
||||||
|
# Prepare "cross" environment to heavily favour static builds
|
||||||
RUN \
|
RUN \
|
||||||
apt-get -y install binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 gfortran-mingw-w64-i686 && \
|
find /opt/ct-ng \
|
||||||
apt-get -y clean && \
|
-name "*.dll" \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/libstdc++*.dll* && \
|
-or -name "*.dll.a" \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/libgcc_s* && \
|
-delete && \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/*.dll.a && \
|
|
||||||
rm /usr/*-w64-mingw32/lib/*.dll.a && \
|
|
||||||
mkdir /opt/ffbuild
|
mkdir /opt/ffbuild
|
||||||
|
|
||||||
RUN rustup target add i686-pc-windows-gnu
|
RUN rustup target add i686-pc-windows-gnu
|
||||||
|
@ -17,17 +24,24 @@ RUN rustup target add i686-pc-windows-gnu
|
||||||
ADD toolchain.cmake /toolchain.cmake
|
ADD toolchain.cmake /toolchain.cmake
|
||||||
ADD cross.meson /cross.meson
|
ADD cross.meson /cross.meson
|
||||||
|
|
||||||
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=i686-w64-mingw32- --arch=i686 --target-os=mingw32" \
|
ENV FFBUILD_TOOLCHAIN=i686-w64-mingw32
|
||||||
FFBUILD_TOOLCHAIN=i686-w64-mingw32 \
|
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||||
FFBUILD_CROSS_PREFIX=i686-w64-mingw32- \
|
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=${FFBUILD_TOOLCHAIN}- --arch=i686 --target-os=mingw32" \
|
||||||
|
FFBUILD_CROSS_PREFIX=${FFBUILD_TOOLCHAIN}- \
|
||||||
FFBUILD_RUST_TARGET=i686-pc-windows-gnu \
|
FFBUILD_RUST_TARGET=i686-pc-windows-gnu \
|
||||||
FFBUILD_PREFIX=/opt/ffbuild \
|
FFBUILD_PREFIX=/opt/ffbuild \
|
||||||
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
||||||
PKG_CONFIG=pkg-config \
|
PKG_CONFIG=pkg-config \
|
||||||
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
||||||
|
CC="${FFBUILD_TOOLCHAIN}-gcc" \
|
||||||
|
CXX="${FFBUILD_TOOLCHAIN}-g++" \
|
||||||
|
LD="${FFBUILD_TOOLCHAIN}-ld" \
|
||||||
|
AR="${FFBUILD_TOOLCHAIN}-gcc-ar" \
|
||||||
|
RANLIB="${FFBUILD_TOOLCHAIN}-gcc-ranlib" \
|
||||||
|
NM="${FFBUILD_TOOLCHAIN}-gcc-nm" \
|
||||||
|
DLLTOOL="${FFBUILD_TOOLCHAIN}-dlltool" \
|
||||||
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
||||||
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
||||||
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong" \
|
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong" \
|
||||||
DLLTOOL="i686-w64-mingw32-dlltool" \
|
|
||||||
STAGE_CFLAGS="-fno-semantic-interposition" \
|
STAGE_CFLAGS="-fno-semantic-interposition" \
|
||||||
STAGE_CXXFLAGS="-fno-semantic-interposition"
|
STAGE_CXXFLAGS="-fno-semantic-interposition"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
[binaries]
|
[binaries]
|
||||||
c = 'i686-w64-mingw32-gcc'
|
c = 'i686-w64-mingw32-gcc'
|
||||||
cpp = 'i686-w64-mingw32-g++'
|
cpp = 'i686-w64-mingw32-g++'
|
||||||
ar = 'i686-w64-mingw32-ar'
|
ar = 'i686-w64-mingw32-gcc-ar'
|
||||||
|
ranlib = 'i686-w64-mingw32-gcc-ranlib'
|
||||||
strip = 'i686-w64-mingw32-strip'
|
strip = 'i686-w64-mingw32-strip'
|
||||||
windres = 'i686-w64-mingw32-windres'
|
windres = 'i686-w64-mingw32-windres'
|
||||||
|
dlltool = 'i686-w64-mingw32-dlltool'
|
||||||
exe_wrapper = ['wine']
|
exe_wrapper = ['wine']
|
||||||
|
|
||||||
[properties]
|
[properties]
|
||||||
|
|
784
images/base-win32/ct-ng-config
Normal file
784
images/base-win32/ct-ng-config
Normal file
|
@ -0,0 +1,784 @@
|
||||||
|
#
|
||||||
|
# Automatically generated file; DO NOT EDIT.
|
||||||
|
# crosstool-NG 1.25.0.196_227d99d Configuration
|
||||||
|
#
|
||||||
|
CT_CONFIGURE_has_static_link=y
|
||||||
|
CT_CONFIGURE_has_cxx11=y
|
||||||
|
CT_CONFIGURE_has_wget=y
|
||||||
|
CT_CONFIGURE_has_curl=y
|
||||||
|
CT_CONFIGURE_has_meson=y
|
||||||
|
CT_CONFIGURE_has_ninja=y
|
||||||
|
CT_CONFIGURE_has_rsync=y
|
||||||
|
CT_CONFIGURE_has_make_3_81_or_newer=y
|
||||||
|
CT_CONFIGURE_has_make_4_0_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtool_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoreconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_automake_1_16_or_newer=y
|
||||||
|
CT_CONFIGURE_has_gnu_m4_1_4_12_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python_3_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_2_7_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_3_0_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python=y
|
||||||
|
CT_CONFIGURE_has_svn=y
|
||||||
|
CT_CONFIGURE_has_git=y
|
||||||
|
CT_CONFIGURE_has_md5sum=y
|
||||||
|
CT_CONFIGURE_has_sha1sum=y
|
||||||
|
CT_CONFIGURE_has_sha256sum=y
|
||||||
|
CT_CONFIGURE_has_sha512sum=y
|
||||||
|
CT_CONFIGURE_has_install_with_strip_program=y
|
||||||
|
CT_VERSION="1.25.0.196_227d99d"
|
||||||
|
CT_VCHECK=""
|
||||||
|
CT_CONFIG_VERSION_ENV="4"
|
||||||
|
CT_CONFIG_VERSION_CURRENT="4"
|
||||||
|
CT_CONFIG_VERSION="4"
|
||||||
|
CT_MODULES=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths and misc options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# crosstool-NG behavior
|
||||||
|
#
|
||||||
|
# CT_OBSOLETE is not set
|
||||||
|
CT_EXPERIMENTAL=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT_SURE=y
|
||||||
|
# CT_ENABLE_EXPERIMENTAL_BUNDLED_PATCHES is not set
|
||||||
|
# CT_DEBUG_CT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths
|
||||||
|
#
|
||||||
|
CT_LOCAL_TARBALLS_DIR="${HOME}/src"
|
||||||
|
# CT_SAVE_TARBALLS is not set
|
||||||
|
# CT_TARBALLS_BUILDROOT_LAYOUT is not set
|
||||||
|
CT_WORK_DIR="${CT_TOP_DIR}/build"
|
||||||
|
CT_BUILD_TOP_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
||||||
|
CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
|
||||||
|
CT_PREFIX_DIR="/opt/ct-ng"
|
||||||
|
CT_RM_RF_PREFIX_DIR=y
|
||||||
|
CT_REMOVE_DOCS=y
|
||||||
|
# CT_INSTALL_LICENSES is not set
|
||||||
|
# CT_PREFIX_DIR_RO is not set
|
||||||
|
CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
# CT_TARBALL_RESULT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Downloading
|
||||||
|
#
|
||||||
|
CT_DOWNLOAD_AGENT_WGET=y
|
||||||
|
# CT_DOWNLOAD_AGENT_CURL is not set
|
||||||
|
# CT_DOWNLOAD_AGENT_NONE is not set
|
||||||
|
# CT_FORBID_DOWNLOAD is not set
|
||||||
|
# CT_FORCE_DOWNLOAD is not set
|
||||||
|
CT_CONNECT_TIMEOUT=10
|
||||||
|
CT_DOWNLOAD_WGET_OPTIONS="--passive-ftp --tries=3 -nc --progress=dot:binary"
|
||||||
|
# CT_ONLY_DOWNLOAD is not set
|
||||||
|
# CT_USE_MIRROR is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST=y
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_SHA512=y
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA256 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA1 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_MD5 is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_ALG="sha512"
|
||||||
|
# CT_VERIFY_DOWNLOAD_SIGNATURE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Extracting
|
||||||
|
#
|
||||||
|
# CT_FORCE_EXTRACT is not set
|
||||||
|
CT_OVERRIDE_CONFIG_GUESS_SUB=y
|
||||||
|
# CT_ONLY_EXTRACT is not set
|
||||||
|
CT_PATCH_BUNDLED=y
|
||||||
|
# CT_PATCH_LOCAL is not set
|
||||||
|
# CT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_PATCH_NONE is not set
|
||||||
|
CT_PATCH_ORDER="bundled"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build behavior
|
||||||
|
#
|
||||||
|
CT_PARALLEL_JOBS=0
|
||||||
|
CT_LOAD=""
|
||||||
|
CT_USE_PIPES=y
|
||||||
|
CT_EXTRA_CFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_CXXFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_CFLAGS_FOR_HOST=""
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_HOST=""
|
||||||
|
# CT_CONFIG_SHELL_SH is not set
|
||||||
|
# CT_CONFIG_SHELL_ASH is not set
|
||||||
|
CT_CONFIG_SHELL_BASH=y
|
||||||
|
# CT_CONFIG_SHELL_CUSTOM is not set
|
||||||
|
CT_CONFIG_SHELL="${bash}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logging
|
||||||
|
#
|
||||||
|
# CT_LOG_ERROR is not set
|
||||||
|
# CT_LOG_WARN is not set
|
||||||
|
# CT_LOG_INFO is not set
|
||||||
|
# CT_LOG_EXTRA is not set
|
||||||
|
# CT_LOG_ALL is not set
|
||||||
|
CT_LOG_DEBUG=y
|
||||||
|
CT_LOG_LEVEL_MAX="DEBUG"
|
||||||
|
# CT_LOG_SEE_TOOLS_WARN is not set
|
||||||
|
# CT_LOG_TO_FILE is not set
|
||||||
|
# end of Paths and misc options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target options
|
||||||
|
#
|
||||||
|
# CT_ARCH_ALPHA is not set
|
||||||
|
# CT_ARCH_ARC is not set
|
||||||
|
# CT_ARCH_ARM is not set
|
||||||
|
# CT_ARCH_AVR is not set
|
||||||
|
# CT_ARCH_BPF is not set
|
||||||
|
# CT_ARCH_C6X is not set
|
||||||
|
# CT_ARCH_LOONGARCH is not set
|
||||||
|
# CT_ARCH_M68K is not set
|
||||||
|
# CT_ARCH_MICROBLAZE is not set
|
||||||
|
# CT_ARCH_MIPS is not set
|
||||||
|
# CT_ARCH_MOXIE is not set
|
||||||
|
# CT_ARCH_MSP430 is not set
|
||||||
|
# CT_ARCH_NIOS2 is not set
|
||||||
|
# CT_ARCH_POWERPC is not set
|
||||||
|
# CT_ARCH_PRU is not set
|
||||||
|
# CT_ARCH_RISCV is not set
|
||||||
|
# CT_ARCH_S390 is not set
|
||||||
|
# CT_ARCH_SH is not set
|
||||||
|
# CT_ARCH_SPARC is not set
|
||||||
|
CT_ARCH_X86=y
|
||||||
|
# CT_ARCH_XTENSA is not set
|
||||||
|
CT_ARCH="x86"
|
||||||
|
CT_ARCH_CHOICE_KSYM="X86"
|
||||||
|
CT_ARCH_CPU=""
|
||||||
|
CT_ARCH_TUNE=""
|
||||||
|
CT_ARCH_X86_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for x86
|
||||||
|
#
|
||||||
|
CT_ARCH_X86_PKG_KSYM=""
|
||||||
|
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR BPF C6X LOONGARCH M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
|
||||||
|
CT_ARCH_SUFFIX=""
|
||||||
|
# CT_OMIT_TARGET_VENDOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic target options
|
||||||
|
#
|
||||||
|
# CT_MULTILIB is not set
|
||||||
|
CT_DEMULTILIB=y
|
||||||
|
CT_ARCH_USE_MMU=y
|
||||||
|
CT_ARCH_SUPPORTS_LIBSANITIZER=y
|
||||||
|
CT_ARCH_SUPPORTS_32=y
|
||||||
|
CT_ARCH_SUPPORTS_64=y
|
||||||
|
CT_ARCH_DEFAULT_32=y
|
||||||
|
CT_ARCH_BITNESS=32
|
||||||
|
CT_ARCH_32=y
|
||||||
|
# CT_ARCH_64 is not set
|
||||||
|
CT_ARCH_SUPPORTS_WITH_32_64=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target optimisations
|
||||||
|
#
|
||||||
|
CT_ARCH_SUPPORTS_WITH_ARCH=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_CPU=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_TUNE=y
|
||||||
|
CT_ARCH_ARCH="i686"
|
||||||
|
CT_TARGET_CFLAGS=""
|
||||||
|
CT_TARGET_LDFLAGS=""
|
||||||
|
# end of Target options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# General toolchain options
|
||||||
|
#
|
||||||
|
CT_FORCE_SYSROOT=y
|
||||||
|
CT_USE_SYSROOT=y
|
||||||
|
CT_SYSROOT_NAME="sysroot"
|
||||||
|
CT_SYSROOT_DIR_PREFIX=""
|
||||||
|
CT_WANTS_STATIC_LINK=y
|
||||||
|
CT_WANTS_STATIC_LINK_CXX=y
|
||||||
|
# CT_STATIC_TOOLCHAIN is not set
|
||||||
|
CT_SHOW_CT_VERSION=y
|
||||||
|
CT_TOOLCHAIN_PKGVERSION=""
|
||||||
|
CT_TOOLCHAIN_BUGURL=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tuple completion and aliasing
|
||||||
|
#
|
||||||
|
CT_TARGET_VENDOR="w64"
|
||||||
|
CT_TARGET_ALIAS_SED_EXPR=""
|
||||||
|
CT_TARGET_ALIAS=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain type
|
||||||
|
#
|
||||||
|
# CT_NATIVE is not set
|
||||||
|
CT_CROSS=y
|
||||||
|
# CT_CROSS_NATIVE is not set
|
||||||
|
# CT_CANADIAN is not set
|
||||||
|
CT_TOOLCHAIN_TYPE="cross"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build system
|
||||||
|
#
|
||||||
|
CT_BUILD=""
|
||||||
|
CT_BUILD_PREFIX=""
|
||||||
|
CT_BUILD_SUFFIX=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc options
|
||||||
|
#
|
||||||
|
# CT_TOOLCHAIN_ENABLE_NLS is not set
|
||||||
|
# end of Toolchain options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Operating System
|
||||||
|
#
|
||||||
|
CT_WINDOWS=y
|
||||||
|
CT_KERNEL_SUPPORTS_SHARED_LIBS=y
|
||||||
|
# CT_KERNEL_BARE_METAL is not set
|
||||||
|
# CT_KERNEL_LINUX is not set
|
||||||
|
CT_KERNEL_WINDOWS=y
|
||||||
|
CT_KERNEL="windows"
|
||||||
|
CT_KERNEL_CHOICE_KSYM="WINDOWS"
|
||||||
|
CT_KERNEL_WINDOWS_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for windows
|
||||||
|
#
|
||||||
|
CT_KERNEL_WINDOWS_PKG_KSYM=""
|
||||||
|
CT_ALL_KERNEL_CHOICES="BARE_METAL LINUX WINDOWS"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common kernel options
|
||||||
|
#
|
||||||
|
CT_SHARED_LIBS=y
|
||||||
|
# end of Operating System
|
||||||
|
|
||||||
|
#
|
||||||
|
# Binary utilities
|
||||||
|
#
|
||||||
|
CT_ARCH_BINFMT_ELF=y
|
||||||
|
CT_BINUTILS_BINUTILS=y
|
||||||
|
CT_BINUTILS="binutils"
|
||||||
|
CT_BINUTILS_CHOICE_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_BINUTILS_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_BINUTILS_PKG_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_DIR_NAME="binutils"
|
||||||
|
CT_BINUTILS_USE_GNU=y
|
||||||
|
# CT_BINUTILS_USE_LINARO is not set
|
||||||
|
# CT_BINUTILS_USE_ORACLE is not set
|
||||||
|
CT_BINUTILS_USE="BINUTILS"
|
||||||
|
CT_BINUTILS_PKG_NAME="binutils"
|
||||||
|
CT_BINUTILS_SRC_RELEASE=y
|
||||||
|
# CT_BINUTILS_SRC_DEVEL is not set
|
||||||
|
# CT_BINUTILS_SRC_CUSTOM is not set
|
||||||
|
CT_BINUTILS_PATCH_GLOBAL=y
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_NONE is not set
|
||||||
|
CT_BINUTILS_PATCH_ORDER="global"
|
||||||
|
CT_BINUTILS_V_2_40=y
|
||||||
|
# CT_BINUTILS_V_2_39 is not set
|
||||||
|
# CT_BINUTILS_V_2_38 is not set
|
||||||
|
# CT_BINUTILS_V_2_37 is not set
|
||||||
|
# CT_BINUTILS_V_2_36 is not set
|
||||||
|
# CT_BINUTILS_V_2_35 is not set
|
||||||
|
# CT_BINUTILS_V_2_34 is not set
|
||||||
|
# CT_BINUTILS_V_2_33 is not set
|
||||||
|
# CT_BINUTILS_V_2_32 is not set
|
||||||
|
# CT_BINUTILS_V_2_31 is not set
|
||||||
|
# CT_BINUTILS_V_2_30 is not set
|
||||||
|
# CT_BINUTILS_V_2_29 is not set
|
||||||
|
# CT_BINUTILS_V_2_28 is not set
|
||||||
|
# CT_BINUTILS_V_2_27 is not set
|
||||||
|
# CT_BINUTILS_V_2_26 is not set
|
||||||
|
CT_BINUTILS_VERSION="2.40"
|
||||||
|
CT_BINUTILS_MIRRORS="$(CT_Mirrors GNU binutils) $(CT_Mirrors sourceware binutils/releases)"
|
||||||
|
CT_BINUTILS_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_BINUTILS_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_BINUTILS_later_than_2_39=y
|
||||||
|
CT_BINUTILS_2_39_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_30=y
|
||||||
|
CT_BINUTILS_2_30_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_27=y
|
||||||
|
CT_BINUTILS_2_27_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_26=y
|
||||||
|
CT_BINUTILS_2_26_or_later=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# GNU binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
|
||||||
|
CT_BINUTILS_GOLD_SUPPORT=y
|
||||||
|
CT_BINUTILS_FORCE_LD_BFD_DEFAULT=y
|
||||||
|
CT_BINUTILS_LINKER_LD=y
|
||||||
|
# CT_BINUTILS_LINKER_LD_GOLD is not set
|
||||||
|
CT_BINUTILS_LINKERS_LIST="ld"
|
||||||
|
CT_BINUTILS_LINKER_DEFAULT="bfd"
|
||||||
|
CT_BINUTILS_PLUGINS=y
|
||||||
|
CT_BINUTILS_RELRO=m
|
||||||
|
CT_BINUTILS_DETERMINISTIC_ARCHIVES=y
|
||||||
|
CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
|
||||||
|
# CT_BINUTILS_FOR_TARGET is not set
|
||||||
|
CT_ALL_BINUTILS_CHOICES="BINUTILS"
|
||||||
|
# end of Binary utilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# C-library
|
||||||
|
#
|
||||||
|
CT_LIBC_MINGW_W64=y
|
||||||
|
CT_LIBC="mingw-w64"
|
||||||
|
CT_LIBC_CHOICE_KSYM="MINGW_W64"
|
||||||
|
CT_THREADS="posix"
|
||||||
|
CT_LIBC_MINGW_W64_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for mingw-w64
|
||||||
|
#
|
||||||
|
CT_LIBC_MINGW_W64_PKG_KSYM="MINGW_W64"
|
||||||
|
CT_MINGW_W64_DIR_NAME="mingw-w64"
|
||||||
|
CT_MINGW_W64_PKG_NAME="mingw-w64"
|
||||||
|
CT_MINGW_W64_SRC_RELEASE=y
|
||||||
|
# CT_MINGW_W64_SRC_DEVEL is not set
|
||||||
|
# CT_MINGW_W64_SRC_CUSTOM is not set
|
||||||
|
CT_MINGW_W64_PATCH_GLOBAL=y
|
||||||
|
# CT_MINGW_W64_PATCH_BUNDLED is not set
|
||||||
|
# CT_MINGW_W64_PATCH_LOCAL is not set
|
||||||
|
# CT_MINGW_W64_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MINGW_W64_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MINGW_W64_PATCH_NONE is not set
|
||||||
|
CT_MINGW_W64_PATCH_ORDER="global"
|
||||||
|
CT_MINGW_W64_V_V10_0=y
|
||||||
|
# CT_MINGW_W64_V_V9_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V8_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V7_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V6_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V5_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V4_0 is not set
|
||||||
|
CT_MINGW_W64_VERSION="v10.0.0"
|
||||||
|
CT_MINGW_W64_MIRRORS="http://downloads.sourceforge.net/sourceforge/mingw-w64 https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/"
|
||||||
|
CT_MINGW_W64_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MINGW_W64_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MINGW_W64_ARCHIVE_FORMATS=".tar.bz2 .zip"
|
||||||
|
CT_MINGW_W64_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_MINGW_SECURE_API=y
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_DEFAULT is not set
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_MSVCRT is not set
|
||||||
|
CT_MINGW_DEFAULT_MSVCRT_UCRT=y
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_CUSTOM is not set
|
||||||
|
CT_MINGW_DIRECTX=y
|
||||||
|
CT_MINGW_DDK=y
|
||||||
|
CT_MINGW_TOOLS=y
|
||||||
|
CT_MINGW_TOOL_LIST_ARRAY="gendef genidl genlib genpeimg widl"
|
||||||
|
CT_ALL_LIBC_CHOICES="AVR_LIBC GLIBC MINGW_W64 MOXIEBOX MUSL NEWLIB NONE PICOLIBC UCLIBC_NG"
|
||||||
|
CT_LIBC_SUPPORT_THREADS_ANY=y
|
||||||
|
CT_LIBC_SUPPORT_THREADS_NATIVE=y
|
||||||
|
CT_LIBC_SUPPORT_THREADS_POSIX=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common C library options
|
||||||
|
#
|
||||||
|
# CT_THREADS_NATIVE is not set
|
||||||
|
CT_THREADS_POSIX=y
|
||||||
|
# CT_CREATE_LDSO_CONF is not set
|
||||||
|
CT_LIBC_XLDD=y
|
||||||
|
# end of C-library
|
||||||
|
|
||||||
|
#
|
||||||
|
# C compiler
|
||||||
|
#
|
||||||
|
CT_CC_CORE_NEEDED=y
|
||||||
|
CT_CC_SUPPORT_CXX=y
|
||||||
|
CT_CC_SUPPORT_FORTRAN=y
|
||||||
|
CT_CC_SUPPORT_ADA=y
|
||||||
|
CT_CC_SUPPORT_D=y
|
||||||
|
CT_CC_SUPPORT_JIT=y
|
||||||
|
CT_CC_SUPPORT_OBJC=y
|
||||||
|
CT_CC_SUPPORT_OBJCXX=y
|
||||||
|
CT_CC_SUPPORT_GOLANG=y
|
||||||
|
CT_CC_GCC=y
|
||||||
|
CT_CC="gcc"
|
||||||
|
CT_CC_CHOICE_KSYM="GCC"
|
||||||
|
CT_CC_GCC_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for gcc
|
||||||
|
#
|
||||||
|
CT_CC_GCC_PKG_KSYM="GCC"
|
||||||
|
CT_GCC_DIR_NAME="gcc"
|
||||||
|
CT_GCC_USE_GNU=y
|
||||||
|
# CT_GCC_USE_LINARO is not set
|
||||||
|
# CT_GCC_USE_ORACLE is not set
|
||||||
|
CT_GCC_USE="GCC"
|
||||||
|
CT_GCC_PKG_NAME="gcc"
|
||||||
|
CT_GCC_SRC_RELEASE=y
|
||||||
|
# CT_GCC_SRC_DEVEL is not set
|
||||||
|
# CT_GCC_SRC_CUSTOM is not set
|
||||||
|
CT_GCC_PATCH_GLOBAL=y
|
||||||
|
# CT_GCC_PATCH_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_NONE is not set
|
||||||
|
CT_GCC_PATCH_ORDER="global"
|
||||||
|
CT_GCC_V_13=y
|
||||||
|
# CT_GCC_V_12 is not set
|
||||||
|
# CT_GCC_V_11 is not set
|
||||||
|
# CT_GCC_V_10 is not set
|
||||||
|
# CT_GCC_V_9 is not set
|
||||||
|
# CT_GCC_V_8 is not set
|
||||||
|
# CT_GCC_V_7 is not set
|
||||||
|
# CT_GCC_V_6 is not set
|
||||||
|
# CT_GCC_V_5 is not set
|
||||||
|
# CT_GCC_V_4_9 is not set
|
||||||
|
CT_GCC_VERSION="13.1.0"
|
||||||
|
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
|
||||||
|
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GCC_SIGNATURE_FORMAT=""
|
||||||
|
CT_GCC_later_than_13=y
|
||||||
|
CT_GCC_13_or_later=y
|
||||||
|
CT_GCC_later_than_12=y
|
||||||
|
CT_GCC_12_or_later=y
|
||||||
|
CT_GCC_later_than_11=y
|
||||||
|
CT_GCC_11_or_later=y
|
||||||
|
CT_GCC_later_than_10=y
|
||||||
|
CT_GCC_10_or_later=y
|
||||||
|
CT_GCC_later_than_9=y
|
||||||
|
CT_GCC_9_or_later=y
|
||||||
|
CT_GCC_later_than_8=y
|
||||||
|
CT_GCC_8_or_later=y
|
||||||
|
CT_GCC_later_than_7=y
|
||||||
|
CT_GCC_7_or_later=y
|
||||||
|
CT_GCC_later_than_6=y
|
||||||
|
CT_GCC_6_or_later=y
|
||||||
|
CT_GCC_later_than_5=y
|
||||||
|
CT_GCC_5_or_later=y
|
||||||
|
CT_GCC_later_than_4_9=y
|
||||||
|
CT_GCC_4_9_or_later=y
|
||||||
|
CT_CC_GCC_ENABLE_PLUGINS=y
|
||||||
|
CT_CC_GCC_HAS_LIBMPX=y
|
||||||
|
CT_CC_GCC_ENABLE_CXX_FLAGS=""
|
||||||
|
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-default-ssp"
|
||||||
|
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-default-ssp --with-build-config=bootstrap-lto-lean --enable-link-serialization=2"
|
||||||
|
CT_CC_GCC_STATIC_LIBSTDCXX=y
|
||||||
|
CT_CC_GCC_SYSTEM_ZLIB=y
|
||||||
|
CT_CC_GCC_CONFIG_TLS=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Optimisation features
|
||||||
|
#
|
||||||
|
CT_CC_GCC_USE_GRAPHITE=y
|
||||||
|
CT_CC_GCC_USE_LTO=y
|
||||||
|
CT_CC_GCC_LTO_ZSTD=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for libraries running on target
|
||||||
|
#
|
||||||
|
# CT_CC_GCC_ENABLE_TARGET_OPTSPACE is not set
|
||||||
|
# CT_CC_GCC_LIBMUDFLAP is not set
|
||||||
|
CT_CC_GCC_LIBGOMP=y
|
||||||
|
CT_CC_GCC_LIBSSP=m
|
||||||
|
# CT_CC_GCC_LIBQUADMATH is not set
|
||||||
|
# CT_CC_GCC_LIBSTDCXX_VERBOSE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc. obscure options.
|
||||||
|
#
|
||||||
|
CT_CC_CXA_ATEXIT=y
|
||||||
|
CT_CC_GCC_TM_CLONE_REGISTRY=m
|
||||||
|
# CT_CC_GCC_DISABLE_PCH is not set
|
||||||
|
CT_CC_GCC_SJLJ_EXCEPTIONS=m
|
||||||
|
CT_CC_GCC_LDBL_128=m
|
||||||
|
# CT_CC_GCC_BUILD_ID is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_SYSV is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_GNU is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_BOTH is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE=""
|
||||||
|
CT_CC_GCC_DEC_FLOATS_AUTO=y
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_BID is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_DPD is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_NO is not set
|
||||||
|
CT_CC_GCC_DEC_FLOATS=""
|
||||||
|
CT_ALL_CC_CHOICES="GCC"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Additional supported languages:
|
||||||
|
#
|
||||||
|
CT_CC_LANG_CXX=y
|
||||||
|
# CT_CC_LANG_FORTRAN is not set
|
||||||
|
# CT_CC_LANG_JIT is not set
|
||||||
|
# CT_CC_LANG_ADA is not set
|
||||||
|
# CT_CC_LANG_D is not set
|
||||||
|
# CT_CC_LANG_OBJC is not set
|
||||||
|
# CT_CC_LANG_OBJCXX is not set
|
||||||
|
# CT_CC_LANG_GOLANG is not set
|
||||||
|
CT_CC_LANG_OTHERS=""
|
||||||
|
# end of C compiler
|
||||||
|
|
||||||
|
#
|
||||||
|
# Debug facilities
|
||||||
|
#
|
||||||
|
# CT_DEBUG_DUMA is not set
|
||||||
|
# CT_DEBUG_GDB is not set
|
||||||
|
# CT_DEBUG_LTRACE is not set
|
||||||
|
# CT_DEBUG_STRACE is not set
|
||||||
|
CT_ALL_DEBUG_CHOICES="DUMA GDB LTRACE STRACE"
|
||||||
|
# end of Debug facilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion libraries
|
||||||
|
#
|
||||||
|
# CT_COMPLIBS_CHECK is not set
|
||||||
|
# CT_COMP_LIBS_CLOOG is not set
|
||||||
|
# CT_COMP_LIBS_EXPAT is not set
|
||||||
|
CT_COMP_LIBS_GETTEXT=y
|
||||||
|
CT_COMP_LIBS_GETTEXT_PKG_KSYM="GETTEXT"
|
||||||
|
CT_GETTEXT_DIR_NAME="gettext"
|
||||||
|
CT_GETTEXT_PKG_NAME="gettext"
|
||||||
|
CT_GETTEXT_SRC_RELEASE=y
|
||||||
|
# CT_GETTEXT_SRC_DEVEL is not set
|
||||||
|
# CT_GETTEXT_SRC_CUSTOM is not set
|
||||||
|
CT_GETTEXT_PATCH_GLOBAL=y
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_NONE is not set
|
||||||
|
CT_GETTEXT_PATCH_ORDER="global"
|
||||||
|
CT_GETTEXT_V_0_21=y
|
||||||
|
# CT_GETTEXT_V_0_20_1 is not set
|
||||||
|
# CT_GETTEXT_V_0_19_8_1 is not set
|
||||||
|
CT_GETTEXT_VERSION="0.21"
|
||||||
|
CT_GETTEXT_MIRRORS="$(CT_Mirrors GNU gettext)"
|
||||||
|
CT_GETTEXT_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GETTEXT_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GETTEXT_0_21_or_later=y
|
||||||
|
CT_GETTEXT_0_21_or_older=y
|
||||||
|
CT_GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# This version of gettext is not compatible with uClibc-NG. Select
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# a different version if uClibc-NG is used on the target or (in a
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Canadian cross build) on the host.
|
||||||
|
#
|
||||||
|
CT_COMP_LIBS_GMP=y
|
||||||
|
CT_COMP_LIBS_GMP_PKG_KSYM="GMP"
|
||||||
|
CT_GMP_DIR_NAME="gmp"
|
||||||
|
CT_GMP_PKG_NAME="gmp"
|
||||||
|
CT_GMP_SRC_RELEASE=y
|
||||||
|
# CT_GMP_SRC_DEVEL is not set
|
||||||
|
# CT_GMP_SRC_CUSTOM is not set
|
||||||
|
CT_GMP_PATCH_GLOBAL=y
|
||||||
|
# CT_GMP_PATCH_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_NONE is not set
|
||||||
|
CT_GMP_PATCH_ORDER="global"
|
||||||
|
CT_GMP_V_6_2=y
|
||||||
|
# CT_GMP_V_6_1 is not set
|
||||||
|
CT_GMP_VERSION="6.2.1"
|
||||||
|
CT_GMP_MIRRORS="https://gmplib.org/download/gmp https://gmplib.org/download/gmp/archive $(CT_Mirrors GNU gmp)"
|
||||||
|
CT_GMP_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_FORMATS=".tar.xz .tar.lz .tar.bz2"
|
||||||
|
CT_GMP_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_COMP_LIBS_ISL=y
|
||||||
|
CT_COMP_LIBS_ISL_PKG_KSYM="ISL"
|
||||||
|
CT_ISL_DIR_NAME="isl"
|
||||||
|
CT_ISL_PKG_NAME="isl"
|
||||||
|
CT_ISL_SRC_RELEASE=y
|
||||||
|
# CT_ISL_SRC_DEVEL is not set
|
||||||
|
# CT_ISL_SRC_CUSTOM is not set
|
||||||
|
CT_ISL_PATCH_GLOBAL=y
|
||||||
|
# CT_ISL_PATCH_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_NONE is not set
|
||||||
|
CT_ISL_PATCH_ORDER="global"
|
||||||
|
CT_ISL_V_0_26=y
|
||||||
|
# CT_ISL_V_0_25 is not set
|
||||||
|
# CT_ISL_V_0_24 is not set
|
||||||
|
# CT_ISL_V_0_23 is not set
|
||||||
|
# CT_ISL_V_0_22 is not set
|
||||||
|
# CT_ISL_V_0_21 is not set
|
||||||
|
# CT_ISL_V_0_20 is not set
|
||||||
|
# CT_ISL_V_0_19 is not set
|
||||||
|
# CT_ISL_V_0_18 is not set
|
||||||
|
# CT_ISL_V_0_17 is not set
|
||||||
|
# CT_ISL_V_0_16 is not set
|
||||||
|
# CT_ISL_V_0_15 is not set
|
||||||
|
CT_ISL_VERSION="0.26"
|
||||||
|
CT_ISL_MIRRORS="https://libisl.sourceforge.io"
|
||||||
|
CT_ISL_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_ISL_SIGNATURE_FORMAT=""
|
||||||
|
CT_ISL_later_than_0_18=y
|
||||||
|
CT_ISL_0_18_or_later=y
|
||||||
|
CT_ISL_later_than_0_15=y
|
||||||
|
CT_ISL_0_15_or_later=y
|
||||||
|
# CT_COMP_LIBS_LIBELF is not set
|
||||||
|
# CT_COMP_LIBS_LIBICONV is not set
|
||||||
|
CT_COMP_LIBS_MPC=y
|
||||||
|
CT_COMP_LIBS_MPC_PKG_KSYM="MPC"
|
||||||
|
CT_MPC_DIR_NAME="mpc"
|
||||||
|
CT_MPC_PKG_NAME="mpc"
|
||||||
|
CT_MPC_SRC_RELEASE=y
|
||||||
|
# CT_MPC_SRC_DEVEL is not set
|
||||||
|
# CT_MPC_SRC_CUSTOM is not set
|
||||||
|
CT_MPC_PATCH_GLOBAL=y
|
||||||
|
# CT_MPC_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_NONE is not set
|
||||||
|
CT_MPC_PATCH_ORDER="global"
|
||||||
|
CT_MPC_V_1_2=y
|
||||||
|
# CT_MPC_V_1_1 is not set
|
||||||
|
# CT_MPC_V_1_0 is not set
|
||||||
|
CT_MPC_VERSION="1.2.1"
|
||||||
|
CT_MPC_MIRRORS="http://www.multiprecision.org/downloads $(CT_Mirrors GNU mpc)"
|
||||||
|
CT_MPC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_MPC_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_MPC_later_than_1_1_0=y
|
||||||
|
CT_MPC_1_1_0_or_later=y
|
||||||
|
CT_COMP_LIBS_MPFR=y
|
||||||
|
CT_COMP_LIBS_MPFR_PKG_KSYM="MPFR"
|
||||||
|
CT_MPFR_DIR_NAME="mpfr"
|
||||||
|
CT_MPFR_PKG_NAME="mpfr"
|
||||||
|
CT_MPFR_SRC_RELEASE=y
|
||||||
|
# CT_MPFR_SRC_DEVEL is not set
|
||||||
|
# CT_MPFR_SRC_CUSTOM is not set
|
||||||
|
CT_MPFR_PATCH_GLOBAL=y
|
||||||
|
# CT_MPFR_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_NONE is not set
|
||||||
|
CT_MPFR_PATCH_ORDER="global"
|
||||||
|
CT_MPFR_V_4_1=y
|
||||||
|
# CT_MPFR_V_4_0 is not set
|
||||||
|
# CT_MPFR_V_3_1 is not set
|
||||||
|
CT_MPFR_VERSION="4.1.0"
|
||||||
|
CT_MPFR_MIRRORS="http://www.mpfr.org/mpfr-${CT_MPFR_VERSION} $(CT_Mirrors GNU mpfr)"
|
||||||
|
CT_MPFR_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz .zip"
|
||||||
|
CT_MPFR_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_MPFR_later_than_4_0_0=y
|
||||||
|
CT_MPFR_4_0_0_or_later=y
|
||||||
|
# CT_COMP_LIBS_NCURSES is not set
|
||||||
|
CT_COMP_LIBS_ZLIB=y
|
||||||
|
CT_COMP_LIBS_ZLIB_PKG_KSYM="ZLIB"
|
||||||
|
CT_ZLIB_DIR_NAME="zlib"
|
||||||
|
CT_ZLIB_PKG_NAME="zlib"
|
||||||
|
CT_ZLIB_SRC_RELEASE=y
|
||||||
|
# CT_ZLIB_SRC_DEVEL is not set
|
||||||
|
# CT_ZLIB_SRC_CUSTOM is not set
|
||||||
|
CT_ZLIB_PATCH_GLOBAL=y
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_NONE is not set
|
||||||
|
CT_ZLIB_PATCH_ORDER="global"
|
||||||
|
CT_ZLIB_V_1_2_13=y
|
||||||
|
CT_ZLIB_VERSION="1.2.13"
|
||||||
|
CT_ZLIB_MIRRORS="https://github.com/madler/zlib/releases/download/v${CT_ZLIB_VERSION} https://www.zlib.net/"
|
||||||
|
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_ZLIB_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_COMP_LIBS_ZSTD=y
|
||||||
|
CT_COMP_LIBS_ZSTD_PKG_KSYM="ZSTD"
|
||||||
|
CT_ZSTD_DIR_NAME="zstd"
|
||||||
|
CT_ZSTD_PKG_NAME="zstd"
|
||||||
|
CT_ZSTD_SRC_RELEASE=y
|
||||||
|
# CT_ZSTD_SRC_DEVEL is not set
|
||||||
|
# CT_ZSTD_SRC_CUSTOM is not set
|
||||||
|
CT_ZSTD_PATCH_GLOBAL=y
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_NONE is not set
|
||||||
|
CT_ZSTD_PATCH_ORDER="global"
|
||||||
|
CT_ZSTD_V_1_5_5=y
|
||||||
|
# CT_ZSTD_V_1_5_2 is not set
|
||||||
|
CT_ZSTD_VERSION="1.5.5"
|
||||||
|
CT_ZSTD_MIRRORS="https://github.com/facebook/zstd/releases/download/v${CT_ZSTD_VERSION} https://www.zstd.net/"
|
||||||
|
CT_ZSTD_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_ZSTD_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_ALL_COMP_LIBS_CHOICES="CLOOG EXPAT GETTEXT GMP GNUPRUMCU ISL LIBELF LIBICONV MPC MPFR NCURSES NEWLIB_NANO PICOLIBC ZLIB ZSTD"
|
||||||
|
# CT_LIBICONV_NEEDED is not set
|
||||||
|
# CT_GETTEXT_NEEDED is not set
|
||||||
|
CT_GMP_NEEDED=y
|
||||||
|
CT_MPFR_NEEDED=y
|
||||||
|
CT_ISL_NEEDED=y
|
||||||
|
CT_MPC_NEEDED=y
|
||||||
|
CT_ZLIB_NEEDED=y
|
||||||
|
CT_ZSTD_NEEDED=y
|
||||||
|
CT_GMP=y
|
||||||
|
CT_MPFR=y
|
||||||
|
CT_ISL=y
|
||||||
|
CT_MPC=y
|
||||||
|
CT_ZLIB=y
|
||||||
|
CT_ZSTD=y
|
||||||
|
# end of Companion libraries
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion tools
|
||||||
|
#
|
||||||
|
# CT_COMP_TOOLS_FOR_HOST is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOCONF is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOMAKE is not set
|
||||||
|
# CT_COMP_TOOLS_BISON is not set
|
||||||
|
# CT_COMP_TOOLS_DTC is not set
|
||||||
|
# CT_COMP_TOOLS_LIBTOOL is not set
|
||||||
|
# CT_COMP_TOOLS_M4 is not set
|
||||||
|
# CT_COMP_TOOLS_MAKE is not set
|
||||||
|
CT_ALL_COMP_TOOLS_CHOICES="AUTOCONF AUTOMAKE BISON DTC LIBTOOL M4 MAKE"
|
||||||
|
# end of Companion tools
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test suite
|
||||||
|
#
|
||||||
|
# CT_TEST_SUITE_GCC is not set
|
||||||
|
# end of Test suite
|
|
@ -1,12 +1,16 @@
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR i686)
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
|
set(triple i686-w64-mingw32)
|
||||||
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
|
|
||||||
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
|
|
||||||
set(CMAKE_RANLIB i686-w64-mingw32-ranlib)
|
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /opt/ffbuild)
|
set(CMAKE_C_COMPILER ${triple}-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
||||||
|
set(CMAKE_RC_COMPILER ${triple}-windres)
|
||||||
|
set(CMAKE_RANLIB ${triple}-gcc-ranlib)
|
||||||
|
set(CMAKE_AR ${triple}-gcc-ar)
|
||||||
|
|
||||||
|
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
|
|
@ -1,15 +1,22 @@
|
||||||
ARG GH_REPO=btbn/ffmpeg-builds
|
ARG GH_REPO=ghcr.io/btbn/ffmpeg-builds
|
||||||
FROM ghcr.io/$GH_REPO/base:latest
|
FROM $GH_REPO/base:latest
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
RUN --mount=src=ct-ng-config,dst=/.config \
|
||||||
|
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
||||||
|
./bootstrap && \
|
||||||
|
./configure --enable-local && \
|
||||||
|
make -j$(nproc) && \
|
||||||
|
cp /.config .config && \
|
||||||
|
./ct-ng build && \
|
||||||
|
cd / && \
|
||||||
|
rm -rf ct-ng
|
||||||
|
|
||||||
|
# Prepare "cross" environment to heavily favour static builds
|
||||||
RUN \
|
RUN \
|
||||||
apt-get -y install binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gfortran-mingw-w64-x86-64 && \
|
find /opt/ct-ng \
|
||||||
apt-get -y clean && \
|
-name "*.dll" \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/libstdc++*.dll* && \
|
-or -name "*.dll.a" \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/libgcc_s* && \
|
-delete && \
|
||||||
rm /usr/lib/gcc/*-w64-mingw32/*/*.dll.a && \
|
|
||||||
rm /usr/*-w64-mingw32/lib/*.dll.a && \
|
|
||||||
mkdir /opt/ffbuild
|
mkdir /opt/ffbuild
|
||||||
|
|
||||||
RUN rustup target add x86_64-pc-windows-gnu
|
RUN rustup target add x86_64-pc-windows-gnu
|
||||||
|
@ -17,17 +24,24 @@ RUN rustup target add x86_64-pc-windows-gnu
|
||||||
ADD toolchain.cmake /toolchain.cmake
|
ADD toolchain.cmake /toolchain.cmake
|
||||||
ADD cross.meson /cross.meson
|
ADD cross.meson /cross.meson
|
||||||
|
|
||||||
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32" \
|
ENV FFBUILD_TOOLCHAIN=x86_64-w64-mingw32
|
||||||
FFBUILD_TOOLCHAIN=x86_64-w64-mingw32 \
|
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||||
FFBUILD_CROSS_PREFIX=x86_64-w64-mingw32- \
|
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=${FFBUILD_TOOLCHAIN}- --arch=x86_64 --target-os=mingw32" \
|
||||||
|
FFBUILD_CROSS_PREFIX=${FFBUILD_TOOLCHAIN}- \
|
||||||
FFBUILD_RUST_TARGET=x86_64-pc-windows-gnu \
|
FFBUILD_RUST_TARGET=x86_64-pc-windows-gnu \
|
||||||
FFBUILD_PREFIX=/opt/ffbuild \
|
FFBUILD_PREFIX=/opt/ffbuild \
|
||||||
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
FFBUILD_CMAKE_TOOLCHAIN=/toolchain.cmake \
|
||||||
PKG_CONFIG=pkg-config \
|
PKG_CONFIG=pkg-config \
|
||||||
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
PKG_CONFIG_LIBDIR=/opt/ffbuild/lib/pkgconfig:/opt/ffbuild/share/pkgconfig \
|
||||||
|
CC="${FFBUILD_TOOLCHAIN}-gcc" \
|
||||||
|
CXX="${FFBUILD_TOOLCHAIN}-g++" \
|
||||||
|
LD="${FFBUILD_TOOLCHAIN}-ld" \
|
||||||
|
AR="${FFBUILD_TOOLCHAIN}-gcc-ar" \
|
||||||
|
RANLIB="${FFBUILD_TOOLCHAIN}-gcc-ranlib" \
|
||||||
|
NM="${FFBUILD_TOOLCHAIN}-gcc-nm" \
|
||||||
|
DLLTOOL="${FFBUILD_TOOLCHAIN}-dlltool" \
|
||||||
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
CFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
||||||
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
CXXFLAGS="-static-libgcc -static-libstdc++ -I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong" \
|
||||||
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong" \
|
LDFLAGS="-static-libgcc -static-libstdc++ -L/opt/ffbuild/lib -O2 -pipe -fstack-protector-strong" \
|
||||||
DLLTOOL="x86_64-w64-mingw32-dlltool" \
|
|
||||||
STAGE_CFLAGS="-fno-semantic-interposition" \
|
STAGE_CFLAGS="-fno-semantic-interposition" \
|
||||||
STAGE_CXXFLAGS="-fno-semantic-interposition"
|
STAGE_CXXFLAGS="-fno-semantic-interposition"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
[binaries]
|
[binaries]
|
||||||
c = 'x86_64-w64-mingw32-gcc'
|
c = 'x86_64-w64-mingw32-gcc'
|
||||||
cpp = 'x86_64-w64-mingw32-g++'
|
cpp = 'x86_64-w64-mingw32-g++'
|
||||||
ar = 'x86_64-w64-mingw32-ar'
|
ar = 'x86_64-w64-mingw32-gcc-ar'
|
||||||
|
ranlib = 'x86_64-w64-mingw32-gcc-ranlib'
|
||||||
strip = 'x86_64-w64-mingw32-strip'
|
strip = 'x86_64-w64-mingw32-strip'
|
||||||
windres = 'x86_64-w64-mingw32-windres'
|
windres = 'x86_64-w64-mingw32-windres'
|
||||||
|
dlltool = 'x86_64-w64-mingw32-dlltool'
|
||||||
exe_wrapper = ['wine']
|
exe_wrapper = ['wine']
|
||||||
|
|
||||||
[properties]
|
[properties]
|
||||||
|
|
784
images/base-win64/ct-ng-config
Normal file
784
images/base-win64/ct-ng-config
Normal file
|
@ -0,0 +1,784 @@
|
||||||
|
#
|
||||||
|
# Automatically generated file; DO NOT EDIT.
|
||||||
|
# crosstool-NG 1.25.0.196_227d99d Configuration
|
||||||
|
#
|
||||||
|
CT_CONFIGURE_has_static_link=y
|
||||||
|
CT_CONFIGURE_has_cxx11=y
|
||||||
|
CT_CONFIGURE_has_wget=y
|
||||||
|
CT_CONFIGURE_has_curl=y
|
||||||
|
CT_CONFIGURE_has_meson=y
|
||||||
|
CT_CONFIGURE_has_ninja=y
|
||||||
|
CT_CONFIGURE_has_rsync=y
|
||||||
|
CT_CONFIGURE_has_make_3_81_or_newer=y
|
||||||
|
CT_CONFIGURE_has_make_4_0_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtool_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_autoreconf_2_71_or_newer=y
|
||||||
|
CT_CONFIGURE_has_automake_1_16_or_newer=y
|
||||||
|
CT_CONFIGURE_has_gnu_m4_1_4_12_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python_3_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_2_7_or_newer=y
|
||||||
|
CT_CONFIGURE_has_bison_3_0_4_or_newer=y
|
||||||
|
CT_CONFIGURE_has_python=y
|
||||||
|
CT_CONFIGURE_has_svn=y
|
||||||
|
CT_CONFIGURE_has_git=y
|
||||||
|
CT_CONFIGURE_has_md5sum=y
|
||||||
|
CT_CONFIGURE_has_sha1sum=y
|
||||||
|
CT_CONFIGURE_has_sha256sum=y
|
||||||
|
CT_CONFIGURE_has_sha512sum=y
|
||||||
|
CT_CONFIGURE_has_install_with_strip_program=y
|
||||||
|
CT_VERSION="1.25.0.196_227d99d"
|
||||||
|
CT_VCHECK=""
|
||||||
|
CT_CONFIG_VERSION_ENV="4"
|
||||||
|
CT_CONFIG_VERSION_CURRENT="4"
|
||||||
|
CT_CONFIG_VERSION="4"
|
||||||
|
CT_MODULES=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths and misc options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# crosstool-NG behavior
|
||||||
|
#
|
||||||
|
# CT_OBSOLETE is not set
|
||||||
|
CT_EXPERIMENTAL=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT=y
|
||||||
|
CT_ALLOW_BUILD_AS_ROOT_SURE=y
|
||||||
|
# CT_ENABLE_EXPERIMENTAL_BUNDLED_PATCHES is not set
|
||||||
|
# CT_DEBUG_CT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Paths
|
||||||
|
#
|
||||||
|
CT_LOCAL_TARBALLS_DIR="${HOME}/src"
|
||||||
|
# CT_SAVE_TARBALLS is not set
|
||||||
|
# CT_TARBALLS_BUILDROOT_LAYOUT is not set
|
||||||
|
CT_WORK_DIR="${CT_TOP_DIR}/build"
|
||||||
|
CT_BUILD_TOP_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
||||||
|
CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
|
||||||
|
CT_PREFIX_DIR="/opt/ct-ng"
|
||||||
|
CT_RM_RF_PREFIX_DIR=y
|
||||||
|
CT_REMOVE_DOCS=y
|
||||||
|
# CT_INSTALL_LICENSES is not set
|
||||||
|
# CT_PREFIX_DIR_RO is not set
|
||||||
|
CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
|
||||||
|
# CT_TARBALL_RESULT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Downloading
|
||||||
|
#
|
||||||
|
CT_DOWNLOAD_AGENT_WGET=y
|
||||||
|
# CT_DOWNLOAD_AGENT_CURL is not set
|
||||||
|
# CT_DOWNLOAD_AGENT_NONE is not set
|
||||||
|
# CT_FORBID_DOWNLOAD is not set
|
||||||
|
# CT_FORCE_DOWNLOAD is not set
|
||||||
|
CT_CONNECT_TIMEOUT=10
|
||||||
|
CT_DOWNLOAD_WGET_OPTIONS="--passive-ftp --tries=3 -nc --progress=dot:binary"
|
||||||
|
# CT_ONLY_DOWNLOAD is not set
|
||||||
|
# CT_USE_MIRROR is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST=y
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_SHA512=y
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA256 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_SHA1 is not set
|
||||||
|
# CT_VERIFY_DOWNLOAD_DIGEST_MD5 is not set
|
||||||
|
CT_VERIFY_DOWNLOAD_DIGEST_ALG="sha512"
|
||||||
|
# CT_VERIFY_DOWNLOAD_SIGNATURE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Extracting
|
||||||
|
#
|
||||||
|
# CT_FORCE_EXTRACT is not set
|
||||||
|
CT_OVERRIDE_CONFIG_GUESS_SUB=y
|
||||||
|
# CT_ONLY_EXTRACT is not set
|
||||||
|
CT_PATCH_BUNDLED=y
|
||||||
|
# CT_PATCH_LOCAL is not set
|
||||||
|
# CT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_PATCH_NONE is not set
|
||||||
|
CT_PATCH_ORDER="bundled"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build behavior
|
||||||
|
#
|
||||||
|
CT_PARALLEL_JOBS=0
|
||||||
|
CT_LOAD=""
|
||||||
|
CT_USE_PIPES=y
|
||||||
|
CT_EXTRA_CFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_CXXFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_BUILD=""
|
||||||
|
CT_EXTRA_CFLAGS_FOR_HOST=""
|
||||||
|
CT_EXTRA_LDFLAGS_FOR_HOST=""
|
||||||
|
# CT_CONFIG_SHELL_SH is not set
|
||||||
|
# CT_CONFIG_SHELL_ASH is not set
|
||||||
|
CT_CONFIG_SHELL_BASH=y
|
||||||
|
# CT_CONFIG_SHELL_CUSTOM is not set
|
||||||
|
CT_CONFIG_SHELL="${bash}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logging
|
||||||
|
#
|
||||||
|
# CT_LOG_ERROR is not set
|
||||||
|
# CT_LOG_WARN is not set
|
||||||
|
# CT_LOG_INFO is not set
|
||||||
|
# CT_LOG_EXTRA is not set
|
||||||
|
# CT_LOG_ALL is not set
|
||||||
|
CT_LOG_DEBUG=y
|
||||||
|
CT_LOG_LEVEL_MAX="DEBUG"
|
||||||
|
# CT_LOG_SEE_TOOLS_WARN is not set
|
||||||
|
# CT_LOG_TO_FILE is not set
|
||||||
|
# end of Paths and misc options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target options
|
||||||
|
#
|
||||||
|
# CT_ARCH_ALPHA is not set
|
||||||
|
# CT_ARCH_ARC is not set
|
||||||
|
# CT_ARCH_ARM is not set
|
||||||
|
# CT_ARCH_AVR is not set
|
||||||
|
# CT_ARCH_BPF is not set
|
||||||
|
# CT_ARCH_C6X is not set
|
||||||
|
# CT_ARCH_LOONGARCH is not set
|
||||||
|
# CT_ARCH_M68K is not set
|
||||||
|
# CT_ARCH_MICROBLAZE is not set
|
||||||
|
# CT_ARCH_MIPS is not set
|
||||||
|
# CT_ARCH_MOXIE is not set
|
||||||
|
# CT_ARCH_MSP430 is not set
|
||||||
|
# CT_ARCH_NIOS2 is not set
|
||||||
|
# CT_ARCH_POWERPC is not set
|
||||||
|
# CT_ARCH_PRU is not set
|
||||||
|
# CT_ARCH_RISCV is not set
|
||||||
|
# CT_ARCH_S390 is not set
|
||||||
|
# CT_ARCH_SH is not set
|
||||||
|
# CT_ARCH_SPARC is not set
|
||||||
|
CT_ARCH_X86=y
|
||||||
|
# CT_ARCH_XTENSA is not set
|
||||||
|
CT_ARCH="x86"
|
||||||
|
CT_ARCH_CHOICE_KSYM="X86"
|
||||||
|
CT_ARCH_CPU=""
|
||||||
|
CT_ARCH_TUNE=""
|
||||||
|
CT_ARCH_X86_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for x86
|
||||||
|
#
|
||||||
|
CT_ARCH_X86_PKG_KSYM=""
|
||||||
|
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR BPF C6X LOONGARCH M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
|
||||||
|
CT_ARCH_SUFFIX=""
|
||||||
|
# CT_OMIT_TARGET_VENDOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic target options
|
||||||
|
#
|
||||||
|
# CT_MULTILIB is not set
|
||||||
|
CT_DEMULTILIB=y
|
||||||
|
CT_ARCH_USE_MMU=y
|
||||||
|
CT_ARCH_SUPPORTS_LIBSANITIZER=y
|
||||||
|
CT_ARCH_SUPPORTS_32=y
|
||||||
|
CT_ARCH_SUPPORTS_64=y
|
||||||
|
CT_ARCH_DEFAULT_32=y
|
||||||
|
CT_ARCH_BITNESS=64
|
||||||
|
# CT_ARCH_32 is not set
|
||||||
|
CT_ARCH_64=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_32_64=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target optimisations
|
||||||
|
#
|
||||||
|
CT_ARCH_SUPPORTS_WITH_ARCH=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_CPU=y
|
||||||
|
CT_ARCH_SUPPORTS_WITH_TUNE=y
|
||||||
|
CT_ARCH_ARCH=""
|
||||||
|
CT_TARGET_CFLAGS=""
|
||||||
|
CT_TARGET_LDFLAGS=""
|
||||||
|
# end of Target options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain options
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# General toolchain options
|
||||||
|
#
|
||||||
|
CT_FORCE_SYSROOT=y
|
||||||
|
CT_USE_SYSROOT=y
|
||||||
|
CT_SYSROOT_NAME="sysroot"
|
||||||
|
CT_SYSROOT_DIR_PREFIX=""
|
||||||
|
CT_WANTS_STATIC_LINK=y
|
||||||
|
CT_WANTS_STATIC_LINK_CXX=y
|
||||||
|
# CT_STATIC_TOOLCHAIN is not set
|
||||||
|
CT_SHOW_CT_VERSION=y
|
||||||
|
CT_TOOLCHAIN_PKGVERSION=""
|
||||||
|
CT_TOOLCHAIN_BUGURL=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tuple completion and aliasing
|
||||||
|
#
|
||||||
|
CT_TARGET_VENDOR="w64"
|
||||||
|
CT_TARGET_ALIAS_SED_EXPR=""
|
||||||
|
CT_TARGET_ALIAS=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Toolchain type
|
||||||
|
#
|
||||||
|
# CT_NATIVE is not set
|
||||||
|
CT_CROSS=y
|
||||||
|
# CT_CROSS_NATIVE is not set
|
||||||
|
# CT_CANADIAN is not set
|
||||||
|
CT_TOOLCHAIN_TYPE="cross"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build system
|
||||||
|
#
|
||||||
|
CT_BUILD=""
|
||||||
|
CT_BUILD_PREFIX=""
|
||||||
|
CT_BUILD_SUFFIX=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc options
|
||||||
|
#
|
||||||
|
# CT_TOOLCHAIN_ENABLE_NLS is not set
|
||||||
|
# end of Toolchain options
|
||||||
|
|
||||||
|
#
|
||||||
|
# Operating System
|
||||||
|
#
|
||||||
|
CT_WINDOWS=y
|
||||||
|
CT_KERNEL_SUPPORTS_SHARED_LIBS=y
|
||||||
|
# CT_KERNEL_BARE_METAL is not set
|
||||||
|
# CT_KERNEL_LINUX is not set
|
||||||
|
CT_KERNEL_WINDOWS=y
|
||||||
|
CT_KERNEL="windows"
|
||||||
|
CT_KERNEL_CHOICE_KSYM="WINDOWS"
|
||||||
|
CT_KERNEL_WINDOWS_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for windows
|
||||||
|
#
|
||||||
|
CT_KERNEL_WINDOWS_PKG_KSYM=""
|
||||||
|
CT_ALL_KERNEL_CHOICES="BARE_METAL LINUX WINDOWS"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common kernel options
|
||||||
|
#
|
||||||
|
CT_SHARED_LIBS=y
|
||||||
|
# end of Operating System
|
||||||
|
|
||||||
|
#
|
||||||
|
# Binary utilities
|
||||||
|
#
|
||||||
|
CT_ARCH_BINFMT_ELF=y
|
||||||
|
CT_BINUTILS_BINUTILS=y
|
||||||
|
CT_BINUTILS="binutils"
|
||||||
|
CT_BINUTILS_CHOICE_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_BINUTILS_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_BINUTILS_PKG_KSYM="BINUTILS"
|
||||||
|
CT_BINUTILS_DIR_NAME="binutils"
|
||||||
|
CT_BINUTILS_USE_GNU=y
|
||||||
|
# CT_BINUTILS_USE_LINARO is not set
|
||||||
|
# CT_BINUTILS_USE_ORACLE is not set
|
||||||
|
CT_BINUTILS_USE="BINUTILS"
|
||||||
|
CT_BINUTILS_PKG_NAME="binutils"
|
||||||
|
CT_BINUTILS_SRC_RELEASE=y
|
||||||
|
# CT_BINUTILS_SRC_DEVEL is not set
|
||||||
|
# CT_BINUTILS_SRC_CUSTOM is not set
|
||||||
|
CT_BINUTILS_PATCH_GLOBAL=y
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_BINUTILS_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_BINUTILS_PATCH_NONE is not set
|
||||||
|
CT_BINUTILS_PATCH_ORDER="global"
|
||||||
|
CT_BINUTILS_V_2_40=y
|
||||||
|
# CT_BINUTILS_V_2_39 is not set
|
||||||
|
# CT_BINUTILS_V_2_38 is not set
|
||||||
|
# CT_BINUTILS_V_2_37 is not set
|
||||||
|
# CT_BINUTILS_V_2_36 is not set
|
||||||
|
# CT_BINUTILS_V_2_35 is not set
|
||||||
|
# CT_BINUTILS_V_2_34 is not set
|
||||||
|
# CT_BINUTILS_V_2_33 is not set
|
||||||
|
# CT_BINUTILS_V_2_32 is not set
|
||||||
|
# CT_BINUTILS_V_2_31 is not set
|
||||||
|
# CT_BINUTILS_V_2_30 is not set
|
||||||
|
# CT_BINUTILS_V_2_29 is not set
|
||||||
|
# CT_BINUTILS_V_2_28 is not set
|
||||||
|
# CT_BINUTILS_V_2_27 is not set
|
||||||
|
# CT_BINUTILS_V_2_26 is not set
|
||||||
|
CT_BINUTILS_VERSION="2.40"
|
||||||
|
CT_BINUTILS_MIRRORS="$(CT_Mirrors GNU binutils) $(CT_Mirrors sourceware binutils/releases)"
|
||||||
|
CT_BINUTILS_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_BINUTILS_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_BINUTILS_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_BINUTILS_later_than_2_39=y
|
||||||
|
CT_BINUTILS_2_39_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_30=y
|
||||||
|
CT_BINUTILS_2_30_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_27=y
|
||||||
|
CT_BINUTILS_2_27_or_later=y
|
||||||
|
CT_BINUTILS_later_than_2_26=y
|
||||||
|
CT_BINUTILS_2_26_or_later=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# GNU binutils
|
||||||
|
#
|
||||||
|
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
|
||||||
|
CT_BINUTILS_GOLD_SUPPORT=y
|
||||||
|
CT_BINUTILS_FORCE_LD_BFD_DEFAULT=y
|
||||||
|
CT_BINUTILS_LINKER_LD=y
|
||||||
|
# CT_BINUTILS_LINKER_LD_GOLD is not set
|
||||||
|
CT_BINUTILS_LINKERS_LIST="ld"
|
||||||
|
CT_BINUTILS_LINKER_DEFAULT="bfd"
|
||||||
|
CT_BINUTILS_PLUGINS=y
|
||||||
|
CT_BINUTILS_RELRO=m
|
||||||
|
CT_BINUTILS_DETERMINISTIC_ARCHIVES=y
|
||||||
|
CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
|
||||||
|
# CT_BINUTILS_FOR_TARGET is not set
|
||||||
|
CT_ALL_BINUTILS_CHOICES="BINUTILS"
|
||||||
|
# end of Binary utilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# C-library
|
||||||
|
#
|
||||||
|
CT_LIBC_MINGW_W64=y
|
||||||
|
CT_LIBC="mingw-w64"
|
||||||
|
CT_LIBC_CHOICE_KSYM="MINGW_W64"
|
||||||
|
CT_THREADS="posix"
|
||||||
|
CT_LIBC_MINGW_W64_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for mingw-w64
|
||||||
|
#
|
||||||
|
CT_LIBC_MINGW_W64_PKG_KSYM="MINGW_W64"
|
||||||
|
CT_MINGW_W64_DIR_NAME="mingw-w64"
|
||||||
|
CT_MINGW_W64_PKG_NAME="mingw-w64"
|
||||||
|
CT_MINGW_W64_SRC_RELEASE=y
|
||||||
|
# CT_MINGW_W64_SRC_DEVEL is not set
|
||||||
|
# CT_MINGW_W64_SRC_CUSTOM is not set
|
||||||
|
CT_MINGW_W64_PATCH_GLOBAL=y
|
||||||
|
# CT_MINGW_W64_PATCH_BUNDLED is not set
|
||||||
|
# CT_MINGW_W64_PATCH_LOCAL is not set
|
||||||
|
# CT_MINGW_W64_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MINGW_W64_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MINGW_W64_PATCH_NONE is not set
|
||||||
|
CT_MINGW_W64_PATCH_ORDER="global"
|
||||||
|
CT_MINGW_W64_V_V10_0=y
|
||||||
|
# CT_MINGW_W64_V_V9_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V8_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V7_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V6_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V5_0 is not set
|
||||||
|
# CT_MINGW_W64_V_V4_0 is not set
|
||||||
|
CT_MINGW_W64_VERSION="v10.0.0"
|
||||||
|
CT_MINGW_W64_MIRRORS="http://downloads.sourceforge.net/sourceforge/mingw-w64 https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/"
|
||||||
|
CT_MINGW_W64_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MINGW_W64_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MINGW_W64_ARCHIVE_FORMATS=".tar.bz2 .zip"
|
||||||
|
CT_MINGW_W64_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_MINGW_SECURE_API=y
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_DEFAULT is not set
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_MSVCRT is not set
|
||||||
|
CT_MINGW_DEFAULT_MSVCRT_UCRT=y
|
||||||
|
# CT_MINGW_DEFAULT_MSVCRT_CUSTOM is not set
|
||||||
|
CT_MINGW_DIRECTX=y
|
||||||
|
CT_MINGW_DDK=y
|
||||||
|
CT_MINGW_TOOLS=y
|
||||||
|
CT_MINGW_TOOL_LIST_ARRAY="gendef genidl genlib genpeimg widl"
|
||||||
|
CT_ALL_LIBC_CHOICES="AVR_LIBC GLIBC MINGW_W64 MOXIEBOX MUSL NEWLIB NONE PICOLIBC UCLIBC_NG"
|
||||||
|
CT_LIBC_SUPPORT_THREADS_ANY=y
|
||||||
|
CT_LIBC_SUPPORT_THREADS_NATIVE=y
|
||||||
|
CT_LIBC_SUPPORT_THREADS_POSIX=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Common C library options
|
||||||
|
#
|
||||||
|
# CT_THREADS_NATIVE is not set
|
||||||
|
CT_THREADS_POSIX=y
|
||||||
|
# CT_CREATE_LDSO_CONF is not set
|
||||||
|
CT_LIBC_XLDD=y
|
||||||
|
# end of C-library
|
||||||
|
|
||||||
|
#
|
||||||
|
# C compiler
|
||||||
|
#
|
||||||
|
CT_CC_CORE_NEEDED=y
|
||||||
|
CT_CC_SUPPORT_CXX=y
|
||||||
|
CT_CC_SUPPORT_FORTRAN=y
|
||||||
|
CT_CC_SUPPORT_ADA=y
|
||||||
|
CT_CC_SUPPORT_D=y
|
||||||
|
CT_CC_SUPPORT_JIT=y
|
||||||
|
CT_CC_SUPPORT_OBJC=y
|
||||||
|
CT_CC_SUPPORT_OBJCXX=y
|
||||||
|
CT_CC_SUPPORT_GOLANG=y
|
||||||
|
CT_CC_GCC=y
|
||||||
|
CT_CC="gcc"
|
||||||
|
CT_CC_CHOICE_KSYM="GCC"
|
||||||
|
CT_CC_GCC_SHOW=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Options for gcc
|
||||||
|
#
|
||||||
|
CT_CC_GCC_PKG_KSYM="GCC"
|
||||||
|
CT_GCC_DIR_NAME="gcc"
|
||||||
|
CT_GCC_USE_GNU=y
|
||||||
|
# CT_GCC_USE_LINARO is not set
|
||||||
|
# CT_GCC_USE_ORACLE is not set
|
||||||
|
CT_GCC_USE="GCC"
|
||||||
|
CT_GCC_PKG_NAME="gcc"
|
||||||
|
CT_GCC_SRC_RELEASE=y
|
||||||
|
# CT_GCC_SRC_DEVEL is not set
|
||||||
|
# CT_GCC_SRC_CUSTOM is not set
|
||||||
|
CT_GCC_PATCH_GLOBAL=y
|
||||||
|
# CT_GCC_PATCH_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GCC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GCC_PATCH_NONE is not set
|
||||||
|
CT_GCC_PATCH_ORDER="global"
|
||||||
|
CT_GCC_V_13=y
|
||||||
|
# CT_GCC_V_12 is not set
|
||||||
|
# CT_GCC_V_11 is not set
|
||||||
|
# CT_GCC_V_10 is not set
|
||||||
|
# CT_GCC_V_9 is not set
|
||||||
|
# CT_GCC_V_8 is not set
|
||||||
|
# CT_GCC_V_7 is not set
|
||||||
|
# CT_GCC_V_6 is not set
|
||||||
|
# CT_GCC_V_5 is not set
|
||||||
|
# CT_GCC_V_4_9 is not set
|
||||||
|
CT_GCC_VERSION="13.1.0"
|
||||||
|
CT_GCC_MIRRORS="$(CT_Mirrors GNU gcc/gcc-${CT_GCC_VERSION}) $(CT_Mirrors sourceware gcc/releases/gcc-${CT_GCC_VERSION})"
|
||||||
|
CT_GCC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GCC_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GCC_SIGNATURE_FORMAT=""
|
||||||
|
CT_GCC_later_than_13=y
|
||||||
|
CT_GCC_13_or_later=y
|
||||||
|
CT_GCC_later_than_12=y
|
||||||
|
CT_GCC_12_or_later=y
|
||||||
|
CT_GCC_later_than_11=y
|
||||||
|
CT_GCC_11_or_later=y
|
||||||
|
CT_GCC_later_than_10=y
|
||||||
|
CT_GCC_10_or_later=y
|
||||||
|
CT_GCC_later_than_9=y
|
||||||
|
CT_GCC_9_or_later=y
|
||||||
|
CT_GCC_later_than_8=y
|
||||||
|
CT_GCC_8_or_later=y
|
||||||
|
CT_GCC_later_than_7=y
|
||||||
|
CT_GCC_7_or_later=y
|
||||||
|
CT_GCC_later_than_6=y
|
||||||
|
CT_GCC_6_or_later=y
|
||||||
|
CT_GCC_later_than_5=y
|
||||||
|
CT_GCC_5_or_later=y
|
||||||
|
CT_GCC_later_than_4_9=y
|
||||||
|
CT_GCC_4_9_or_later=y
|
||||||
|
CT_CC_GCC_ENABLE_PLUGINS=y
|
||||||
|
CT_CC_GCC_HAS_LIBMPX=y
|
||||||
|
CT_CC_GCC_ENABLE_CXX_FLAGS=""
|
||||||
|
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-default-ssp"
|
||||||
|
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-default-ssp --with-build-config=bootstrap-lto-lean --enable-link-serialization=2"
|
||||||
|
CT_CC_GCC_STATIC_LIBSTDCXX=y
|
||||||
|
CT_CC_GCC_SYSTEM_ZLIB=y
|
||||||
|
CT_CC_GCC_CONFIG_TLS=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Optimisation features
|
||||||
|
#
|
||||||
|
CT_CC_GCC_USE_GRAPHITE=y
|
||||||
|
CT_CC_GCC_USE_LTO=y
|
||||||
|
CT_CC_GCC_LTO_ZSTD=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for libraries running on target
|
||||||
|
#
|
||||||
|
# CT_CC_GCC_ENABLE_TARGET_OPTSPACE is not set
|
||||||
|
# CT_CC_GCC_LIBMUDFLAP is not set
|
||||||
|
CT_CC_GCC_LIBGOMP=y
|
||||||
|
CT_CC_GCC_LIBSSP=m
|
||||||
|
# CT_CC_GCC_LIBQUADMATH is not set
|
||||||
|
# CT_CC_GCC_LIBSTDCXX_VERBOSE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc. obscure options.
|
||||||
|
#
|
||||||
|
CT_CC_CXA_ATEXIT=y
|
||||||
|
CT_CC_GCC_TM_CLONE_REGISTRY=m
|
||||||
|
# CT_CC_GCC_DISABLE_PCH is not set
|
||||||
|
CT_CC_GCC_SJLJ_EXCEPTIONS=m
|
||||||
|
CT_CC_GCC_LDBL_128=m
|
||||||
|
# CT_CC_GCC_BUILD_ID is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_SYSV is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_GNU is not set
|
||||||
|
# CT_CC_GCC_LNK_HASH_STYLE_BOTH is not set
|
||||||
|
CT_CC_GCC_LNK_HASH_STYLE=""
|
||||||
|
CT_CC_GCC_DEC_FLOATS_AUTO=y
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_BID is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_DPD is not set
|
||||||
|
# CT_CC_GCC_DEC_FLOATS_NO is not set
|
||||||
|
CT_CC_GCC_DEC_FLOATS=""
|
||||||
|
CT_ALL_CC_CHOICES="GCC"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Additional supported languages:
|
||||||
|
#
|
||||||
|
CT_CC_LANG_CXX=y
|
||||||
|
# CT_CC_LANG_FORTRAN is not set
|
||||||
|
# CT_CC_LANG_JIT is not set
|
||||||
|
# CT_CC_LANG_ADA is not set
|
||||||
|
# CT_CC_LANG_D is not set
|
||||||
|
# CT_CC_LANG_OBJC is not set
|
||||||
|
# CT_CC_LANG_OBJCXX is not set
|
||||||
|
# CT_CC_LANG_GOLANG is not set
|
||||||
|
CT_CC_LANG_OTHERS=""
|
||||||
|
# end of C compiler
|
||||||
|
|
||||||
|
#
|
||||||
|
# Debug facilities
|
||||||
|
#
|
||||||
|
# CT_DEBUG_DUMA is not set
|
||||||
|
# CT_DEBUG_GDB is not set
|
||||||
|
# CT_DEBUG_LTRACE is not set
|
||||||
|
# CT_DEBUG_STRACE is not set
|
||||||
|
CT_ALL_DEBUG_CHOICES="DUMA GDB LTRACE STRACE"
|
||||||
|
# end of Debug facilities
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion libraries
|
||||||
|
#
|
||||||
|
# CT_COMPLIBS_CHECK is not set
|
||||||
|
# CT_COMP_LIBS_CLOOG is not set
|
||||||
|
# CT_COMP_LIBS_EXPAT is not set
|
||||||
|
CT_COMP_LIBS_GETTEXT=y
|
||||||
|
CT_COMP_LIBS_GETTEXT_PKG_KSYM="GETTEXT"
|
||||||
|
CT_GETTEXT_DIR_NAME="gettext"
|
||||||
|
CT_GETTEXT_PKG_NAME="gettext"
|
||||||
|
CT_GETTEXT_SRC_RELEASE=y
|
||||||
|
# CT_GETTEXT_SRC_DEVEL is not set
|
||||||
|
# CT_GETTEXT_SRC_CUSTOM is not set
|
||||||
|
CT_GETTEXT_PATCH_GLOBAL=y
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GETTEXT_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GETTEXT_PATCH_NONE is not set
|
||||||
|
CT_GETTEXT_PATCH_ORDER="global"
|
||||||
|
CT_GETTEXT_V_0_21=y
|
||||||
|
# CT_GETTEXT_V_0_20_1 is not set
|
||||||
|
# CT_GETTEXT_V_0_19_8_1 is not set
|
||||||
|
CT_GETTEXT_VERSION="0.21"
|
||||||
|
CT_GETTEXT_MIRRORS="$(CT_Mirrors GNU gettext)"
|
||||||
|
CT_GETTEXT_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GETTEXT_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_GETTEXT_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_GETTEXT_0_21_or_later=y
|
||||||
|
CT_GETTEXT_0_21_or_older=y
|
||||||
|
CT_GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# This version of gettext is not compatible with uClibc-NG. Select
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# a different version if uClibc-NG is used on the target or (in a
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Canadian cross build) on the host.
|
||||||
|
#
|
||||||
|
CT_COMP_LIBS_GMP=y
|
||||||
|
CT_COMP_LIBS_GMP_PKG_KSYM="GMP"
|
||||||
|
CT_GMP_DIR_NAME="gmp"
|
||||||
|
CT_GMP_PKG_NAME="gmp"
|
||||||
|
CT_GMP_SRC_RELEASE=y
|
||||||
|
# CT_GMP_SRC_DEVEL is not set
|
||||||
|
# CT_GMP_SRC_CUSTOM is not set
|
||||||
|
CT_GMP_PATCH_GLOBAL=y
|
||||||
|
# CT_GMP_PATCH_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_GMP_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_GMP_PATCH_NONE is not set
|
||||||
|
CT_GMP_PATCH_ORDER="global"
|
||||||
|
CT_GMP_V_6_2=y
|
||||||
|
# CT_GMP_V_6_1 is not set
|
||||||
|
CT_GMP_VERSION="6.2.1"
|
||||||
|
CT_GMP_MIRRORS="https://gmplib.org/download/gmp https://gmplib.org/download/gmp/archive $(CT_Mirrors GNU gmp)"
|
||||||
|
CT_GMP_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_GMP_ARCHIVE_FORMATS=".tar.xz .tar.lz .tar.bz2"
|
||||||
|
CT_GMP_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_COMP_LIBS_ISL=y
|
||||||
|
CT_COMP_LIBS_ISL_PKG_KSYM="ISL"
|
||||||
|
CT_ISL_DIR_NAME="isl"
|
||||||
|
CT_ISL_PKG_NAME="isl"
|
||||||
|
CT_ISL_SRC_RELEASE=y
|
||||||
|
# CT_ISL_SRC_DEVEL is not set
|
||||||
|
# CT_ISL_SRC_CUSTOM is not set
|
||||||
|
CT_ISL_PATCH_GLOBAL=y
|
||||||
|
# CT_ISL_PATCH_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ISL_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ISL_PATCH_NONE is not set
|
||||||
|
CT_ISL_PATCH_ORDER="global"
|
||||||
|
CT_ISL_V_0_26=y
|
||||||
|
# CT_ISL_V_0_25 is not set
|
||||||
|
# CT_ISL_V_0_24 is not set
|
||||||
|
# CT_ISL_V_0_23 is not set
|
||||||
|
# CT_ISL_V_0_22 is not set
|
||||||
|
# CT_ISL_V_0_21 is not set
|
||||||
|
# CT_ISL_V_0_20 is not set
|
||||||
|
# CT_ISL_V_0_19 is not set
|
||||||
|
# CT_ISL_V_0_18 is not set
|
||||||
|
# CT_ISL_V_0_17 is not set
|
||||||
|
# CT_ISL_V_0_16 is not set
|
||||||
|
# CT_ISL_V_0_15 is not set
|
||||||
|
CT_ISL_VERSION="0.26"
|
||||||
|
CT_ISL_MIRRORS="https://libisl.sourceforge.io"
|
||||||
|
CT_ISL_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ISL_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz"
|
||||||
|
CT_ISL_SIGNATURE_FORMAT=""
|
||||||
|
CT_ISL_later_than_0_18=y
|
||||||
|
CT_ISL_0_18_or_later=y
|
||||||
|
CT_ISL_later_than_0_15=y
|
||||||
|
CT_ISL_0_15_or_later=y
|
||||||
|
# CT_COMP_LIBS_LIBELF is not set
|
||||||
|
# CT_COMP_LIBS_LIBICONV is not set
|
||||||
|
CT_COMP_LIBS_MPC=y
|
||||||
|
CT_COMP_LIBS_MPC_PKG_KSYM="MPC"
|
||||||
|
CT_MPC_DIR_NAME="mpc"
|
||||||
|
CT_MPC_PKG_NAME="mpc"
|
||||||
|
CT_MPC_SRC_RELEASE=y
|
||||||
|
# CT_MPC_SRC_DEVEL is not set
|
||||||
|
# CT_MPC_SRC_CUSTOM is not set
|
||||||
|
CT_MPC_PATCH_GLOBAL=y
|
||||||
|
# CT_MPC_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPC_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPC_PATCH_NONE is not set
|
||||||
|
CT_MPC_PATCH_ORDER="global"
|
||||||
|
CT_MPC_V_1_2=y
|
||||||
|
# CT_MPC_V_1_1 is not set
|
||||||
|
# CT_MPC_V_1_0 is not set
|
||||||
|
CT_MPC_VERSION="1.2.1"
|
||||||
|
CT_MPC_MIRRORS="http://www.multiprecision.org/downloads $(CT_Mirrors GNU mpc)"
|
||||||
|
CT_MPC_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPC_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_MPC_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_MPC_later_than_1_1_0=y
|
||||||
|
CT_MPC_1_1_0_or_later=y
|
||||||
|
CT_COMP_LIBS_MPFR=y
|
||||||
|
CT_COMP_LIBS_MPFR_PKG_KSYM="MPFR"
|
||||||
|
CT_MPFR_DIR_NAME="mpfr"
|
||||||
|
CT_MPFR_PKG_NAME="mpfr"
|
||||||
|
CT_MPFR_SRC_RELEASE=y
|
||||||
|
# CT_MPFR_SRC_DEVEL is not set
|
||||||
|
# CT_MPFR_SRC_CUSTOM is not set
|
||||||
|
CT_MPFR_PATCH_GLOBAL=y
|
||||||
|
# CT_MPFR_PATCH_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_MPFR_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_MPFR_PATCH_NONE is not set
|
||||||
|
CT_MPFR_PATCH_ORDER="global"
|
||||||
|
CT_MPFR_V_4_1=y
|
||||||
|
# CT_MPFR_V_4_0 is not set
|
||||||
|
# CT_MPFR_V_3_1 is not set
|
||||||
|
CT_MPFR_VERSION="4.1.0"
|
||||||
|
CT_MPFR_MIRRORS="http://www.mpfr.org/mpfr-${CT_MPFR_VERSION} $(CT_Mirrors GNU mpfr)"
|
||||||
|
CT_MPFR_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_MPFR_ARCHIVE_FORMATS=".tar.xz .tar.bz2 .tar.gz .zip"
|
||||||
|
CT_MPFR_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_MPFR_later_than_4_0_0=y
|
||||||
|
CT_MPFR_4_0_0_or_later=y
|
||||||
|
# CT_COMP_LIBS_NCURSES is not set
|
||||||
|
CT_COMP_LIBS_ZLIB=y
|
||||||
|
CT_COMP_LIBS_ZLIB_PKG_KSYM="ZLIB"
|
||||||
|
CT_ZLIB_DIR_NAME="zlib"
|
||||||
|
CT_ZLIB_PKG_NAME="zlib"
|
||||||
|
CT_ZLIB_SRC_RELEASE=y
|
||||||
|
# CT_ZLIB_SRC_DEVEL is not set
|
||||||
|
# CT_ZLIB_SRC_CUSTOM is not set
|
||||||
|
CT_ZLIB_PATCH_GLOBAL=y
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZLIB_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZLIB_PATCH_NONE is not set
|
||||||
|
CT_ZLIB_PATCH_ORDER="global"
|
||||||
|
CT_ZLIB_V_1_2_13=y
|
||||||
|
CT_ZLIB_VERSION="1.2.13"
|
||||||
|
CT_ZLIB_MIRRORS="https://github.com/madler/zlib/releases/download/v${CT_ZLIB_VERSION} https://www.zlib.net/"
|
||||||
|
CT_ZLIB_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZLIB_ARCHIVE_FORMATS=".tar.xz .tar.gz"
|
||||||
|
CT_ZLIB_SIGNATURE_FORMAT="packed/.asc"
|
||||||
|
CT_COMP_LIBS_ZSTD=y
|
||||||
|
CT_COMP_LIBS_ZSTD_PKG_KSYM="ZSTD"
|
||||||
|
CT_ZSTD_DIR_NAME="zstd"
|
||||||
|
CT_ZSTD_PKG_NAME="zstd"
|
||||||
|
CT_ZSTD_SRC_RELEASE=y
|
||||||
|
# CT_ZSTD_SRC_DEVEL is not set
|
||||||
|
# CT_ZSTD_SRC_CUSTOM is not set
|
||||||
|
CT_ZSTD_PATCH_GLOBAL=y
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_BUNDLED_LOCAL is not set
|
||||||
|
# CT_ZSTD_PATCH_LOCAL_BUNDLED is not set
|
||||||
|
# CT_ZSTD_PATCH_NONE is not set
|
||||||
|
CT_ZSTD_PATCH_ORDER="global"
|
||||||
|
CT_ZSTD_V_1_5_5=y
|
||||||
|
# CT_ZSTD_V_1_5_2 is not set
|
||||||
|
CT_ZSTD_VERSION="1.5.5"
|
||||||
|
CT_ZSTD_MIRRORS="https://github.com/facebook/zstd/releases/download/v${CT_ZSTD_VERSION} https://www.zstd.net/"
|
||||||
|
CT_ZSTD_ARCHIVE_FILENAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_DIRNAME="@{pkg_name}-@{version}"
|
||||||
|
CT_ZSTD_ARCHIVE_FORMATS=".tar.gz"
|
||||||
|
CT_ZSTD_SIGNATURE_FORMAT="packed/.sig"
|
||||||
|
CT_ALL_COMP_LIBS_CHOICES="CLOOG EXPAT GETTEXT GMP GNUPRUMCU ISL LIBELF LIBICONV MPC MPFR NCURSES NEWLIB_NANO PICOLIBC ZLIB ZSTD"
|
||||||
|
# CT_LIBICONV_NEEDED is not set
|
||||||
|
# CT_GETTEXT_NEEDED is not set
|
||||||
|
CT_GMP_NEEDED=y
|
||||||
|
CT_MPFR_NEEDED=y
|
||||||
|
CT_ISL_NEEDED=y
|
||||||
|
CT_MPC_NEEDED=y
|
||||||
|
CT_ZLIB_NEEDED=y
|
||||||
|
CT_ZSTD_NEEDED=y
|
||||||
|
CT_GMP=y
|
||||||
|
CT_MPFR=y
|
||||||
|
CT_ISL=y
|
||||||
|
CT_MPC=y
|
||||||
|
CT_ZLIB=y
|
||||||
|
CT_ZSTD=y
|
||||||
|
# end of Companion libraries
|
||||||
|
|
||||||
|
#
|
||||||
|
# Companion tools
|
||||||
|
#
|
||||||
|
# CT_COMP_TOOLS_FOR_HOST is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOCONF is not set
|
||||||
|
# CT_COMP_TOOLS_AUTOMAKE is not set
|
||||||
|
# CT_COMP_TOOLS_BISON is not set
|
||||||
|
# CT_COMP_TOOLS_DTC is not set
|
||||||
|
# CT_COMP_TOOLS_LIBTOOL is not set
|
||||||
|
# CT_COMP_TOOLS_M4 is not set
|
||||||
|
# CT_COMP_TOOLS_MAKE is not set
|
||||||
|
CT_ALL_COMP_TOOLS_CHOICES="AUTOCONF AUTOMAKE BISON DTC LIBTOOL M4 MAKE"
|
||||||
|
# end of Companion tools
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test suite
|
||||||
|
#
|
||||||
|
# CT_TEST_SUITE_GCC is not set
|
||||||
|
# end of Test suite
|
|
@ -1,12 +1,16 @@
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||||
|
|
||||||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
set(triple x86_64-w64-mingw32)
|
||||||
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
|
||||||
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
|
|
||||||
set(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
|
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 /opt/ffbuild)
|
set(CMAKE_C_COMPILER ${triple}-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
||||||
|
set(CMAKE_RC_COMPILER ${triple}-windres)
|
||||||
|
set(CMAKE_RANLIB ${triple}-gcc-ranlib)
|
||||||
|
set(CMAKE_AR ${triple}-gcc-ar)
|
||||||
|
|
||||||
|
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
||||||
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
|
|
@ -1,10 +1,20 @@
|
||||||
FROM ubuntu:21.04
|
FROM ubuntu:23.04
|
||||||
|
|
||||||
|
ENV FFBUILD_DLDIR="/opt/ffdl"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN \
|
RUN \
|
||||||
|
mkdir -p "$FFBUILD_DLDIR" && \
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
apt-get -y dist-upgrade && \
|
apt-get -y dist-upgrade && \
|
||||||
apt-get -y install build-essential yasm nasm xxd pkgconf git curl wget unzip subversion autoconf automake libtool libtool-bin autopoint cmake clang texinfo texi2html help2man flex bison gperf gettext itstool ragel libc6-dev libssl-dev gtk-doc-tools gobject-introspection gawk meson ninja-build p7zip-full python3-distutils python3-apt python-is-python3 && \
|
apt-get -y install build-essential yasm nasm \
|
||||||
|
xxd pkgconf curl wget unzip zip git subversion mercurial \
|
||||||
|
autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build \
|
||||||
|
texinfo texi2html help2man flex bison groff \
|
||||||
|
gperf itstool ragel libc6-dev libssl-dev \
|
||||||
|
gtk-doc-tools gobject-introspection gawk \
|
||||||
|
ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full \
|
||||||
|
python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 && \
|
||||||
apt-get -y clean && \
|
apt-get -y clean && \
|
||||||
git config --global user.email "builder@localhost" && \
|
git config --global user.email "builder@localhost" && \
|
||||||
git config --global user.name "Builder" && \
|
git config --global user.name "Builder" && \
|
||||||
|
|
|
@ -5,6 +5,8 @@ REF="$2"
|
||||||
DEST="$3"
|
DEST="$3"
|
||||||
git init "$DEST"
|
git init "$DEST"
|
||||||
git -C "$DEST" remote add origin "$REPO"
|
git -C "$DEST" remote add origin "$REPO"
|
||||||
git -C "$DEST" fetch --depth=1 origin "$REF"
|
|
||||||
|
retry-tool git -C "$DEST" fetch --depth=1 origin "$REF"
|
||||||
|
|
||||||
git -C "$DEST" config advice.detachedHead false
|
git -C "$DEST" config advice.detachedHead false
|
||||||
git -C "$DEST" checkout FETCH_HEAD
|
git -C "$DEST" checkout FETCH_HEAD
|
||||||
|
|
16
images/base/retry-tool.sh
Executable file
16
images/base/retry-tool.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
RETRY_COUNTER=0
|
||||||
|
MAX_RETRY=10
|
||||||
|
CUR_TIMEOUT=120
|
||||||
|
while [[ $RETRY_COUNTER -lt $MAX_RETRY ]]; do
|
||||||
|
timeout $CUR_TIMEOUT "$@" && break || sleep $(shuf -i 5-90 -n 1)
|
||||||
|
RETRY_COUNTER=$(( $RETRY_COUNTER + 1 ))
|
||||||
|
CUR_TIMEOUT=$(( $CUR_TIMEOUT + 60 ))
|
||||||
|
echo "Retry $RETRY_COUNTER..."
|
||||||
|
done
|
||||||
|
if [[ $RETRY_COUNTER -ge $MAX_RETRY ]]; then
|
||||||
|
echo "Max retry count exceeded."
|
||||||
|
exit 1
|
||||||
|
fi
|
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
export RAW_CFLAGS="$CFLAGS"
|
||||||
|
export RAW_CXXFLAGS="$CXXFLAGS"
|
||||||
|
export RAW_LDFLAGS="$LDFLAGS"
|
||||||
[[ -n "$STAGE_CFLAGS" ]] && export CFLAGS="$CFLAGS $STAGE_CFLAGS"
|
[[ -n "$STAGE_CFLAGS" ]] && export CFLAGS="$CFLAGS $STAGE_CFLAGS"
|
||||||
[[ -n "$STAGE_CXXFLAGS" ]] && export CXXFLAGS="$CXXFLAGS $STAGE_CXXFLAGS"
|
[[ -n "$STAGE_CXXFLAGS" ]] && export CXXFLAGS="$CXXFLAGS $STAGE_CXXFLAGS"
|
||||||
[[ -n "$STAGE_LDFLAGS" ]] && export LDFLAGS="$LDFLAGS $STAGE_LDFLAGS"
|
[[ -n "$STAGE_LDFLAGS" ]] && export LDFLAGS="$LDFLAGS $STAGE_LDFLAGS"
|
||||||
|
@ -8,5 +11,12 @@ set -xe
|
||||||
mkdir -p /stage
|
mkdir -p /stage
|
||||||
source "$1"
|
source "$1"
|
||||||
cd /stage
|
cd /stage
|
||||||
ffbuild_dockerbuild
|
if [[ -n "$3" ]]; then
|
||||||
|
cd "$3"
|
||||||
|
fi
|
||||||
|
if [[ -z "$2" ]]; then
|
||||||
|
ffbuild_dockerbuild
|
||||||
|
else
|
||||||
|
"$2"
|
||||||
|
fi
|
||||||
rm -rf /stage "$FFBUILD_PREFIX"/bin
|
rm -rf /stage "$FFBUILD_PREFIX"/bin
|
||||||
|
|
57
makeimage.sh
57
makeimage.sh
|
@ -3,16 +3,65 @@ set -xe
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
source util/vars.sh
|
source util/vars.sh
|
||||||
|
|
||||||
export DOCKER_BUILDKIT=1
|
TMPCFG="$(mktemp --suffix=.toml)"
|
||||||
|
cat <<EOF >"$TMPCFG"
|
||||||
|
[worker.oci]
|
||||||
|
max-parallelism = 4
|
||||||
|
EOF
|
||||||
|
trap "rm -f '$TMPCFG'" EXIT
|
||||||
|
|
||||||
|
docker buildx inspect ffbuilder &>/dev/null || docker buildx create \
|
||||||
|
--bootstrap \
|
||||||
|
--name ffbuilder \
|
||||||
|
--config "$TMPCFG" \
|
||||||
|
--driver-opt network=host \
|
||||||
|
--driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=-1 \
|
||||||
|
--driver-opt env.BUILDKIT_STEP_LOG_MAX_SPEED=-1
|
||||||
|
|
||||||
|
docker container inspect ffbuildreg &>/dev/null || \
|
||||||
|
docker run --rm -d -p 127.0.0.1:64647:5000 --name ffbuildreg registry:2
|
||||||
|
LOCAL_REG_PORT="$(docker container inspect --format='{{range $p, $conf := .NetworkSettings.Ports}}{{(index $conf 0).HostPort}}{{end}}' ffbuildreg)"
|
||||||
|
LOCAL_ROOT="127.0.0.1:${LOCAL_REG_PORT}/local"
|
||||||
|
|
||||||
|
export REGISTRY_OVERRIDE_DL="127.0.0.1:${LOCAL_REG_PORT}" GITHUB_REPOSITORY_DL="local"
|
||||||
|
|
||||||
if [[ -z "$QUICKBUILD" ]]; then
|
if [[ -z "$QUICKBUILD" ]]; then
|
||||||
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
|
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
|
||||||
docker build --tag "$BASE_IMAGE" images/base
|
docker buildx --builder ffbuilder build \
|
||||||
|
--cache-from=type=local,src=.cache/"${BASE_IMAGE/:/_}" \
|
||||||
|
--cache-to=type=local,mode=max,dest=.cache/"${BASE_IMAGE/:/_}" \
|
||||||
|
--push --tag "${LOCAL_ROOT}/base:latest" images/base
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker build --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
|
docker buildx --builder ffbuilder build \
|
||||||
|
--cache-from=type=local,src=.cache/"${TARGET_IMAGE/:/_}" \
|
||||||
|
--cache-to=type=local,mode=max,dest=.cache/"${TARGET_IMAGE/:/_}" \
|
||||||
|
--push --tag "${LOCAL_ROOT}/base-${TARGET}:latest" \
|
||||||
|
--build-arg GH_REPO="$LOCAL_ROOT" "images/base-${TARGET}"
|
||||||
|
|
||||||
|
export REGISTRY_OVERRIDE="$REGISTRY_OVERRIDE_DL" GITHUB_REPOSITORY="$GITHUB_REPOSITORY_DL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
|
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
|
||||||
|
DL_CACHE_TAG="$(./util/get_dl_cache_tag.sh)"
|
||||||
|
DL_IMAGE="${DL_IMAGE_RAW}:${DL_CACHE_TAG}"
|
||||||
|
|
||||||
exec docker build --tag "$IMAGE" .
|
if docker pull "${DL_IMAGE}"; then
|
||||||
|
export REGISTRY_OVERRIDE_DL="$REGISTRY" GITHUB_REPOSITORY_DL="$REPO"
|
||||||
|
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"
|
||||||
|
else
|
||||||
|
DL_IMAGE="${LOCAL_ROOT}/dl_cache:${DL_CACHE_TAG}"
|
||||||
|
docker manifest inspect --insecure "${DL_IMAGE}" >/dev/null ||
|
||||||
|
docker buildx --builder ffbuilder build -f Dockerfile.dl \
|
||||||
|
--cache-from=type=local,src=.cache/dl_image_cache \
|
||||||
|
--cache-to=type=local,mode=max,dest=.cache/dl_image_cache \
|
||||||
|
--push --tag "${DL_IMAGE}" .
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker buildx --builder ffbuilder build \
|
||||||
|
--cache-from=type=local,src=.cache/"${IMAGE/:/_}" \
|
||||||
|
--cache-to=type=local,mode=max,dest=.cache/"${IMAGE/:/_}" \
|
||||||
|
--load --tag "$IMAGE" .
|
||||||
|
|
||||||
|
docker container stop ffbuildreg
|
||||||
|
docker buildx rm -f ffbuilder
|
||||||
|
|
31
patches/aribb24/12.patch
Normal file
31
patches/aribb24/12.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
From a5bcc6d17c20e18bdeec295089cc0cdfac9d35c8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: xtne6f <xt4ubq@gmail.com>
|
||||||
|
Date: Thu, 7 Feb 2019 20:11:13 +0900
|
||||||
|
Subject: [PATCH] Fix default macros
|
||||||
|
|
||||||
|
---
|
||||||
|
src/decoder_macro.h | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/decoder_macro.h b/src/decoder_macro.h
|
||||||
|
index 86edee4..513b81e 100644
|
||||||
|
--- a/src/decoder_macro.h
|
||||||
|
+++ b/src/decoder_macro.h
|
||||||
|
@@ -30,7 +30,7 @@ static const unsigned char decoder_default_macro_1[] = {
|
||||||
|
0x1B,0x24,0x39,0x1B,0x29,0x31,0x1B,0x2A,0x30,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
};
|
||||||
|
static const unsigned char decoder_default_macro_2[] = {
|
||||||
|
- 0x1B,0x24,0x39,0x1B,0x29,0x20,0x40,0x1B,0x2A,0x30,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
+ 0x1B,0x24,0x39,0x1B,0x29,0x20,0x41,0x1B,0x2A,0x30,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
};
|
||||||
|
static const unsigned char decoder_default_macro_3[] = {
|
||||||
|
0x1B,0x28,0x32,0x1B,0x29,0x34,0x1B,0x2A,0x35,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
@@ -39,7 +39,7 @@ static const unsigned char decoder_default_macro_4[] = {
|
||||||
|
0x1B,0x28,0x32,0x1B,0x29,0x33,0x1B,0x2A,0x35,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
};
|
||||||
|
static const unsigned char decoder_default_macro_5[] = {
|
||||||
|
- 0x1B,0x28,0x32,0x1B,0x29,0x20,0x40,0x1B,0x2A,0x35,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
+ 0x1B,0x28,0x32,0x1B,0x29,0x20,0x41,0x1B,0x2A,0x35,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
||||||
|
};
|
||||||
|
static const unsigned char decoder_default_macro_6[] = {
|
||||||
|
0x1B,0x28,0x20,0x41,0x1B,0x29,0x20,0x42,0x1B,0x2A,0x20,0x43,0x1B,0x2B,0x20,0x70,0x0F,0x1B,0x7D
|
23
patches/aribb24/13.patch
Normal file
23
patches/aribb24/13.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
From facc51923d43f26dec09a9391566de7cba29f8db Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= <jeebjp@gmail.com>
|
||||||
|
Date: Sun, 17 Feb 2019 22:42:31 +0200
|
||||||
|
Subject: [PATCH] decoder: reset control_time when finalizing decoder
|
||||||
|
|
||||||
|
This way finalize_decoder() can properly be utilized as a flush
|
||||||
|
function.
|
||||||
|
---
|
||||||
|
src/decoder.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/decoder.c b/src/decoder.c
|
||||||
|
index 2b77f38..24c0f06 100644
|
||||||
|
--- a/src/decoder.c
|
||||||
|
+++ b/src/decoder.c
|
||||||
|
@@ -1506,6 +1506,7 @@ void arib_finalize_decoder( arib_decoder_t* decoder )
|
||||||
|
free( p_region );
|
||||||
|
}
|
||||||
|
decoder->p_region = NULL;
|
||||||
|
+ decoder->i_control_time = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t arib_decode_buffer( arib_decoder_t* decoder,
|
151
patches/aribb24/17.patch
Normal file
151
patches/aribb24/17.patch
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
From 58a34b8fabf4d0e9e1984fb603a97f52fb934a09 Mon Sep 17 00:00:00 2001
|
||||||
|
From: scimmia9286 <scimmia9286@yahoo.co.jp>
|
||||||
|
Date: Thu, 22 Apr 2021 20:26:45 +0900
|
||||||
|
Subject: [PATCH] Fixed DRCS parser bug
|
||||||
|
|
||||||
|
---
|
||||||
|
src/decoder.c | 3 ++-
|
||||||
|
src/drcs.c | 12 ++++++++----
|
||||||
|
src/drcs.h | 2 +-
|
||||||
|
src/parser.c | 25 +++++++++++++++++++++----
|
||||||
|
4 files changed, 32 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/decoder.c b/src/decoder.c
|
||||||
|
index 2b77f38..c9d6ac3 100644
|
||||||
|
--- a/src/decoder.c
|
||||||
|
+++ b/src/decoder.c
|
||||||
|
@@ -1139,9 +1139,10 @@ static int decoder_handle_time( arib_decoder_t *decoder )
|
||||||
|
return 1;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
- if( i_mode == 1 && c >= 0x40 && c <= 0x7F )
|
||||||
|
+ if( i_mode == 1 && c >= 0x40 && c <= 0x7F ) {
|
||||||
|
decoder->i_control_time += c & 0x3f;
|
||||||
|
return 1;
|
||||||
|
+ }
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if( i_mode == 0 )
|
||||||
|
diff --git a/src/drcs.c b/src/drcs.c
|
||||||
|
index 114d846..8ff8d4f 100644
|
||||||
|
--- a/src/drcs.c
|
||||||
|
+++ b/src/drcs.c
|
||||||
|
@@ -406,15 +406,19 @@ static void save_drcs_pattern_data_image(
|
||||||
|
void save_drcs_pattern(
|
||||||
|
arib_instance_t *p_instance,
|
||||||
|
int i_width, int i_height,
|
||||||
|
- int i_depth, const int8_t* p_patternData )
|
||||||
|
+ int i_depth, const int8_t* p_patternData,
|
||||||
|
+ int16_t i_CharacterCode )
|
||||||
|
{
|
||||||
|
+// int i_drcsPage = (i_CharacterCode >> 16) & 0xff;
|
||||||
|
+ int i_code = (i_CharacterCode & 0xff) - 0x20;
|
||||||
|
char* psz_hash = get_drcs_pattern_data_hash( p_instance,
|
||||||
|
i_width, i_height, i_depth, p_patternData );
|
||||||
|
|
||||||
|
- strncpy( p_instance->p->drcs_hash_table[p_instance->p->i_drcs_num], psz_hash, 32 );
|
||||||
|
- p_instance->p->drcs_hash_table[p_instance->p->i_drcs_num][32] = '\0';
|
||||||
|
+ strncpy( p_instance->p->drcs_hash_table[i_code-1], psz_hash, 32 );
|
||||||
|
+ p_instance->p->drcs_hash_table[i_code-1][32] = '\0';
|
||||||
|
|
||||||
|
- p_instance->p->i_drcs_num++;
|
||||||
|
+ p_instance->p->i_drcs_num = i_code > p_instance->p->i_drcs_num ?
|
||||||
|
+ i_code : p_instance->p->i_drcs_num;
|
||||||
|
|
||||||
|
save_drcs_pattern_data_image( p_instance, psz_hash,
|
||||||
|
i_width, i_height, i_depth, p_patternData );
|
||||||
|
diff --git a/src/drcs.h b/src/drcs.h
|
||||||
|
index 274ff44..9c1533e 100644
|
||||||
|
--- a/src/drcs.h
|
||||||
|
+++ b/src/drcs.h
|
||||||
|
@@ -77,6 +77,6 @@ typedef struct drcs_data_s
|
||||||
|
|
||||||
|
bool apply_drcs_conversion_table( arib_instance_t * );
|
||||||
|
bool load_drcs_conversion_table( arib_instance_t * );
|
||||||
|
-void save_drcs_pattern( arib_instance_t *, int, int, int, const int8_t* );
|
||||||
|
+void save_drcs_pattern( arib_instance_t *, int, int, int, const int8_t*, int16_t );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
diff --git a/src/parser.c b/src/parser.c
|
||||||
|
index 1403dd6..6db27ae 100644
|
||||||
|
--- a/src/parser.c
|
||||||
|
+++ b/src/parser.c
|
||||||
|
@@ -79,7 +79,6 @@ static void parse_data_unit_DRCS( arib_parser_t *p_parser, bs_t *p_bs,
|
||||||
|
uint8_t i_data_unit_parameter,
|
||||||
|
uint32_t i_data_unit_size )
|
||||||
|
{
|
||||||
|
- p_parser->p_instance->p->i_drcs_num = 0;
|
||||||
|
#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
if( p_parser->p_drcs_data != NULL )
|
||||||
|
{
|
||||||
|
@@ -119,7 +118,7 @@ static void parse_data_unit_DRCS( arib_parser_t *p_parser, bs_t *p_bs,
|
||||||
|
|
||||||
|
for( int i = 0; i < i_NumberOfCode; i++ )
|
||||||
|
{
|
||||||
|
- bs_skip( p_bs, 16 ); /* i_character_code */
|
||||||
|
+ int16_t i_CharacterCode = bs_read( p_bs, 16 ); /* i_character_code */
|
||||||
|
p_parser->i_data_unit_size += 2;
|
||||||
|
uint8_t i_NumberOfFont = bs_read( p_bs, 8 );
|
||||||
|
p_parser->i_data_unit_size += 1;
|
||||||
|
@@ -139,7 +138,11 @@ static void parse_data_unit_DRCS( arib_parser_t *p_parser, bs_t *p_bs,
|
||||||
|
|
||||||
|
for( int j = 0; j < i_NumberOfFont; j++ )
|
||||||
|
{
|
||||||
|
+#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
+ int8_t i_fontId = bs_read( p_bs, 4 ); /* i_fontID */
|
||||||
|
+#else
|
||||||
|
bs_skip( p_bs, 4 ); /* i_fontID */
|
||||||
|
+#endif //ARIBSUB_GEN_DRCS_DATA
|
||||||
|
uint8_t i_mode = bs_read( p_bs, 4 );
|
||||||
|
p_parser->i_data_unit_size += 1;
|
||||||
|
|
||||||
|
@@ -206,18 +209,26 @@ static void parse_data_unit_DRCS( arib_parser_t *p_parser, bs_t *p_bs,
|
||||||
|
|
||||||
|
#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
save_drcs_pattern( p_parser->p_instance, i_width, i_height, i_depth + 2,
|
||||||
|
- p_drcs_pattern_data->p_patternData );
|
||||||
|
+ p_drcs_pattern_data->p_patternData, i_CharacterCode );
|
||||||
|
#else
|
||||||
|
save_drcs_pattern( p_parser->p_instance, i_width, i_height, i_depth + 2,
|
||||||
|
- p_patternData );
|
||||||
|
+ p_patternData, i_CharacterCode);
|
||||||
|
free( p_patternData );
|
||||||
|
#endif //ARIBSUB_GEN_DRCS_DATA
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
+#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
+ int8_t i_regionX = bs_read( p_bs, 8 ); /* i_regionX */
|
||||||
|
+#else
|
||||||
|
bs_skip( p_bs, 8 ); /* i_regionX */
|
||||||
|
+#endif //ARIBSUB_GEN_DRCS_DATA
|
||||||
|
p_parser->i_data_unit_size += 1;
|
||||||
|
+#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
+ int8_t i_regionY = bs_read( p_bs, 8 ); /* i_regionY */
|
||||||
|
+#else
|
||||||
|
bs_skip( p_bs, 8 ); /* i_regionY */
|
||||||
|
+#endif //ARIBSUB_GEN_DRCS_DATA
|
||||||
|
p_parser->i_data_unit_size += 1;
|
||||||
|
uint16_t i_geometricData_length = bs_read( p_bs, 16 );
|
||||||
|
p_parser->i_data_unit_size += 2;
|
||||||
|
@@ -245,7 +256,11 @@ static void parse_data_unit_DRCS( arib_parser_t *p_parser, bs_t *p_bs,
|
||||||
|
|
||||||
|
for( int k = 0; k < i_geometricData_length ; k++ )
|
||||||
|
{
|
||||||
|
+#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
+ int8_t i_geometricData = bs_read( p_bs, 8 ); /* i_geometric_data */
|
||||||
|
+#else
|
||||||
|
bs_skip( p_bs, 8 ); /* i_geometric_data */
|
||||||
|
+#endif //ARIBSUB_GEN_DRCS_DATA
|
||||||
|
p_parser->i_data_unit_size += 1;
|
||||||
|
|
||||||
|
#ifdef ARIBSUB_GEN_DRCS_DATA
|
||||||
|
@@ -344,6 +359,8 @@ static void parse_caption_management_data( arib_parser_t *p_parser, bs_t *p_bs )
|
||||||
|
p_parser->i_data_unit_size = 0;
|
||||||
|
p_parser->i_subtitle_data_size = 0;
|
||||||
|
p_parser->psz_subtitle_data = NULL;
|
||||||
|
+ p_parser->p_instance->p->i_drcs_num = 0;
|
||||||
|
+ memset(p_parser->p_instance->p->drcs_hash_table, 0, sizeof(p_parser->p_instance->p->drcs_hash_table));
|
||||||
|
if( i_data_unit_loop_length > 0 )
|
||||||
|
{
|
||||||
|
p_parser->psz_subtitle_data = (unsigned char*) calloc(
|
|
@ -1,76 +0,0 @@
|
||||||
From 4037e82a4a6e46bd1133755683ad62f32e5af76e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Syoyo Fujita <syoyo@lighttransport.com>
|
|
||||||
Date: Thu, 28 May 2020 21:38:16 +0900
|
|
||||||
Subject: [PATCH 1/4] Fix build on MinGW cross compiling environment.
|
|
||||||
|
|
||||||
---
|
|
||||||
loader/CMakeLists.txt | 4 +++-
|
|
||||||
loader/loader.c | 13 +++++++++++++
|
|
||||||
loader/loader.rc | 4 ++++
|
|
||||||
3 files changed, 20 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
|
|
||||||
index 4f54c3298..50cced309 100644
|
|
||||||
--- a/loader/CMakeLists.txt
|
|
||||||
+++ b/loader/CMakeLists.txt
|
|
||||||
@@ -160,7 +160,7 @@ if(WIN32)
|
|
||||||
if (USE_MASM)
|
|
||||||
enable_language(ASM_MASM)
|
|
||||||
endif ()
|
|
||||||
- if(CMAKE_ASM_MASM_COMPILER_WORKS OR JWASM_FOUND)
|
|
||||||
+ if((CMAKE_ASM_MASM_COMPILER_WORKS AND NOT CMAKE_CROSSCOMPILING) OR JWASM_FOUND)
|
|
||||||
if(MINGW)
|
|
||||||
set(CMAKE_ASM_MASM_FLAGS ${CMAKE_ASM_MASM_FLAGS} ${JWASM_FLAGS})
|
|
||||||
elseif(NOT CMAKE_CL_64 AND NOT JWASM_FOUND)
|
|
||||||
@@ -180,6 +180,8 @@ if(WIN32)
|
|
||||||
add_library(loader-unknown-chain OBJECT unknown_ext_chain.c)
|
|
||||||
set_target_properties(loader-unknown-chain PROPERTIES CMAKE_C_FLAGS_DEBUG "${MODIFIED_C_FLAGS_DEBUG}")
|
|
||||||
target_compile_options(loader-unknown-chain PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS})
|
|
||||||
+
|
|
||||||
+ target_include_directories(loader-unknown-chain PRIVATE "$<TARGET_PROPERTY:Vulkan::Headers,INTERFACE_INCLUDE_DIRECTORIES>")
|
|
||||||
endif()
|
|
||||||
elseif(APPLE)
|
|
||||||
# For MacOS, use the C code and force the compiler's tail-call optimization instead of using assembly code.
|
|
||||||
diff --git a/loader/loader.c b/loader/loader.c
|
|
||||||
index 6db4e9245..d76f7dbe7 100644
|
|
||||||
--- a/loader/loader.c
|
|
||||||
+++ b/loader/loader.c
|
|
||||||
@@ -83,6 +83,19 @@
|
|
||||||
|
|
||||||
typedef HRESULT(APIENTRY *PFN_CreateDXGIFactory1)(REFIID riid, void **ppFactory);
|
|
||||||
static PFN_CreateDXGIFactory1 fpCreateDXGIFactory1;
|
|
||||||
+
|
|
||||||
+#if defined(__MINGW32__)
|
|
||||||
+// MinGW header may not have some definitions(cfgmgr32.h).
|
|
||||||
+#if !defined(CM_GETIDLIST_FILTER_CLASS)
|
|
||||||
+#define CM_GETIDLIST_FILTER_CLASS (0x200)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#if !defined(CM_GETIDLIST_FILTER_PRESENT)
|
|
||||||
+#define CM_GETIDLIST_FILTER_PRESENT (0x100)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#endif // __MINGW32__
|
|
||||||
+
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// This is a CMake generated file with #defines for any functions/includes
|
|
||||||
diff --git a/loader/loader.rc b/loader/loader.rc
|
|
||||||
index a29c507de..6ed444bfe 100755
|
|
||||||
--- a/loader/loader.rc
|
|
||||||
+++ b/loader/loader.rc
|
|
||||||
@@ -43,7 +43,11 @@
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
+#if defined(__MINGW32__)
|
|
||||||
+#include <winresrc.h>
|
|
||||||
+#else
|
|
||||||
#include "winres.h"
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_BUILDNO
|
|
||||||
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
From f712c42a36bf39592abb2c7f8d2d891287f14c3f Mon Sep 17 00:00:00 2001
|
|
||||||
From: BtbN <btbn@btbn.de>
|
|
||||||
Date: Mon, 7 Sep 2020 20:07:39 +0200
|
|
||||||
Subject: [PATCH 2/4] Fixes for MinGW build
|
|
||||||
|
|
||||||
Adapted from https://github.com/msys2/MINGW-packages/blob/348f1d46d9d273a2cc928deadf9d9114f7a69c2f/mingw-w64-vulkan-loader/002-proper-def-files-for-32bit.patch
|
|
||||||
---
|
|
||||||
loader/CMakeLists.txt | 2 +-
|
|
||||||
loader/loader.h | 4 +++-
|
|
||||||
tests/layers/vk_format_utils.h | 4 +++-
|
|
||||||
3 files changed, 7 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
|
|
||||||
index 50cced309..d35d37220 100644
|
|
||||||
--- a/loader/CMakeLists.txt
|
|
||||||
+++ b/loader/CMakeLists.txt
|
|
||||||
@@ -326,11 +326,11 @@ else()
|
|
||||||
)
|
|
||||||
# cmake-format: on
|
|
||||||
endif()
|
|
||||||
+endif()
|
|
||||||
|
|
||||||
if(NOT APPLE)
|
|
||||||
target_compile_definitions(vulkan PRIVATE _XOPEN_SOURCE=500) # hush compiler warnings for readlink
|
|
||||||
endif()
|
|
||||||
-endif()
|
|
||||||
|
|
||||||
# Generate pkg-config file.
|
|
||||||
include(FindPkgConfig QUIET)
|
|
||||||
diff --git a/loader/loader.h b/loader/loader.h
|
|
||||||
index 6cc0f8388..fc26fcde6 100644
|
|
||||||
--- a/loader/loader.h
|
|
||||||
+++ b/loader/loader.h
|
|
||||||
@@ -38,7 +38,9 @@
|
|
||||||
#include "vk_layer_dispatch_table.h"
|
|
||||||
#include "vk_loader_extensions.h"
|
|
||||||
|
|
||||||
-#if defined(__GNUC__) && __GNUC__ >= 4
|
|
||||||
+#if defined(_WIN32)
|
|
||||||
+#define LOADER_EXPORT __declspec(dllexport)
|
|
||||||
+#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
||||||
#define LOADER_EXPORT __attribute__((visibility("default")))
|
|
||||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
|
||||||
#define LOADER_EXPORT __attribute__((visibility("default")))
|
|
||||||
diff --git a/tests/layers/vk_format_utils.h b/tests/layers/vk_format_utils.h
|
|
||||||
index e76f9ec2f..ef06e12af 100644
|
|
||||||
--- a/tests/layers/vk_format_utils.h
|
|
||||||
+++ b/tests/layers/vk_format_utils.h
|
|
||||||
@@ -25,7 +25,9 @@
|
|
||||||
#include "vulkan/vulkan.h"
|
|
||||||
|
|
||||||
#if !defined(VK_LAYER_EXPORT)
|
|
||||||
-#if defined(__GNUC__) && __GNUC__ >= 4
|
|
||||||
+#if defined(_WIN32)
|
|
||||||
+#define VK_LAYER_EXPORT __declspec(dllexport)
|
|
||||||
+#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
||||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
|
||||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
|
||||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
From 9ed35d2d8395553d90e65867946c4df9c7bfaf63 Mon Sep 17 00:00:00 2001
|
|
||||||
From: BtbN <btbn@btbn.de>
|
|
||||||
Date: Mon, 7 Sep 2020 20:33:23 +0200
|
|
||||||
Subject: [PATCH 3/4] Define appropiate minimum Windows-Version
|
|
||||||
|
|
||||||
---
|
|
||||||
loader/vk_loader_platform.h | 5 +++++
|
|
||||||
1 file changed, 5 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h
|
|
||||||
index d9381c239..c1e47e4c3 100644
|
|
||||||
--- a/loader/vk_loader_platform.h
|
|
||||||
+++ b/loader/vk_loader_platform.h
|
|
||||||
@@ -24,6 +24,11 @@
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
+
|
|
||||||
+#define WINVER 0x0601
|
|
||||||
+#define _WIN32_WINNT 0x0601
|
|
||||||
+#define STRSAFE_NO_DEPRECATE 1
|
|
||||||
+
|
|
||||||
// WinSock2.h must be included *BEFORE* windows.h
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif // _WIN32
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
|
@ -1,150 +0,0 @@
|
||||||
From b6b9abf90b6f71abf9d5405745748dd991099247 Mon Sep 17 00:00:00 2001
|
|
||||||
From: BtbN <btbn@btbn.de>
|
|
||||||
Date: Sun, 4 Apr 2021 23:29:53 +0200
|
|
||||||
Subject: [PATCH 4/4] Unlock building static loader on any OS
|
|
||||||
|
|
||||||
Based in parts on https://github.com/shinchiro/mpv-winbuild-cmake/blob/master/packages/vulkan-0001-cross-compile-static-linking-hacks.patch
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 2 --
|
|
||||||
loader/CMakeLists.txt | 23 ++++++++++++++++++++++-
|
|
||||||
loader/loader.c | 2 +-
|
|
||||||
loader/loader.h | 3 +++
|
|
||||||
loader/vk_loader_platform.h | 16 ++++++++++++++++
|
|
||||||
5 files changed, 42 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index bd01fa016..91e5652f3 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -40,9 +40,7 @@ if(BUILD_TESTS)
|
|
||||||
enable_testing()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
-if(APPLE)
|
|
||||||
option(BUILD_STATIC_LOADER "Build a loader that can be statically linked" OFF)
|
|
||||||
-endif()
|
|
||||||
|
|
||||||
if(BUILD_STATIC_LOADER)
|
|
||||||
message(WARNING "The BUILD_STATIC_LOADER option has been set. Note that this will only work on MacOS and is not supported "
|
|
||||||
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
|
|
||||||
index d35d37220..cf6c57b5e 100644
|
|
||||||
--- a/loader/CMakeLists.txt
|
|
||||||
+++ b/loader/CMakeLists.txt
|
|
||||||
@@ -224,6 +224,22 @@ if(WIN32)
|
|
||||||
target_compile_options(loader-opt PUBLIC ${MSVC_LOADER_COMPILE_OPTIONS})
|
|
||||||
target_include_directories(loader-opt PRIVATE "$<TARGET_PROPERTY:Vulkan::Headers,INTERFACE_INCLUDE_DIRECTORIES>")
|
|
||||||
|
|
||||||
+ if(BUILD_STATIC_LOADER)
|
|
||||||
+ add_library(vulkan
|
|
||||||
+ STATIC
|
|
||||||
+ $<TARGET_OBJECTS:loader-opt>
|
|
||||||
+ $<TARGET_OBJECTS:loader-norm>
|
|
||||||
+ $<TARGET_OBJECTS:loader-unknown-chain>
|
|
||||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/vulkan-1.def
|
|
||||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/loader.rc)
|
|
||||||
+ set_target_properties(vulkan
|
|
||||||
+ PROPERTIES LINK_FLAGS_DEBUG
|
|
||||||
+ "/ignore:4098"
|
|
||||||
+ OUTPUT_NAME
|
|
||||||
+ vulkan-1
|
|
||||||
+ PREFIX
|
|
||||||
+ lib)
|
|
||||||
+ else()
|
|
||||||
add_library(vulkan
|
|
||||||
SHARED
|
|
||||||
$<TARGET_OBJECTS:loader-opt>
|
|
||||||
@@ -238,6 +254,8 @@ if(WIN32)
|
|
||||||
set_target_properties(vulkan
|
|
||||||
PROPERTIES
|
|
||||||
OUTPUT_NAME vulkan-1)
|
|
||||||
+ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS LOADER_DYNAMIC_LIB)
|
|
||||||
+ endif()
|
|
||||||
|
|
||||||
target_link_libraries(vulkan Vulkan::Headers)
|
|
||||||
|
|
||||||
@@ -260,14 +278,16 @@ else()
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-typedef-redefinition")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
- if(APPLE AND BUILD_STATIC_LOADER)
|
|
||||||
+ if(BUILD_STATIC_LOADER)
|
|
||||||
add_library(vulkan STATIC ${NORMAL_LOADER_SRCS} ${OPT_LOADER_SRCS})
|
|
||||||
else()
|
|
||||||
add_library(vulkan SHARED ${NORMAL_LOADER_SRCS} ${OPT_LOADER_SRCS})
|
|
||||||
endif()
|
|
||||||
add_dependencies(vulkan loader_asm_gen_files)
|
|
||||||
+ if (NOT BUILD_STATIC_LOADER)
|
|
||||||
# set version based on VK_HEADER_VERSION used to generate the code
|
|
||||||
include(generated/loader_generated_header_version.cmake)
|
|
||||||
+ endif()
|
|
||||||
target_link_libraries(vulkan ${CMAKE_DL_LIBS} m)
|
|
||||||
if (NOT ANDROID)
|
|
||||||
target_link_libraries(vulkan pthread)
|
|
||||||
@@ -339,6 +359,7 @@ if(PKG_CONFIG_FOUND)
|
|
||||||
foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})
|
|
||||||
set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
|
|
||||||
endforeach()
|
|
||||||
+ set(PRIVATE_LIBS "${PRIVATE_LIBS} -lshlwapi -lcfgmgr32")
|
|
||||||
if(WIN32)
|
|
||||||
set(VULKAN_LIB_SUFFIX "-1")
|
|
||||||
endif ()
|
|
||||||
diff --git a/loader/loader.c b/loader/loader.c
|
|
||||||
index d76f7dbe7..73e93fff1 100644
|
|
||||||
--- a/loader/loader.c
|
|
||||||
+++ b/loader/loader.c
|
|
||||||
@@ -7889,7 +7889,7 @@ out:
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#if defined(_WIN32)
|
|
||||||
+#if defined(_WIN32) && defined(LOADER_DYNAMIC_LIB)
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
|
|
||||||
switch (reason) {
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
diff --git a/loader/loader.h b/loader/loader.h
|
|
||||||
index fc26fcde6..43fa875e5 100644
|
|
||||||
--- a/loader/loader.h
|
|
||||||
+++ b/loader/loader.h
|
|
||||||
@@ -449,6 +449,9 @@ static inline void loader_init_dispatch(void *obj, const void *data) {
|
|
||||||
// Global variables used across files
|
|
||||||
extern struct loader_struct loader;
|
|
||||||
extern THREAD_LOCAL_DECL struct loader_instance *tls_instance;
|
|
||||||
+#if defined(_WIN32) && !defined(LOADER_DYNAMIC_LIB)
|
|
||||||
+extern LOADER_PLATFORM_THREAD_ONCE_DEFINITION(once_init);
|
|
||||||
+#endif
|
|
||||||
extern loader_platform_thread_mutex loader_lock;
|
|
||||||
extern loader_platform_thread_mutex loader_json_lock;
|
|
||||||
extern loader_platform_thread_mutex loader_preload_icd_lock;
|
|
||||||
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h
|
|
||||||
index c1e47e4c3..2cc1d2e7c 100644
|
|
||||||
--- a/loader/vk_loader_platform.h
|
|
||||||
+++ b/loader/vk_loader_platform.h
|
|
||||||
@@ -421,9 +421,25 @@ typedef HANDLE loader_platform_thread;
|
|
||||||
// The once init functionality is not used when building a DLL on Windows. This is because there is no way to clean up the
|
|
||||||
// resources allocated by anything allocated by once init. This isn't a problem for static libraries, but it is for dynamic
|
|
||||||
// ones. When building a DLL, we use DllMain() instead to allow properly cleaning up resources.
|
|
||||||
+#if defined(LOADER_DYNAMIC_LIB)
|
|
||||||
#define LOADER_PLATFORM_THREAD_ONCE_DECLARATION(var)
|
|
||||||
#define LOADER_PLATFORM_THREAD_ONCE_DEFINITION(var)
|
|
||||||
#define LOADER_PLATFORM_THREAD_ONCE(ctl, func)
|
|
||||||
+#else
|
|
||||||
+#define LOADER_PLATFORM_THREAD_ONCE_DECLARATION(var) INIT_ONCE var = INIT_ONCE_STATIC_INIT;
|
|
||||||
+#define LOADER_PLATFORM_THREAD_ONCE_DEFINITION(var) INIT_ONCE var;
|
|
||||||
+#define LOADER_PLATFORM_THREAD_ONCE(ctl, func) loader_platform_thread_once_fn(ctl, func)
|
|
||||||
+static BOOL CALLBACK InitFuncWrapper(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *Context) {
|
|
||||||
+ void (*func)(void) = (void (*)(void))Parameter;
|
|
||||||
+ func();
|
|
||||||
+ return TRUE;
|
|
||||||
+}
|
|
||||||
+static void loader_platform_thread_once_fn(void *ctl, void (*func)(void)) {
|
|
||||||
+ assert(func != NULL);
|
|
||||||
+ assert(ctl != NULL);
|
|
||||||
+ InitOnceExecuteOnce((PINIT_ONCE)ctl, InitFuncWrapper, (void *)func, NULL);
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
// Thread IDs:
|
|
||||||
typedef DWORD loader_platform_thread_id;
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
16
scripts.d/10-mingw-std-threads.sh
Executable file
16
scripts.d/10-mingw-std-threads.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/meganz/mingw-std-threads.git"
|
||||||
|
SCRIPT_COMMIT="6c2061b7da41d6aa1b2162ff4383ec3ece864bc6"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET == win* ]] || return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
mkdir -p "$FFBUILD_PREFIX"/include
|
||||||
|
cp *.h "$FFBUILD_PREFIX"/include
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MINGW_REPO="https://github.com/mirror/mingw-w64.git"
|
SCRIPT_REPO="https://git.code.sf.net/p/mingw-w64/mingw-w64.git"
|
||||||
MINGW_COMMIT="586baa17bb41dd78addd8cbb6415cfd24d24e925"
|
SCRIPT_COMMIT="3638d5e9a6f28354bc3e18f04ba0d97e2cc3b44c"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET == win* ]] || return -1
|
[[ $TARGET == win* ]] || return -1
|
||||||
|
@ -17,9 +17,12 @@ ffbuild_dockerfinal() {
|
||||||
to_df "COPY --from=${PREVLAYER} /opt/mingw/. /"
|
to_df "COPY --from=${PREVLAYER} /opt/mingw/. /"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN retry-tool sh -c \"rm -rf mingw && git clone '$SCRIPT_REPO' mingw\" && cd mingw && git checkout \"$SCRIPT_COMMIT\""
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$MINGW_REPO" "$MINGW_COMMIT" mingw
|
cd "$FFBUILD_DLDIR/mingw"
|
||||||
cd mingw
|
|
||||||
|
|
||||||
cd mingw-w64-headers
|
cd mingw-w64-headers
|
||||||
|
|
||||||
|
@ -28,10 +31,13 @@ ffbuild_dockerbuild() {
|
||||||
unset LDFLAGS
|
unset LDFLAGS
|
||||||
unset PKG_CONFIG_LIBDIR
|
unset PKG_CONFIG_LIBDIR
|
||||||
|
|
||||||
|
GCC_SYSROOT="$(${FFBUILD_CROSS_PREFIX}gcc -print-sysroot)"
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="/usr/$FFBUILD_TOOLCHAIN"
|
--prefix="$GCC_SYSROOT/usr/$FFBUILD_TOOLCHAIN"
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
--with-default-win32-winnt="0x601"
|
--with-default-win32-winnt="0x601"
|
||||||
|
--with-default-msvcrt=ucrt
|
||||||
--enable-idl
|
--enable-idl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -42,7 +48,7 @@ ffbuild_dockerbuild() {
|
||||||
cd ../mingw-w64-libraries/winpthreads
|
cd ../mingw-w64-libraries/winpthreads
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="/usr/$FFBUILD_TOOLCHAIN"
|
--prefix="$GCC_SYSROOT/usr/$FFBUILD_TOOLCHAIN"
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
--with-pic
|
--with-pic
|
||||||
--disable-shared
|
--disable-shared
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
XORGMACROS_REPO="https://gitlab.freedesktop.org/xorg/util/macros.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/util/macros.git"
|
||||||
XORGMACROS_COMMIT="b8766308d2f78bc572abe5198007cf7aeec9b761"
|
SCRIPT_COMMIT="cb147377e9341af05232f95814022abdecf14024"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -14,8 +14,7 @@ ffbuild_dockerlayer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$XORGMACROS_REPO" "$XORGMACROS_COMMIT" xorg-macros
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd xorg-macros
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
./configure --prefix="$FFBUILD_PREFIX"
|
./configure --prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# https://ftp.gnu.org/gnu/libiconv/
|
SCRIPT_REPO="https://git.savannah.gnu.org/git/libiconv.git"
|
||||||
ICONV_SRC="https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz"
|
SCRIPT_COMMIT="6e2b31f6d66739c5abd850338ea68c6bd2012812"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN retry-tool sh -c \"rm -rf $SELF && git clone '$SCRIPT_REPO' $SELF\" && git -C $SELF checkout \"$SCRIPT_COMMIT\""
|
||||||
|
to_df "RUN cd $SELF && retry-tool ./autopull.sh --one-time"
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
wget -O iconv.tar.gz "$ICONV_SRC"
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
tar xaf iconv.tar.gz
|
|
||||||
rm iconv.tar.gz
|
(unset CC CFLAGS GMAKE && ./autogen.sh)
|
||||||
cd libiconv*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXML2_REPO="https://gitlab.gnome.org/GNOME/libxml2.git"
|
SCRIPT_REPO="https://gitlab.gnome.org/GNOME/libxml2.git"
|
||||||
LIBXML2_COMMIT="dea91c97debeac7c1aaf9c19f79029809e23a353"
|
SCRIPT_COMMIT="884474477284474e0151280aaa275a18e3d7a036"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXML2_REPO" "$LIBXML2_COMMIT" libxml2
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxml2
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,19 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ZLIB_SRC="https://zlib.net/zlib-1.2.11.tar.gz"
|
SCRIPT_REPO="https://github.com/madler/zlib.git"
|
||||||
|
SCRIPT_COMMIT="04f42ceca40f73e2978b50e93806c2a18c1281fc"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir zlib
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd zlib
|
|
||||||
|
|
||||||
wget "$ZLIB_SRC" -O zlib.tar.gz
|
|
||||||
tar xaf zlib.tar.gz
|
|
||||||
rm zlib.tar.gz
|
|
||||||
cd zlib*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,38 +1,36 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# http://fftw.org/download.html
|
SCRIPT_REPO="https://github.com/FFTW/fftw3.git"
|
||||||
FFTW3_SRC="http://fftw.org/fftw-3.3.10.tar.gz"
|
SCRIPT_COMMIT="69f6c1a6ebd7ac5af33e7074134fb79fbc729c3d"
|
||||||
FFTW3_SHA512="2d34b5ccac7b08740dbdacc6ebe451d8a34cf9d9bfec85a5e776e87adf94abfd803c222412d8e10fbaa4ed46f504aa87180396af1b108666cde4314a55610b40"
|
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
# Dependency of GPL-Only librubberband
|
|
||||||
[[ $VARIANT == lgpl* ]] && return -1
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir fftw3
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd fftw3
|
|
||||||
|
|
||||||
check-wget fftw3.tar.gz "$FFTW3_SRC" "$FFTW3_SHA512"
|
|
||||||
tar xaf fftw3.tar.gz
|
|
||||||
rm fftw3.tar.gz
|
|
||||||
cd fftw*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-maintainer-mode
|
||||||
--disable-shared
|
--disable-shared
|
||||||
--enable-static
|
--enable-static
|
||||||
|
--disable-fortran
|
||||||
--disable-doc
|
--disable-doc
|
||||||
--with-our-malloc
|
--with-our-malloc
|
||||||
--enable-threads
|
--enable-threads
|
||||||
--with-combined-threads
|
--with-combined-threads
|
||||||
--with-incoming-stack-boundary=2
|
--with-incoming-stack-boundary=2
|
||||||
--enable-sse2
|
|
||||||
--enable-avx
|
|
||||||
--enable-avx2
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET != *arm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--enable-sse2
|
||||||
|
--enable-avx
|
||||||
|
--enable-avx2
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
@ -42,7 +40,7 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./bootstrap.sh "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# https://sourceforge.net/projects/freetype/files/freetype2/
|
SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
|
||||||
FREETYPE_SRC="https://sourceforge.net/projects/freetype/files/freetype2/2.11.0/freetype-2.11.0.tar.xz/download"
|
SCRIPT_COMMIT="dec2743e6a2a40cddfc8a9892895cb4f861e1eeb"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir ft
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd ft
|
|
||||||
wget -O ft.tar.gz "$FREETYPE_SRC"
|
./autogen.sh
|
||||||
tar xaf ft.tar.gz
|
|
||||||
rm ft.tar.gz
|
|
||||||
cd freetype*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FRIBIDI_REPO="https://github.com/fribidi/fribidi.git"
|
SCRIPT_REPO="https://github.com/fribidi/fribidi.git"
|
||||||
FRIBIDI_COMMIT="da0d0643b2114d457a88f9142ef0af8d32ac8f1e"
|
SCRIPT_COMMIT="b54871c339dabb7434718da3fed2fa63320997e5"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$FRIBIDI_REPO" "$FRIBIDI_COMMIT" fribidi
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd fribidi
|
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
GMP_SRC="https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz"
|
SCRIPT_REPO="https://github.com/BtbN/gmplib.git"
|
||||||
|
SCRIPT_COMMIT="1d7f62515fc8f5109fabace9592d863417f17c37"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
wget "$GMP_SRC" -O gmp.tar.xz
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
tar xaf gmp.tar.xz
|
|
||||||
rm gmp.tar.xz
|
|
||||||
cd gmp*
|
|
||||||
|
|
||||||
autoreconf -i
|
./.bootstrap
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-maintainer-mode
|
||||||
--disable-shared
|
--disable-shared
|
||||||
--enable-static
|
--enable-static
|
||||||
|
--with-pic
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
OGG_REPO="https://github.com/xiph/ogg.git"
|
SCRIPT_REPO="https://github.com/xiph/ogg.git"
|
||||||
OGG_COMMIT="3069cc2bb44160982cdb21b2b8f0660c76b17572"
|
SCRIPT_COMMIT="db5c7a49ce7ebda47b15b78471e78fb7f2483e22"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$OGG_REPO" "$OGG_COMMIT" ogg
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd ogg
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
OPENSSL_REPO="https://github.com/openssl/openssl.git"
|
SCRIPT_REPO="https://github.com/openssl/openssl.git"
|
||||||
OPENSSL_COMMIT="OpenSSL_1_1_1l"
|
SCRIPT_COMMIT="openssl-3.0.9"
|
||||||
|
SCRIPT_TAGFILTER="openssl-3.0.*"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
default_dl "$SELF"
|
||||||
|
to_df "RUN git -C \"$SELF\" submodule update --init --recursive --depth=1"
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$OPENSSL_REPO" "$OPENSSL_COMMIT" openssl
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd openssl
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
threads
|
threads
|
||||||
|
@ -19,6 +24,7 @@ ffbuild_dockerbuild() {
|
||||||
enable-ec
|
enable-ec
|
||||||
enable-srp
|
enable-srp
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--libdir=lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win64 ]]; then
|
if [[ $TARGET == win64 ]]; then
|
||||||
|
@ -36,15 +42,34 @@ ffbuild_dockerbuild() {
|
||||||
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
|
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
|
||||||
linux-x86_64
|
linux-x86_64
|
||||||
)
|
)
|
||||||
|
elif [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--cross-compile-prefix="$FFBUILD_CROSS_PREFIX"
|
||||||
|
linux-aarch64
|
||||||
|
)
|
||||||
else
|
else
|
||||||
echo "Unknown target"
|
echo "Unknown target"
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||||
|
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||||
|
|
||||||
|
# OpenSSL build system prepends the cross prefix itself
|
||||||
|
export CC="${CC/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
|
export CXX="${CXX/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
|
export AR="${AR/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
|
export RANLIB="${RANLIB/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
|
|
||||||
./Configure "${myconf[@]}"
|
./Configure "${myconf[@]}"
|
||||||
|
|
||||||
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
|
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
|
||||||
|
|
||||||
make -j$(nproc)
|
make -j$(nproc) build_sw
|
||||||
make install_sw
|
make install_sw
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
[[ $TARGET == win* ]] && return 0
|
||||||
|
echo --enable-openssl
|
||||||
|
}
|
||||||
|
|
|
@ -1,22 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
XZ_SRC="https://sourceforge.net/projects/lzmautils/files/xz-5.2.5.tar.xz/download"
|
SCRIPT_REPO="https://github.com/xz-mirror/xz.git"
|
||||||
|
SCRIPT_COMMIT="66bdcfa85fef2911cc80f5f30fed3f9610faccb4"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir xz
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd xz
|
|
||||||
|
|
||||||
wget "$XZ_SRC" -O xz.tar.xz
|
./autogen.sh --no-po4a --no-doxygen
|
||||||
tar xaf xz.tar.xz
|
|
||||||
rm xz.tar.xz
|
|
||||||
cd xz*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--disable-symbol-versions
|
||||||
--disable-shared
|
--disable-shared
|
||||||
--enable-static
|
--enable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FONTCONFIG_SRC="https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.94.tar.xz"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
|
||||||
|
SCRIPT_COMMIT="7e2a1b2577e8d90ea5be3f14091e809ac7742438"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir fc
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd fc
|
|
||||||
|
|
||||||
wget "$FONTCONFIG_SRC" -O fc.tar.gz
|
./autogen.sh --noconf
|
||||||
tar xaf fc.tar.gz
|
|
||||||
rm fc.tar.gz
|
|
||||||
cd fontconfig*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
@ -24,7 +21,13 @@ ffbuild_dockerbuild() {
|
||||||
--enable-static
|
--enable-static
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--sysconfdir=/etc
|
||||||
|
--localstatedir=/var
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
elif [[ $TARGET == win* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
HARFBUZZ_REPO="https://github.com/harfbuzz/harfbuzz.git"
|
SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
|
||||||
HARFBUZZ_COMMIT="3b2929e8a9da349fbd8437fd0b5cf0c8ce92cf32"
|
SCRIPT_COMMIT="73ee9c346f3acccbe14a4caf258b636de7c459be"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$HARFBUZZ_REPO" "$HARFBUZZ_COMMIT" harfbuzz
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd harfbuzz
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBSR_REPO="https://github.com/libsndfile/libsamplerate.git"
|
SCRIPT_REPO="https://github.com/libsndfile/libsamplerate.git"
|
||||||
LIBSR_COMMIT="c96f5e3de9c4488f4e6c97f59f5245f22fda22f7"
|
SCRIPT_COMMIT="22bd06eb114850ebe31981eb794d150a95439fef"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
# Dependency of GPL-Only librubberband
|
|
||||||
[[ $VARIANT == lgpl* ]] && return -1
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBSR_REPO" "$LIBSR_COMMIT" libsr
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libsr
|
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBUDFREAD_REPO="https://code.videolan.org/videolan/libudfread.git"
|
SCRIPT_REPO="https://code.videolan.org/videolan/libudfread.git"
|
||||||
LIBUDFREAD_COMMIT="b8ada6557b5336f4d3f144d8604ddc0ccf51f0c2"
|
SCRIPT_COMMIT="b3e6936a23f8af30a0be63d88f4695bdc0ea26e1"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBUDFREAD_REPO" "$LIBUDFREAD_COMMIT" libudfread
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libudfread
|
|
||||||
|
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VORBIS_REPO="https://github.com/xiph/vorbis.git"
|
SCRIPT_REPO="https://github.com/xiph/vorbis.git"
|
||||||
VORBIS_COMMIT="84c023699cdf023a32fa4ded32019f194afcdad0"
|
SCRIPT_COMMIT="84c023699cdf023a32fa4ded32019f194afcdad0"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$VORBIS_REPO" "$VORBIS_COMMIT" vorbis
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd vorbis
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
|
|
|
@ -1,28 +1,33 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
HEADERS_REPO="https://github.com/KhronosGroup/OpenCL-Headers.git"
|
SCRIPT_REPO="https://github.com/KhronosGroup/OpenCL-Headers.git"
|
||||||
HEADERS_COMMIT="835558e45c41df1345ee514e94a839c31923c1b2"
|
SCRIPT_COMMIT="e049b16b5f157e2f28e7b5c301e71e1ccb3fe288"
|
||||||
|
|
||||||
LOADER_REPO="https://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
|
SCRIPT_REPO2="https://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
|
||||||
LOADER_COMMIT="4e65bd5db0a0a87637fddc081a70d537fc2a9e70"
|
SCRIPT_COMMIT2="229410f86a8c8c9e0f86f195409e5481a2bae067"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerdl() {
|
||||||
mkdir opencl && cd opencl
|
default_dl opencl/headers
|
||||||
|
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" opencl/loader"
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR"/opencl
|
||||||
|
|
||||||
git-mini-clone "$HEADERS_REPO" "$HEADERS_COMMIT" headers
|
|
||||||
mkdir -p "$FFBUILD_PREFIX"/include/CL
|
mkdir -p "$FFBUILD_PREFIX"/include/CL
|
||||||
cp -r headers/CL/* "$FFBUILD_PREFIX"/include/CL/.
|
cp -r headers/CL/* "$FFBUILD_PREFIX"/include/CL/.
|
||||||
|
|
||||||
git-mini-clone "$LOADER_REPO" "$LOADER_COMMIT" loader
|
|
||||||
cd loader
|
cd loader
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DOPENCL_ICD_LOADER_HEADERS_DIR="$FFBUILD_PREFIX"/include -DBUILD_SHARED_LIBS=OFF -DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON -DOPENCL_ICD_LOADER_PIC=ON -DOPENCL_ICD_LOADER_BUILD_TESTING=OFF ..
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
||||||
|
-DOPENCL_ICD_LOADER_HEADERS_DIR="$FFBUILD_PREFIX"/include -DOPENCL_ICD_LOADER_BUILD_SHARED_LIBS=OFF \
|
||||||
|
-DOPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON -DOPENCL_ICD_LOADER_PIC=ON \
|
||||||
|
-DOPENCL_ICD_LOADER_BUILD_TESTING=OFF -DBUILD_TESTING=OFF ..
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -34,12 +39,13 @@ ffbuild_dockerbuild() {
|
||||||
echo "Name: OpenCL" >> OpenCL.pc
|
echo "Name: OpenCL" >> OpenCL.pc
|
||||||
echo "Description: OpenCL ICD Loader" >> OpenCL.pc
|
echo "Description: OpenCL ICD Loader" >> OpenCL.pc
|
||||||
echo "Version: 9999" >> OpenCL.pc
|
echo "Version: 9999" >> OpenCL.pc
|
||||||
echo "Libs: -L\${libdir} -lOpenCL" >> OpenCL.pc
|
|
||||||
echo "Cflags: -I\${includedir}" >> OpenCL.pc
|
echo "Cflags: -I\${includedir}" >> OpenCL.pc
|
||||||
|
|
||||||
if [[ $TARGET == linux* ]]; then
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
echo "Libs: -L\${libdir} -lOpenCL" >> OpenCL.pc
|
||||||
echo "Libs.private: -ldl" >> OpenCL.pc
|
echo "Libs.private: -ldl" >> OpenCL.pc
|
||||||
elif [[ $TARGET == win* ]]; then
|
elif [[ $TARGET == win* ]]; then
|
||||||
|
echo "Libs: -L\${libdir} -l:OpenCL.a" >> OpenCL.pc
|
||||||
echo "Libs.private: -lole32 -lshlwapi -lcfgmgr32" >> OpenCL.pc
|
echo "Libs.private: -lole32 -lshlwapi -lcfgmgr32" >> OpenCL.pc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
66
scripts.d/45-pulseaudio.sh
Executable file
66
scripts.d/45-pulseaudio.sh
Executable file
|
@ -0,0 +1,66 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git"
|
||||||
|
SCRIPT_COMMIT="e96d278bfc514f290b60c9e924fabc1c772e1689"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET == linux* ]] || return 1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN git clone --filter=blob:none \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
# Kill build of utils and their sndfile dep
|
||||||
|
echo > src/utils/meson.build
|
||||||
|
echo > src/pulsecore/sndfile-util.c
|
||||||
|
echo > src/pulsecore/sndfile-util.h
|
||||||
|
sed -ri -e 's/(sndfile_dep = .*)\)/\1, required : false)/' meson.build
|
||||||
|
sed -ri -e 's/shared_library/library/g' src/meson.build src/pulse/meson.build
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--buildtype=release
|
||||||
|
--default-library=static
|
||||||
|
-Ddaemon=false
|
||||||
|
-Dclient=true
|
||||||
|
-Ddoxygen=false
|
||||||
|
-Dgcov=false
|
||||||
|
-Dman=false
|
||||||
|
-Dtests=false
|
||||||
|
-Dipv6=true
|
||||||
|
-Dopenssl=enabled
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--cross-file=/cross.meson
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
meson "${myconf[@]}" ..
|
||||||
|
ninja -j"$(nproc)"
|
||||||
|
ninja install
|
||||||
|
|
||||||
|
rm -r "$FFBUILD_PREFIX"/share
|
||||||
|
|
||||||
|
echo "Libs.private: -ldl -lrt" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libpulse.pc
|
||||||
|
echo "Libs.private: -ldl -lrt" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libpulse-simple.pc
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libpulse
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-libpulse
|
||||||
|
}
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VMAF_REPO="https://github.com/Netflix/vmaf.git"
|
SCRIPT_REPO="https://github.com/Netflix/vmaf.git"
|
||||||
VMAF_COMMIT="9451ff498402e8f0a912161e5f8dea4de6b54ae2"
|
SCRIPT_COMMIT="98bdd77b296da207ab42c3113ec8f30de58db197"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$VMAF_REPO" "$VMAF_COMMIT" vmaf
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd vmaf
|
|
||||||
|
|
||||||
# Kill build of unused and broken tools
|
# Kill build of unused and broken tools
|
||||||
echo > libvmaf/tools/meson.build
|
echo > libvmaf/tools/meson.build
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
LOADER_REPO="https://github.com/KhronosGroup/Vulkan-Loader.git"
|
|
||||||
LOADER_COMMIT="90fd66f60fa7de10c91030f8c88b2a5c7c377784"
|
|
||||||
|
|
||||||
ffbuild_enabled() {
|
|
||||||
# The various graphics systems(xcb, xlib, wayland, ...) need figured out first
|
|
||||||
[[ $TARGET == linux* ]] && return -1
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_dockerstage() {
|
|
||||||
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=patches/vulkan,dst=/patches run_stage /stage.sh"
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
|
||||||
git clone "$LOADER_REPO" loader
|
|
||||||
git -C loader checkout "$LOADER_COMMIT"
|
|
||||||
|
|
||||||
for patch in /patches/*.patch; do
|
|
||||||
echo "Applying $patch"
|
|
||||||
git -C loader am -3 < "$patch"
|
|
||||||
done
|
|
||||||
|
|
||||||
HEADERS_REPO="$(grep -A10 'name.*:.*Vulkan-Headers' loader/scripts/known_good.json | grep url | head -n1 | cut -d'"' -f4)"
|
|
||||||
HEADERS_COMMIT="$(grep -A10 'name.*:.*Vulkan-Headers' loader/scripts/known_good.json | grep commit | head -n1 | cut -d'"' -f4)"
|
|
||||||
|
|
||||||
git-mini-clone "$HEADERS_REPO" "$HEADERS_COMMIT" headers
|
|
||||||
|
|
||||||
cd headers
|
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" ..
|
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
|
|
||||||
cd ../../loader
|
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_TESTS=OFF -DBUILD_STATIC_LOADER=ON ..
|
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
|
|
||||||
ln -s libvulkan-1.a /opt/ffbuild/lib/libvulkan.a
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_configure() {
|
|
||||||
echo --enable-vulkan
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_unconfigure() {
|
|
||||||
echo --disable-vulkan
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
XCBPROTO_REPO="https://gitlab.freedesktop.org/xorg/proto/xcbproto.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/proto/xcbproto.git"
|
||||||
XCBPROTO_COMMIT="f0db8b7d31a379fe26f6cc592be997c8ce5f0b2d"
|
SCRIPT_COMMIT="91178913c25b19e0457cdf6d21e00e6a613823e2"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,8 +9,7 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$XCBPROTO_REPO" "$XCBPROTO_COMMIT" xcbproto
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd xcbproto
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
XPROTO_REPO="https://gitlab.freedesktop.org/xorg/proto/xorgproto.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/proto/xorgproto.git"
|
||||||
XPROTO_COMMIT="57acac1d4c7967f4661fb1c9f86f48f34a46c48d"
|
SCRIPT_COMMIT="766967322209f2dcb72e6a8edea0c651f586201d"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,8 +9,7 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$XPROTO_REPO" "$XPROTO_COMMIT" xproto
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd xproto
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXTRANS_REPO="https://gitlab.freedesktop.org/xorg/lib/libxtrans.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxtrans.git"
|
||||||
LIBXTRANS_COMMIT="3b5df889f58a99980a35a7b4a18eb4e7d2abeac4"
|
SCRIPT_COMMIT="3b3a3bd75d86aec78f6ef893b198c3efc378bc64"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,8 +9,7 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXTRANS_REPO" "$LIBXTRANS_COMMIT" libxtrans
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxtrans
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXAU_REPO="https://gitlab.freedesktop.org/xorg/lib/libxau.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxau.git"
|
||||||
LIBXAU_COMMIT="d9443b2c57b512cfb250b35707378654d86c7dea"
|
SCRIPT_COMMIT="df1bf4fe528a5a9eef420f78efb225e4696ac467"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,15 +9,14 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXAU_REPO" "$LIBXAU_COMMIT" libxau
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxau
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,7 +29,13 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXau.so.6,libXau.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXau{.so*,.la}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXCB_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcb.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcb.git"
|
||||||
LIBXCB_COMMIT="a503167f751ba77e6819df568b7f5042d2baa9c9"
|
SCRIPT_COMMIT="8935793f1f3751a6aa9d78955c7d6236177986de"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,15 +9,14 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXCB_REPO" "$LIBXCB_COMMIT" libxcb
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxcb
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
--disable-devel-docs
|
--disable-devel-docs
|
||||||
)
|
)
|
||||||
|
@ -31,9 +30,17 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
for LIBNAME in "$FFBUILD_PREFIX"/lib/libxcb*.so.?; do
|
||||||
|
gen-implib "$LIBNAME" "${LIBNAME%%.*}.a"
|
||||||
|
rm "${LIBNAME%%.*}"{.so*,.la}
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBX11_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
|
||||||
LIBX11_COMMIT="e92efc63acd7b377faa9e534f4bf52aaa86be2a9"
|
SCRIPT_COMMIT="af2b6dfab1616dc85be9c9b196e4c56d00447851"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,15 +9,14 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBX11_REPO" "$LIBX11_COMMIT" libx11
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libx11
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
--without-xmlto
|
--without-xmlto
|
||||||
--without-fop
|
--without-fop
|
||||||
|
@ -27,6 +26,12 @@ ffbuild_dockerbuild() {
|
||||||
--enable-ipv6
|
--enable-ipv6
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $TARGET == linux* ]]; then
|
if [[ $TARGET == linux* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
@ -36,9 +41,16 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/x11.pc
|
echo "Libs: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/x11.pc
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libX11-xcb.so.1,libX11-xcb.a}
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libX11.so.6,libX11.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libX11{,-xcb}{.so*,.la}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXEXT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxext.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxext.git"
|
||||||
LIBXEXT_COMMIT="47904063048fa6ef6e8e16219ddef4d14d5d9a4b"
|
SCRIPT_COMMIT="de2ebd62c1eb8fe16c11aceac4a6981bda124cf4"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,15 +9,14 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXEXT_REPO" "$LIBXEXT_COMMIT" libxext
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxext
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
--without-xmlto
|
--without-xmlto
|
||||||
--without-fop
|
--without-fop
|
||||||
|
@ -25,6 +24,12 @@ ffbuild_dockerbuild() {
|
||||||
--without-lint
|
--without-lint
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $TARGET == linux* ]]; then
|
if [[ $TARGET == linux* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
@ -34,7 +39,13 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS -D_GNU_SOURCE"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXext.so.6,libXext.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXext{.so*,.la}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXFIXES_REPO="https://gitlab.freedesktop.org/xorg/lib/libxfixes.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxfixes.git"
|
||||||
LIBXFIXES_COMMIT="6fe3bd64dd82f704ed91478acb4c99ab5c00be16"
|
SCRIPT_COMMIT="c1cab28e27dd1c5a81394965248b57e490ccf2ca"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -9,15 +9,14 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXFIXES_REPO" "$LIBXFIXES_COMMIT" libxfixes
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxfixes
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,7 +29,13 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXfixes.so.3,libXfixes.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXfixes{.so*,.la}
|
||||||
}
|
}
|
||||||
|
|
47
scripts.d/45-x11/50-libxi.sh
Executable file
47
scripts.d/45-x11/50-libxi.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxi.git"
|
||||||
|
SCRIPT_COMMIT="3a7503ec7703f10de17c622ea22b7bff736cea74"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXi.so.6,libXi.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXi{.so*,.la}
|
||||||
|
}
|
47
scripts.d/45-x11/50-libxinerama.sh
Executable file
47
scripts.d/45-x11/50-libxinerama.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxinerama.git"
|
||||||
|
SCRIPT_COMMIT="51c28095951676a5896437c4c3aa40fb1972bad2"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXinerama.so.1,libXinerama.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXinerama{.so*,.la}
|
||||||
|
}
|
47
scripts.d/45-x11/50-libxrender.sh
Executable file
47
scripts.d/45-x11/50-libxrender.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxrender.git"
|
||||||
|
SCRIPT_COMMIT="07efd80468f6b595e6432edd28b8560ca7695ba0"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXrender.so.1,libXrender.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXrender{.so*,.la}
|
||||||
|
}
|
47
scripts.d/45-x11/50-libxscrnsaver.sh
Executable file
47
scripts.d/45-x11/50-libxscrnsaver.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver.git"
|
||||||
|
SCRIPT_COMMIT="9b4e000c6c4ae213a3e52345751d885543f17929"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXss.so.1,libXss.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXss{.so*,.la}
|
||||||
|
}
|
47
scripts.d/45-x11/50-libxxf86vm.sh
Executable file
47
scripts.d/45-x11/50-libxxf86vm.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxxf86vm.git"
|
||||||
|
SCRIPT_COMMIT="cfda59347e3a04415340a99f925a9cd85c0531b2"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXxf86vm.so.1,libXxf86vm.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXxf86vm{.so*,.la}
|
||||||
|
}
|
41
scripts.d/45-x11/60-libglvnd.sh
Executable file
41
scripts.d/45-x11/60-libglvnd.sh
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
|
||||||
|
SCRIPT_COMMIT="179d7278d7485ceea2d440807be9d677d32aedc4"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--buildtype=release
|
||||||
|
--default-library=static
|
||||||
|
-Dasm=enabled
|
||||||
|
-Dx11=enabled
|
||||||
|
-Degl=true
|
||||||
|
-Dglx=enabled
|
||||||
|
-Dgles1=true
|
||||||
|
-Dgles2=true
|
||||||
|
-Dheaders=true
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--cross-file=/cross.meson
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
meson "${myconf[@]}" ..
|
||||||
|
ninja -j"$(nproc)"
|
||||||
|
ninja install
|
||||||
|
}
|
41
scripts.d/45-x11/60-libxcursor.sh
Executable file
41
scripts.d/45-x11/60-libxcursor.sh
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcursor.git"
|
||||||
|
SCRIPT_COMMIT="a353f02a7ac4504ad5edb5407278c7a03c507aef"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXcursor.so.1,libXcursor.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXcursor{.so*,.la}
|
||||||
|
}
|
47
scripts.d/45-x11/60-libxrandr.sh
Executable file
47
scripts.d/45-x11/60-libxrandr.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxrandr.git"
|
||||||
|
SCRIPT_COMMIT="5b96863cf2a34ee9e72ffc4ec6415bc59b6121fc"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--enable-shared
|
||||||
|
--disable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXrandr.so.2,libXrandr.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXrandr{.so*,.la}
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBXV_REPO="https://gitlab.freedesktop.org/xorg/lib/libxv.git"
|
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxv.git"
|
||||||
LIBXV_COMMIT="03a6f599d060591a9a7cd8558bd2143a1c7c70d7"
|
SCRIPT_COMMIT="b022c9cf7004fe6f794c4c00dd519a2e4c74eca0"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
|
@ -10,19 +10,24 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBXV_REPO" "$LIBXV_COMMIT" libxv
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libxv
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--enable-shared
|
||||||
--enable-static
|
--disable-static
|
||||||
--with-pic
|
--with-pic
|
||||||
--without-lint
|
--without-lint
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == linuxarm64 ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--disable-malloc0returnsnull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $TARGET == linux* ]]; then
|
if [[ $TARGET == linux* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
@ -32,9 +37,15 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$RAW_CFLAGS"
|
||||||
|
export LDFLAFS="$RAW_LDFLAGS"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXv.so.1,libXv.a}
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/libXv{.so*,.la}
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_SKIP="1"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $TARGET != linux* ]] && return -1
|
[[ $TARGET != linux* ]] && return -1
|
||||||
return 0
|
return 0
|
||||||
|
@ -10,6 +12,15 @@ ffbuild_dockerlayer() {
|
||||||
to_df "COPY --from=${SELFLAYER} \$FFBUILD_PREFIX/share/aclocal/. /usr/share/aclocal"
|
to_df "COPY --from=${SELFLAYER} \$FFBUILD_PREFIX/share/aclocal/. /usr/share/aclocal"
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerdl() {
|
||||||
true
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/lib*.so* || true
|
||||||
|
rm "$FFBUILD_PREFIX"/lib/*.la || true
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_libs() {
|
||||||
|
echo -ldl
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
AMF_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
|
SCRIPT_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
|
||||||
AMF_COMMIT="3ee61d73b5599dcadbf86621a9f9c2d7e9c05811"
|
SCRIPT_COMMIT="68f2396f1a55a5b12767f5433411bb4093ea65ed"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$AMF_REPO" "$AMF_COMMIT" amf
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd amf
|
|
||||||
|
|
||||||
mkdir -p "$FFBUILD_PREFIX"/include
|
mkdir -p "$FFBUILD_PREFIX"/include
|
||||||
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF
|
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF
|
||||||
|
|
|
@ -1,19 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
AOM_REPO="https://aomedia.googlesource.com/aom"
|
SCRIPT_REPO="https://aomedia.googlesource.com/aom"
|
||||||
AOM_COMMIT="c9f674a396f230d79337b2852ea3b00e5eec2967"
|
SCRIPT_COMMIT="83ccc009eade321c8723ae0da8655fc68ce6a128"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerstage() {
|
ffbuild_dockerstage() {
|
||||||
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=patches/aom,dst=/patches run_stage /stage.sh"
|
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=/,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aom,dst=/patches run_stage /stage.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$AOM_REPO" "$AOM_COMMIT" aom
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd aom
|
|
||||||
|
|
||||||
for patch in /patches/*.patch; do
|
for patch in /patches/*.patch; do
|
||||||
echo "Applying $patch"
|
echo "Applying $patch"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MFX_REPO="https://github.com/lu-zero/mfx_dispatch.git"
|
SCRIPT_REPO="https://github.com/glennrp/libpng.git"
|
||||||
MFX_COMMIT="0349e3bc5bcdb268e94a334bf8a2bdeb6a369840"
|
SCRIPT_COMMIT="82414985c1085737bccd3eedb0aaa997451f5d32"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$MFX_REPO" "$MFX_COMMIT" mfx
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd mfx
|
|
||||||
|
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
|
|
||||||
|
@ -29,15 +28,9 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CPPFLAGS="$CPPFLAGS -I$FFBUILD_PREFIX/include"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
|
||||||
echo --enable-libmfx
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_unconfigure() {
|
|
||||||
echo --disable-libmfx
|
|
||||||
}
|
|
55
scripts.d/50-aribb24/50-libaribb24.sh
Executable file
55
scripts.d/50-aribb24/50-libaribb24.sh
Executable file
|
@ -0,0 +1,55 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/nkoriyama/aribb24.git"
|
||||||
|
SCRIPT_COMMIT="5e9be272f96e00f15a2f3c5f8ba7e124862aec38"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerstage() {
|
||||||
|
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=/,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aribb24,dst=/patches run_stage /stage.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
for patch in /patches/*.patch; do
|
||||||
|
echo "Applying $patch"
|
||||||
|
git am < "$patch"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Library switched to LGPL on master, but didn't bump version since.
|
||||||
|
# FFmpeg checks for >1.0.3 to allow LGPL builds.
|
||||||
|
sed -i 's/1.0.3/1.0.4/' configure.ac
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--disable-shared
|
||||||
|
--enable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libaribb24
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-libaribb24
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
AVISYNTH_REPO="https://github.com/AviSynth/AviSynthPlus.git"
|
SCRIPT_REPO="https://github.com/AviSynth/AviSynthPlus.git"
|
||||||
AVISYNTH_COMMIT="47b6141ac27fc5c33cb4186695cca88b6961b3c8"
|
SCRIPT_COMMIT="fc5b9bc41fd47001b7da39ea777d29c0ede2a2a7"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $VARIANT == lgpl* ]] && return -1
|
[[ $VARIANT == lgpl* ]] && return -1
|
||||||
|
@ -9,14 +9,16 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$AVISYNTH_REPO" "$AVISYNTH_COMMIT" avisynth
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd avisynth
|
|
||||||
|
# their version check is insistant on a tag to exist, so make one
|
||||||
|
git tag -a ffbuild -m "FFbuild Version"
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DHEADERS_ONLY=ON ..
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DHEADERS_ONLY=ON ..
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make VersionGen install
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
|
33
scripts.d/50-chromaprint.sh
Executable file
33
scripts.d/50-chromaprint.sh
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/acoustid/chromaprint.git"
|
||||||
|
SCRIPT_COMMIT="aa67c95b9e486884a6d3ee8b0c91207d8c2b0551"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
# pkg-config check is currently only available in master
|
||||||
|
[[ $ADDINS_STR == *4.4* ]] && return -1
|
||||||
|
[[ $ADDINS_STR == *5.0* ]] && return -1
|
||||||
|
[[ $ADDINS_STR == *5.1* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF -DFFT_LIB=fftw3 ..
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
echo "Libs.private: -lfftw3 -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libchromaprint.pc
|
||||||
|
echo "Cflags.private: -DCHROMAPRINT_NODLL" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libchromaprint.pc
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-chromaprint
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-chromaprint
|
||||||
|
}
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DAV1D_REPO="https://code.videolan.org/videolan/dav1d.git"
|
SCRIPT_REPO="https://code.videolan.org/videolan/dav1d.git"
|
||||||
DAV1D_COMMIT="d174e6f0fa8a8dcbd5eacd6d0227b1924edf80be"
|
SCRIPT_COMMIT="a7e12b628472516718d37108fde7d438b14a0372"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$DAV1D_REPO" "$DAV1D_COMMIT" dav1d
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd dav1d
|
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DAVS2_REPO="https://github.com/pkuvcl/davs2.git"
|
SCRIPT_REPO="https://github.com/pkuvcl/davs2.git"
|
||||||
DAVS2_COMMIT="b06d7585620f4e90a6d19a2926bb4e59793b8942"
|
SCRIPT_COMMIT="b41cf117452e2d73d827f02d3e30aa20f1c721ac"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $VARIANT == lgpl* ]] && return -1
|
[[ $VARIANT == lgpl* ]] && return -1
|
||||||
[[ $TARGET == win32 ]] && return -1
|
[[ $TARGET == win32 ]] && return -1
|
||||||
|
# davs2 aarch64 support is broken
|
||||||
|
[[ $TARGET == linuxarm64 ]] && return -1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git clone "$DAVS2_REPO" davs2
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd davs2
|
|
||||||
git checkout "$DAVS2_COMMIT"
|
|
||||||
cd build/linux
|
cd build/linux
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
|
@ -31,6 +35,10 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Work around configure endian check failing on modern gcc/binutils.
|
||||||
|
# Assumes all supported archs are little endian.
|
||||||
|
sed -i -e 's/EGIB/bss/g' -e 's/naidnePF/bss/g' configure
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FDK_REPO="https://github.com/mstorsjo/fdk-aac.git"
|
SCRIPT_REPO="https://github.com/mstorsjo/fdk-aac.git"
|
||||||
FDK_COMMIT="573e93e4d0d08127dd3b2297a0ce52221527d90a"
|
SCRIPT_COMMIT="3f864cce9736cc8e9312835465fae18428d76295"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $VARIANT == nonfree* ]] || return -1
|
[[ $VARIANT == nonfree* ]] || return -1
|
||||||
|
@ -9,8 +9,7 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$FDK_REPO" "$FDK_COMMIT" fdk
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd fdk
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,27 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FFNVCODEC_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
|
SCRIPT_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
|
||||||
FFNVCODEC_COMMIT="b641a195edbe3ac9788e681e22c2e2fad8aacddb"
|
SCRIPT_COMMIT="855f8263d97bbdcaeabaaaa2997e1ccad7c52dc3"
|
||||||
|
|
||||||
|
SCRIPT_REPO2="https://github.com/FFmpeg/nv-codec-headers.git"
|
||||||
|
SCRIPT_COMMIT2="dc3e4484dc83485734e503991fe5ed3bdf256fba"
|
||||||
|
SCRIPT_BRANCH2="sdk/11.1"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
default_dl ffnvcodec
|
||||||
|
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" ffnvcodec2"
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$FFNVCODEC_REPO" "$FFNVCODEC_COMMIT" ffnvcodec
|
if [[ $ADDINS_STR == *4.4* || $ADDINS_STR == *5.0* || $ADDINS_STR == *5.1* ]]; then
|
||||||
cd ffnvcodec
|
cd "$FFBUILD_DLDIR"/ffnvcodec2
|
||||||
|
else
|
||||||
|
cd "$FFBUILD_DLDIR"/ffnvcodec
|
||||||
|
fi
|
||||||
|
|
||||||
make PREFIX="$FFBUILD_PREFIX" install
|
make PREFIX="$FFBUILD_PREFIX" install
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FREI0R_REPO="https://github.com/dyne/frei0r.git"
|
SCRIPT_REPO="https://github.com/dyne/frei0r.git"
|
||||||
FREI0R_COMMIT="86475d3e11e1061bf161e6ed3830fe2cf3d172ac"
|
SCRIPT_COMMIT="c3f987c4cc8c1a7f6928e574f4cb272a7770ca6f"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
[[ $VARIANT == lgpl* ]] && return -1
|
[[ $VARIANT == lgpl* ]] && return -1
|
||||||
|
@ -10,32 +10,19 @@ ffbuild_enabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$FREI0R_REPO" "$FREI0R_COMMIT" frei0r
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd frei0r
|
|
||||||
|
|
||||||
./autogen.sh
|
mkdir build && cd build
|
||||||
|
|
||||||
local myconf=(
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" ..
|
||||||
--prefix="$FFBUILD_PREFIX"
|
|
||||||
--disable-shared
|
|
||||||
--enable-static
|
|
||||||
--with-pic
|
|
||||||
--enable-cpuflags
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
mkdir -p "$FFBUILD_PREFIX"/lib/pkgconfig
|
||||||
myconf+=(
|
cp frei0r.pc "$FFBUILD_PREFIX"/lib/pkgconfig
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
|
||||||
)
|
|
||||||
else
|
|
||||||
echo "Unknown target"
|
|
||||||
return -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
mkdir -p "$FFBUILD_PREFIX"/include
|
||||||
make -C include -j$(nproc)
|
cp ../include/frei0r.h "$FFBUILD_PREFIX"/include
|
||||||
make -C include install
|
|
||||||
make install-pkgconfigDATA
|
cat frei0r.pc
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
GLSLANG_REPO="https://github.com/KhronosGroup/glslang.git"
|
|
||||||
GLSLANG_COMMIT="c2604615f4820be63d9ea205be9a796bfc309e4b"
|
|
||||||
|
|
||||||
ffbuild_enabled() {
|
|
||||||
# Pointless without Vulkan
|
|
||||||
[[ $TARGET == linux* ]] && return -1
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
|
||||||
git-mini-clone "$GLSLANG_REPO" "$GLSLANG_COMMIT" glslang
|
|
||||||
cd glslang
|
|
||||||
|
|
||||||
python3 ./update_glslang_sources.py
|
|
||||||
|
|
||||||
mkdir build && cd build
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_EXTERNAL=ON -DBUILD_TESTING=OFF -DENABLE_CTEST=OFF -DENABLE_HLSL=ON -DENABLE_GLSLANG_BINARIES=OFF ..
|
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_configure() {
|
|
||||||
echo --enable-libglslang
|
|
||||||
}
|
|
||||||
|
|
||||||
ffbuild_unconfigure() {
|
|
||||||
echo --disable-libglslang
|
|
||||||
}
|
|
|
@ -1,16 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
GME_REPO="https://bitbucket.org/mpyne/game-music-emu.git"
|
SCRIPT_REPO="https://bitbucket.org/mpyne/game-music-emu.git"
|
||||||
GME_COMMIT="b3d158a30492181fd7c38ef795c8d4dcfd77eaa9"
|
SCRIPT_COMMIT="6cd4bdb69be304f58c9253fb08b8362f541b3b4b"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git clone "$GME_REPO" gme
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd gme
|
|
||||||
git checkout "$GME_COMMIT"
|
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
|
|
44
scripts.d/50-kvazaar.sh
Executable file
44
scripts.d/50-kvazaar.sh
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/ultravideo/kvazaar.git"
|
||||||
|
SCRIPT_COMMIT="aaae5b0f4926065136f287876c6bc41631bae692"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--disable-shared
|
||||||
|
--enable-static
|
||||||
|
--with-pic
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||||
|
myconf+=(
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo "Unknown target"
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
|
echo "Cflags.private: -DKVZ_STATIC_LIB" >> "$FFBUILD_PREFIX"/lib/pkgconfig/kvazaar.pc
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libkvazaar
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
echo --disable-libkvazaar
|
||||||
|
}
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ASS_REPO="https://github.com/libass/libass.git"
|
SCRIPT_REPO="https://github.com/libass/libass.git"
|
||||||
ASS_COMMIT="0915955733bd236ecc44645ee968fb7a55ad5079"
|
SCRIPT_COMMIT="1a599b1db748dfc07df98cd37d8603edb87da2fd"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$ASS_REPO" "$ASS_COMMIT" ass
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd ass
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
|
@ -29,6 +28,8 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$CFLAGS -Dread_file=libass_internal_read_file"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIBBLURAY_REPO="https://code.videolan.org/videolan/libbluray.git"
|
SCRIPT_REPO="https://code.videolan.org/videolan/libbluray.git"
|
||||||
LIBBLURAY_COMMIT="06d7ce99531eb643a6f165424373d1ab72178a51"
|
SCRIPT_COMMIT="bb5bc108ec695889855f06df338958004ff289ef"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$LIBBLURAY_REPO" "$LIBBLURAY_COMMIT" libbluray
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
cd libbluray
|
|
||||||
|
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
|
||||||
|
|
19
scripts.d/50-libjxl/45-brotli.sh
Executable file
19
scripts.d/50-libjxl/45-brotli.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/google/brotli.git"
|
||||||
|
SCRIPT_COMMIT="413b098564a90a2e6cae192d30642d33a9197a39"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF ..
|
||||||
|
ninja -j$(nproc)
|
||||||
|
ninja install
|
||||||
|
}
|
60
scripts.d/50-libjxl/50-libjxl.sh
Executable file
60
scripts.d/50-libjxl/50-libjxl.sh
Executable file
|
@ -0,0 +1,60 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_REPO="https://github.com/libjxl/libjxl.git"
|
||||||
|
SCRIPT_COMMIT="c3a4f9ca89ae59c6265a2f1bf2a6d2a87a71fc16"
|
||||||
|
|
||||||
|
ffbuild_enabled() {
|
||||||
|
[[ $ADDINS_STR == *4.4* ]] && return -1
|
||||||
|
[[ $ADDINS_STR == *5.0* ]] && return -1
|
||||||
|
[[ $ADDINS_STR == *5.1* ]] && return -1
|
||||||
|
[[ $ADDINS_STR == *6.0* ]] && return -1
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
default_dl "$SELF"
|
||||||
|
to_df "RUN git -C \"$SELF\" submodule update --init --recursive --depth 1 --recommend-shallow third_party/highway third_party/skcms"
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerbuild() {
|
||||||
|
cd "$FFBUILD_DLDIR/$SELF"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
if [[ $TARGET == linux* ]]; then
|
||||||
|
# our glibc is too old(<2.25), and their detection fails for some reason
|
||||||
|
export CXXFLAGS="$CXXFLAGS -DVQSORT_GETRANDOM=0 -DVQSORT_SECURE_SEED=0"
|
||||||
|
elif [[ $TARGET == win* ]]; then
|
||||||
|
# Fix AVX2 related crash due to unaligned stack memory
|
||||||
|
export CXXFLAGS="$CXXFLAGS -Wa,-muse-unaligned-vector-move"
|
||||||
|
export CFLAGS="$CFLAGS -Wa,-muse-unaligned-vector-move"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
|
-DBUILD_SHARED_LIBS=OFF -DJPEGXL_STATIC=OFF -DJPEGXL_ENABLE_TOOLS=OFF -DJPEGXL_ENABLE_VIEWERS=OFF -DJPEGXL_EMSCRIPTEN=OFF -DJPEGXL_ENABLE_DOXYGEN=OFF \
|
||||||
|
-DJPEGXL_ENABLE_JPEGLI=OFF -DBUILD_TESTING=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF -DJPEGXL_ENABLE_MANPAGES=OFF -DJPEGXL_ENABLE_JNI=OFF -DJPEGXL_ENABLE_PLUGINS=OFF \
|
||||||
|
-DJPEGXL_ENABLE_DEVTOOLS=OFF -DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_BUNDLE_LIBPNG=OFF -DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_FORCE_SYSTEM_BROTLI=ON ..
|
||||||
|
ninja -j$(nproc)
|
||||||
|
ninja install
|
||||||
|
|
||||||
|
echo "Cflags.private: -DJXL_STATIC_DEFINE=1" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl.pc
|
||||||
|
echo "Libs.private: -lstdc++" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl.pc
|
||||||
|
|
||||||
|
echo "Cflags.private: -DJXL_STATIC_DEFINE=1" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl_threads.pc
|
||||||
|
echo "Libs.private: -lstdc++" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl_threads.pc
|
||||||
|
|
||||||
|
if [[ $TARGET == win* ]]; then
|
||||||
|
echo "Libs.private: -ladvapi32" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl.pc
|
||||||
|
echo "Libs.private: -ladvapi32" >> "${FFBUILD_PREFIX}"/lib/pkgconfig/libjxl_threads.pc
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
echo --enable-libjxl
|
||||||
|
}
|
||||||
|
|
||||||
|
ffbuild_unconfigure() {
|
||||||
|
[[ $ADDINS_STR == *4.4* ]] && return 0
|
||||||
|
[[ $ADDINS_STR == *5.0* ]] && return 0
|
||||||
|
echo --disable-libjxl
|
||||||
|
}
|
|
@ -1,18 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LAME_SRC="https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz/download"
|
SCRIPT_REPO="https://svn.code.sf.net/p/lame/svn/trunk/lame"
|
||||||
|
SCRIPT_REV="6507"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_dockerdl() {
|
||||||
|
to_df "RUN retry-tool sh -c \"rm -rf lame && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' lame\""
|
||||||
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
mkdir lame
|
cd "$FFBUILD_DLDIR"/lame
|
||||||
cd lame
|
|
||||||
wget -O lame.tar.gz "$LAME_SRC"
|
autoreconf -i
|
||||||
tar xaf lame.tar.gz
|
|
||||||
rm lame.tar.gz
|
|
||||||
cd lame*
|
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
@ -22,6 +24,7 @@ ffbuild_dockerbuild() {
|
||||||
--disable-gtktest
|
--disable-gtktest
|
||||||
--disable-cpml
|
--disable-cpml
|
||||||
--disable-frontend
|
--disable-frontend
|
||||||
|
--disable-decoder
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||||
|
@ -33,6 +36,8 @@ ffbuild_dockerbuild() {
|
||||||
return -1
|
return -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export CFLAGS="$CFLAGS -DNDEBUG"
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
./configure "${myconf[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue