vorbis-tools: fix build with gcc 14

This commit is contained in:
John McQuah 2024-09-16 10:06:15 +00:00
parent b9971f5824
commit e217a27181
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF34LrnLh+ZJ6KxMtnFPb/96y/k9kL5U5BExn/wkx4iCFl8ZazpxeV/P92VHvqlDRqGnLw8BnKQCwhCbJw3MNKLQk= RWSagIOpLGJF32xYNgxyUX0QoGYT2OOxMxn/laAQVcWeSlDe8hxuNO4hD+QDyt7mhPriBon6UXG32KsuXSst8oWG2U9F+myDjAQ=
SHA256 (Pkgfile) = 3003e1441cbb5c1c45117f8d475cd44b997980856227192d1f0aa1ab65253cb6 SHA256 (Pkgfile) = 2cfa0d12c4df35038a5297e2d8864d877abcdc9f43f543058c9a31612f1e4c9e
SHA256 (.footprint) = 55c7f9d94e91848e42d4a525310b0ea7df605fbb845be7fa9b9c6087c21986dd SHA256 (.footprint) = 55c7f9d94e91848e42d4a525310b0ea7df605fbb845be7fa9b9c6087c21986dd
SHA256 (vorbis-tools-1.4.2.tar.gz) = db7774ec2bf2c939b139452183669be84fda5774d6400fc57fde37f77624f0b0 SHA256 (vorbis-tools-1.4.2.tar.gz) = db7774ec2bf2c939b139452183669be84fda5774d6400fc57fde37f77624f0b0

View File

@ -16,6 +16,13 @@ build() {
prt-get isinst libao || PKGMK_VORBISTOOLS+=(--disable-ogg123) prt-get isinst libao || PKGMK_VORBISTOOLS+=(--disable-ogg123)
cd $name-$version cd $name-$version
GCC_VER="$(gcc --version | awk '(NR==1) {print $3}')"
if [ "${GCC_VER%%.*}" -ge 14 ]; then
sed -e '30a#include "utf8.h"' -i ogginfo/codec_skeleton.c
sed -e '30a#include "charset.h"' -i share/utf8.c
fi
./configure "${PKGMK_VORBISTOOLS[@]}" ./configure "${PKGMK_VORBISTOOLS[@]}"
make make