1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/x264/x264.conf
3 # Copyright (C) 2007 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 var_append confopt " " "--enable-shared"
13 pkginstalled gpac && var_append confopt ' ' '--enable-mp4-output'
14 pkginstalled yasm || var_append confopt ' ' '--disable-asm'
16 # expects gcc for flags passed for assembly files
18 var_remove_regex makeopt ' ' 'AS=.*'
19 var_remove_regex makeinstopt ' ' 'AS=.*'
20 var_remove_regex makeopt ' ' 'AR=.*'
21 var_remove_regex makeopt ' ' 'LD=.*'
23 [ "$SDECFG_X8664_X32" = 1 ] && var_append patchfiles ' ' "$confdir/*.patch.x32"
25 if [[ $libdir == *lib64 ]]; then
26 var_append confopt " " "--enable-pic"
27 var_append GCC_WRAPPER_INSERT " " "-fPIC"