Here is an update to libass 0.16.0.
libass (0.16.0)
* Fix missing `-framework` options in libass.pc on macOS
* Fix missing GDI or DirectWrite options in libass.pc on Win32
* Fix crashes with fonts missing Postscript names and without one
being synthesised by the font provider
* Fix crashes on negative fontsizes and some overflows
* Fix a rare memory leak introduced in 0.13.0
* Fix minimum dependency versions in configure and our pc-file
* Fix our public headers for use with GCC versions between 3.1.0 and 4.5.0
(was a regression introduced in 0.15.0)
* x86: Fix potential buffer over-read by 16 bytes with AVX2 assembly
when large tiles are not enabled (the default)
* x86: Fix PIC flags not being interpreted by the assembler, breaking the
asm-enabled build setup on NetBSD and OpenBSD. On 32-bit x86, if the toolchain
requires PIC objects and relies on compiler defaults to get PIC implicitly,
you need to pass `--with-pic` to configure to ensure NASM always produces
PIC objects
* x86: Fix AVX support not being detected on non-Intel CPUs and some VMs
* x86: Fix CPUID being used on CPUs not supporting the instruction (<= i486)
and the way it is used for CPUs with less than 7 CPUID-leafs
which could lead to crashes due to illegal instructions
* MS Windows-only issue: Fix crashes with FreeType >= 2.11.1 on Win32
when rendering strikethrough or underline
* Improve `\iclip` quality
* Improve quality of very small outlines
* Switch to wyhash for much better cache performance
* Propagate ZWJ/ZWNJ effects across glyph run boundaries
* Do not depend on compiler-specific defines to actually use built assembly
* Expand documentation and fix mistakes in it
* configure now errors out if an explicitly requested feature is unavailable
* MS Windows-only issue: ease linking against static/shared GNU FriBidi
* Add ASS_FEATURE_WHOLE_TEXT_LAYOUT to apply bidi, shaping and \fay
to the entire unsplit event text. The non-portable `Encoding=-1` mode
always behaves as if the feature were enabled
* MS Windows-only issue: add support for arbitrary Unicode paths;
see documentation of related functions for details
* Improve VSFilter compatibility
* Do not treat format lines using `Actor` in place of `Name`
as custom format lines. The former is used by VSFilter itself,
the latter by Aegisub
* Run bidi and shaping on each glyph run separately by default
* Match VSFilter's \fsp effects on bidi and shaping
* Match VSFilter's \fay behaviour
* Support non-Unicode font cmaps when Win32 API or iconv
is available and can convert to the relevant encoding
* Treat empty clip outlines as if everything was outside the clip
not inside (was a 0.14.0 regression)
* Parse integer parameters of override tags more like VSFilter
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/multimedia/libass/Makefile,v
retrieving revision 1.28
diff -u -p -u -p -r1.28 Makefile
--- Makefile 11 Mar 2022 19:39:20 -0000 1.28
+++ Makefile 4 Jun 2022 05:52:48 -0000
@@ -1,6 +1,6 @@
COMMENT= portable ASS/SSA subtitle renderer
-VER= 0.15.2
+VER= 0.16.0
DISTNAME= libass-${VER}
CATEGORIES= multimedia devel
MASTER_SITES= https://github.com/libass/libass/releases/download/${VER}/
@@ -33,8 +33,5 @@ CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ASFLAGS="-DPIC=1 "
-
-post-patch:
- chmod ${BINMODE} ${WRKSRC}/ltnasm.sh
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/multimedia/libass/distinfo,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 distinfo
--- distinfo 4 Oct 2021 05:46:11 -0000 1.19
+++ distinfo 4 Jun 2022 05:33:12 -0000
@@ -1,2 +1,2 @@
-SHA256 (libass-0.15.2.tar.xz) = G+LfnESFpX14uxjAqO0Ve8h6Wo3UjGYZYcYlyxEoMv0=
-SIZE (libass-0.15.2.tar.xz) = 382036
+SHA256 (libass-0.16.0.tar.xz) = Xb3p4iM5EZz47tWe6mxiOgdG71qQtonmigkBCQeOPAg=
+SIZE (libass-0.16.0.tar.xz) = 396304
Index: patches/patch-libass_Makefile_in
===================================================================
RCS file: patches/patch-libass_Makefile_in
diff -N patches/patch-libass_Makefile_in
--- patches/patch-libass_Makefile_in 11 Mar 2022 19:39:20 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,24 +0,0 @@
-Use a libtool-wrapper script for NASM.
-
-Libtool thinks NASM acts just like the C-compiler, which isn't true
-for e.g. -f options. Previously we used -prefer-non-pic to avoid libtool
-passing any additional flags, which worked well on all tested platforms
-but as it turns out at least on OpenBSD this does not work.
-This now also means we'll automatically get the -DPIC flag as needed,
-which might perhaps also help some platforms we didn't test yet; before
-we fully relied on x86inc's automatic setting for PIC in assembly.
-
-https://github.com/libass/libass/issues/539
-
-Index: libass/Makefile.in
---- libass/Makefile.in.orig
-+++ libass/Makefile.in
-@@ -845,7 +845,7 @@ uninstall-am: uninstall-dist_assheadersHEADERS \
-
-
- .asm.lo:
-- $(nasm_verbose)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(AS) $(ASFLAGS) -I$(srcdir)/ -o $@ $< -prefer-non-pic
-+ $(nasm_verbose)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(top_srcdir)/ltnasm.sh $(AS) $(ASFLAGS) -I$(srcdir)/ -o $@ $<
-
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
Index: patches/patch-ltnasm_sh
===================================================================
RCS file: patches/patch-ltnasm_sh
diff -N patches/patch-ltnasm_sh
--- patches/patch-ltnasm_sh 11 Mar 2022 19:39:20 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,44 +0,0 @@
-Use a libtool-wrapper script for NASM.
-
-Libtool thinks NASM acts just like the C-compiler, which isn't true
-for e.g. -f options. Previously we used -prefer-non-pic to avoid libtool
-passing any additional flags, which worked well on all tested platforms
-but as it turns out at least on OpenBSD this does not work.
-This now also means we'll automatically get the -DPIC flag as needed,
-which might perhaps also help some platforms we didn't test yet; before
-we fully relied on x86inc's automatic setting for PIC in assembly.
-
-https://github.com/libass/libass/issues/539
-
-Index: ltnasm.sh
---- ltnasm.sh.orig
-+++ ltnasm.sh
-@@ -0,0 +1,28 @@
-+#!/bin/sh
-+
-+# Translate libtool supplied C-compiler options for NASM.
-+# libtool treats NASM like the C compiler, and may supply -f⦠options
-+# which are interpreted as the output file format by NASM, causing errors.
-+# Notably libtool will set -DPIC -fPIC and -fno-common;
-+# we want to use -DPIC by translating it to -DPIC=1, but remove everything else
-+#
-+# Theoretically the way the filtering is done here in a plain POSIX shell script,
-+# does mess up if there were spaces in any argument. However this will never happen
-+# since neither our filenames nor options do not contain spaces and source paths
-+# are not allowed to contain spaces by configure.
-+
-+cmd=""
-+while [ "$#" -gt 0 ] ; do
-+ case "$1" in
-+ # NASM accepts both -f format and -fformat,
-+ # we always use the former, and libtool supplied
-+ # C-compiler options will always use the latter.
-+ -f) cmd="$cmd $1" ;;
-+ -f*) : ;;
-+ -DPIC) cmd="$cmd -DPIC=1" ;;
-+ *) cmd="$cmd $1" ;;
-+ esac
-+ shift
-+done
-+
-+exec $cmd
No comments:
Post a Comment