Skip to content

Commit

Permalink
fix bluray pc file again
Browse files Browse the repository at this point in the history
  • Loading branch information
debugly committed Jan 8, 2024
1 parent 6f4c67a commit 8496477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apple/do-compile/bluray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ pc_file="$XC_BUILD_PREFIX/lib/pkgconfig/libbluray.pc"
sed -i "" '/Requires.private/d' "$pc_file"
# find line number
n=$(grep -n 'Libs.private' "$pc_file" | cut -d: -f1)
xml_lib=echo $(xml2-config --libs) | awk '{len=split($0,a," "); for(n=2;n<=len;n++)printf " %s",a[n]}'
xml_lib=$(echo $(xml2-config --libs) | awk '{len=split($0,a," "); for(n=2;n<=len;n++)printf " %s",a[n]}')
# line n append " -lxml2 -lz -lpthread -licucore -lm"
sed -i "" "$n s/$/&$xml_lib/" "$pc_file"

0 comments on commit 8496477

Please sign in to comment.