forked from ports/contrib
x265: fixed cmake flags
This commit is contained in:
parent
d9c66f369e
commit
14af2c2f51
35
x265/Pkgfile
35
x265/Pkgfile
@ -12,30 +12,28 @@ source=(#https://bitbucket.org/multicoreware/$name/downloads/${name}_$version.ta
|
||||
build() {
|
||||
[[ -e '/usr/bin/ninja' ]] && PKGMK_X265+=' -G Ninja'
|
||||
|
||||
# common args
|
||||
local common_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=Release
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -Wno-restrict -Wno-format-overflow"
|
||||
-D CMAKE_ASM_NASM_FLAGS_RELEASE=' -wno-macro-params-legacy'
|
||||
-D HIGH_BIT_DEPTH=TRUE
|
||||
-D EXPORT_C_API=FALSE
|
||||
-D ENABLE_CLI=FALSE
|
||||
-D ENABLE_SHARED=FALSE
|
||||
)
|
||||
|
||||
# build 12
|
||||
cmake -S $SRC/${name}_$version/source -B build-12 $PKGMK_X265 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG -Wno-restrict -Wno-format-overflow" \
|
||||
-D CMAKE_ASM_NASM_FLAGS_RELEASE=' -wno-macro-params-legacy' \
|
||||
-D HIGH_BIT_DEPTH=TRUE \
|
||||
-D MAIN12=TRUE \
|
||||
-D EXPORT_C_API=FALSE \
|
||||
-D ENABLE_CLI=FALSE \
|
||||
-D ENABLE_SHARED=FALSE \
|
||||
"${common_args[@]}" \
|
||||
-Wno-dev
|
||||
cmake --build build-12
|
||||
|
||||
# build 10
|
||||
cmake -S $SRC/${name}_$version/source -B build-10 $PKGMK_X265 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG -Wno-restrict -Wno-format-overflow" \
|
||||
-D CMAKE_ASM_NASM_FLAGS_RELEASE=' -wno-macro-params-legacy' \
|
||||
-D HIGH_BIT_DEPTH=TRUE \
|
||||
-D EXPORT_C_API=FALSE \
|
||||
-D ENABLE_CLI=FALSE \
|
||||
-D ENABLE_SHARED=FALSE \
|
||||
"${common_args[@]}" \
|
||||
-Wno-dev
|
||||
cmake --build build-10
|
||||
|
||||
@ -45,10 +43,7 @@ build() {
|
||||
ln -s $SRC/build-10/libx265.a $SRC/build-8/libx265_main10.a
|
||||
|
||||
cmake -S $SRC/${name}_$version/source -B build-8 $PKGMK_X265 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG -Wno-restrict -Wno-format-overflow" \
|
||||
-D CMAKE_ASM_NASM_FLAGS_RELEASE=' -wno-macro-params-legacy' \
|
||||
"${common_args[@]:0:10}" \
|
||||
-D ENABLE_SHARED=TRUE \
|
||||
-D EXTRA_LIB='x265_main10.a;x265_main12.a' \
|
||||
-D EXTRA_LINK_FLAGS='-L.' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user