@@ -788,35 +788,27 @@ if ${NONFREE_AND_GPL}; then
788
788
789
789
if build " x264" " latest" ; then
790
790
791
- clone " https://code.videolan.org/videolan/x264.git" " x264-latest "
791
+ clone " https://code.videolan.org/videolan/x264.git" " x264-${CURRENT_PACKAGE_VERSION} "
792
792
execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic
793
793
794
794
execute make -j ${MJOBS}
795
795
execute make install
796
796
execute make install-lib-static
797
797
798
- build_done " x264" " latest "
798
+ build_done " x264" " ${CURRENT_PACKAGE_VERSION} "
799
799
fi
800
800
801
801
CONFIGURE_OPTIONS+=(" --enable-libx264" )
802
802
fi
803
803
804
- if ${NONFREE_AND_GPL} && (isAppleSilicon || [[ ! " ${TARGET_ARCH} " == " arm" * ]]) ; then
804
+ # 32-bit ARM platforms like Raspberry Pi don't build x265 cleanly.
805
+ if ${NONFREE_AND_GPL} && [[ ! " ${TARGET_ARCH} " == " armv7l" ]] ; then
805
806
806
807
if build " x265" " latest" ; then
807
808
808
- if isAppleSilicon; then
809
-
810
- download " https://bitbucket.org/multicoreware/x265_git/get/931178347b3f73e40798fd5180209654536bbaa5.tar.gz" " x265-3.5.tar.gz" # This is actually 3.4 if looking at x265Versio
811
- else
812
-
813
- clone " https://bitbucket.org/multicoreware/x265_git.git" " x265-latest"
814
- fi
809
+ clone " https://bitbucket.org/multicoreware/x265_git.git" " x265-${CURRENT_PACKAGE_VERSION} "
815
810
816
811
cd build/linux || exit
817
- execute cmake -G " Unix Makefiles" ../../source
818
- # execute env CMAKE_INSTALL_PREFIX="${WORKSPACE}" bash ./multilib.sh
819
-
820
812
rm -rf 8bit 10bit 12bit 2> /dev/null
821
813
mkdir -p 8bit 10bit 12bit
822
814
@@ -858,32 +850,33 @@ EOF
858
850
sed -i.backup ' s/-lgcc_s/-lgcc_eh/g' " ${WORKSPACE} /lib/pkgconfig/x265.pc" # The -i.backup is intended and required on macOS: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
859
851
fi
860
852
861
- build_done " x265" " latest "
853
+ build_done " x265" " ${CURRENT_PACKAGE_VERSION} "
862
854
fi
863
855
864
856
CONFIGURE_OPTIONS+=(" --enable-libx265" )
865
857
fi
866
858
867
859
if [[ ! " ${TARGET_ARCH} " == " arm" * ]]; then
868
- if build " libvpx" " 1.13.0" ; then
869
860
870
- download " https://github.com/webmproject/ libvpx/archive/refs/tags/v1.13.0.tar.gz " " libvpx- 1.13.0.tar.gz "
861
+ if build " libvpx" " 1.13.0" ; then
871
862
872
- if [[ " ${TARGET_OS} " == " darwin " ]] ; then
863
+ download " https://github.com/webmproject/libvpx/archive/refs/tags/v1.13.0.tar.gz " " libvpx-1.13.0.tar.gz "
873
864
874
- echo " Applying Darwin patch"
875
- sed " s/,--version-script//g" build/make/Makefile > build/make/Makefile.patched
876
- sed " s/-Wl,--no-undefined -Wl,-soname/-Wl,-undefined,error -Wl,-install_name/g" build/make/Makefile.patched > build/make/Makefile
877
- fi
865
+ if [[ " ${TARGET_OS} " == " darwin" ]]; then
878
866
879
- execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared --disable-examples --as=yasm --enable-vp9-highbitdepth
880
- execute make -j ${MJOBS}
881
- execute make install
867
+ echo " Applying Darwin patch"
868
+ sed " s/,--version-script//g" build/make/Makefile > build/make/Makefile.patched
869
+ sed " s/-Wl,--no-undefined -Wl,-soname/-Wl,-undefined,error -Wl,-install_name/g" build/make/Makefile.patched > build/make/Makefile
870
+ fi
882
871
883
- build_done " libvpx" " 1.13.0"
884
- fi
872
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared --disable-examples --as=yasm --enable-vp9-highbitdepth
873
+ execute make -j ${MJOBS}
874
+ execute make install
875
+
876
+ build_done " libvpx" " 1.13.0"
877
+ fi
885
878
886
- CONFIGURE_OPTIONS+=(" --enable-libvpx" )
879
+ CONFIGURE_OPTIONS+=(" --enable-libvpx" )
887
880
fi
888
881
889
882
if ${NONFREE_AND_GPL} ; then
@@ -1073,13 +1066,13 @@ if ! isLinux; then
1073
1066
1074
1067
if build " opencore" " 0.1.6" ; then
1075
1068
1076
- download " https://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.6.tar.gz " " opencore-amr-0.1.6 .tar.gz"
1069
+ download " https://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-${CURRENT_PACKAGE_VERSION} .tar.gz"
1077
1070
1078
1071
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
1079
1072
execute make -j ${MJOBS}
1080
1073
execute make install
1081
1074
1082
- build_done " opencore" " 0.1.6 "
1075
+ build_done " opencore" " ${CURRENT_PACKAGE_VERSION} "
1083
1076
fi
1084
1077
fi
1085
1078
@@ -1089,40 +1082,40 @@ if ! isLinux; then
1089
1082
1090
1083
if build " lame" " 3.100" ; then
1091
1084
1092
- download " https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz " " lame-3.100 .tar.gz"
1085
+ download " https://downloads.sourceforge.net/project/lame/lame/3.100/lame-${CURRENT_PACKAGE_VERSION} .tar.gz"
1093
1086
1094
1087
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
1095
1088
execute make -j ${MJOBS}
1096
1089
execute make install
1097
1090
1098
- build_done " lame" " 3.100 "
1091
+ build_done " lame" " ${CURRENT_PACKAGE_VERSION} "
1099
1092
fi
1100
1093
fi
1101
1094
1102
1095
CONFIGURE_OPTIONS+=(" --enable-libmp3lame" )
1103
1096
1104
1097
if build " opus" " 1.4" ; then
1105
1098
1106
- download " https://downloads.xiph.org/releases/opus/opus-1.4 .tar.gz"
1099
+ download " https://downloads.xiph.org/releases/opus/opus-${CURRENT_PACKAGE_VERSION} .tar.gz"
1107
1100
1108
1101
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
1109
1102
execute make -j ${MJOBS}
1110
1103
execute make install
1111
1104
1112
- build_done " opus" " 1.4 "
1105
+ build_done " opus" " ${CURRENT_PACKAGE_VERSION} "
1113
1106
fi
1114
1107
1115
1108
CONFIGURE_OPTIONS+=(" --enable-libopus" )
1116
1109
1117
1110
if build " speex" " 1.2.1" ; then
1118
1111
1119
- download " https://ftp.osuosl.org/pub/xiph/releases/speex/speex-1.2.1 .tar.gz"
1112
+ download " https://ftp.osuosl.org/pub/xiph/releases/speex/speex-${CURRENT_PACKAGE_VERSION} .tar.gz"
1120
1113
1121
1114
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
1122
1115
execute make -j ${MJOBS}
1123
1116
execute make install
1124
1117
1125
- build_done " speex" " 1.2.1 "
1118
+ build_done " speex" " ${CURRENT_PACKAGE_VERSION} "
1126
1119
fi
1127
1120
1128
1121
CONFIGURE_OPTIONS+=(" --enable-libspeex" )
@@ -1131,18 +1124,18 @@ if ! isLinux; then
1131
1124
1132
1125
if build " libogg" " 1.3.5" ; then
1133
1126
1134
- download " https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.5 .tar.xz"
1127
+ download " https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-${CURRENT_PACKAGE_VERSION} .tar.xz"
1135
1128
1136
1129
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
1137
1130
execute make -j ${MJOBS}
1138
1131
execute make install
1139
1132
1140
- build_done " libogg" " 1.3.5 "
1133
+ build_done " libogg" " ${CURRENT_PACKAGE_VERSION} "
1141
1134
fi
1142
1135
1143
1136
if build " libvorbis" " 1.3.7" ; then
1144
1137
1145
- download " https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.7 .tar.gz"
1138
+ download " https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-${CURRENT_PACKAGE_VERSION} .tar.gz"
1146
1139
1147
1140
if [[ " ${TARGET_OS} " == " darwin" ]]; then
1148
1141
@@ -1153,7 +1146,7 @@ if ! isLinux; then
1153
1146
execute make -j ${MJOBS}
1154
1147
execute make install
1155
1148
1156
- build_done " libvorbis" " 1.3.7 "
1149
+ build_done " libvorbis" " ${CURRENT_PACKAGE_VERSION} "
1157
1150
fi
1158
1151
fi
1159
1152
@@ -1163,7 +1156,7 @@ if ! isLinux; then
1163
1156
1164
1157
if build " libtheora" " 1.1.1" ; then
1165
1158
1166
- download " https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1 .tar.gz"
1159
+ download " https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-${CURRENT_PACKAGE_VERSION} .tar.gz"
1167
1160
1168
1161
sed " s/-fforce-addr//g" configure > configure.patched
1169
1162
chmod +x configure.patched
@@ -1193,23 +1186,23 @@ if ! isLinux; then
1193
1186
execute make -j ${MJOBS}
1194
1187
execute make install
1195
1188
1196
- build_done " libtheora" " 1.1.1 "
1189
+ build_done " libtheora" " ${CURRENT_PACKAGE_VERSION} "
1197
1190
fi
1198
1191
fi
1199
1192
1200
1193
CONFIGURE_OPTIONS+=(" --enable-libtheora" )
1201
1194
1202
1195
if ${NONFREE_AND_GPL} ; then
1203
1196
1204
- if build " fdk_aac" " 2.0.2 " ; then
1197
+ if build " fdk_aac" " 2.0.3 " ; then
1205
1198
1206
- download " https://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-2.0.2. tar.gz" " fdk-aac-2.0.2 .tar.gz"
1199
+ download " https://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-${CURRENT_PACKAGE_VERSION} . tar.gz" " fdk-aac-${CURRENT_PACKAGE_VERSION} .tar.gz"
1207
1200
1208
1201
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --enable-pic
1209
1202
execute make -j ${MJOBS}
1210
1203
execute make install
1211
1204
1212
- build_done " fdk_aac" " 2.0.2 "
1205
+ build_done " fdk_aac" " ${CURRENT_PACKAGE_VERSION} "
1213
1206
fi
1214
1207
1215
1208
CONFIGURE_OPTIONS+=(" --enable-libfdk-aac" )
0 commit comments