# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup muniversal 1.0 github.setup libass libass 0.17.2 revision 0 conflicts libass-devel checksums rmd160 e208192a35c6d9857837240856c2b0d0bf7dce05 \ sha256 38475e53a493d2e3268641b5baf85909dd77e62867e3a18dcc648b58f3b28fcd \ size 326496 categories multimedia license ISC maintainers nomaintainer description Subtitle renderer for the ASS/SSA subtitle format long_description \ libass is a portable subtitle renderer for the ASS/SSA \ (Advanced Substation Alpha/Substation Alpha) subtitle \ format. It is mostly compatible with VSFilter. subport libass-devel { github.setup libass libass a0aefba3cf357f74bf67410d71a1e0cf37d6c3da version 2024.06.02 conflicts libass checksums rmd160 d1c173b3db66006135fe1b303a280d278fa21670 \ sha256 fc8b8413513af63c00b02fad15c1355da5a7cab25f19f2a2d6ebb194f915c84f \ size 326716 github.tarball_from archive } depends_build port:m4 \ port:nasm \ path:bin/pkg-config:pkgconfig depends_lib path:lib/pkgconfig/harfbuzz.pc:harfbuzz \ port:fontconfig \ port:fribidi use_autoreconf yes configure.args --disable-silent-rules \ --enable-fontconfig # ass.h:421: error: wrong number of arguments specified for 'deprecated' attribute compiler.blacklist-append *gcc-3.* *gcc-4.* if {${universal_possible} && [variant_isset universal]} { # Needed by configure to correctly set the yasm build flags. set merger_host(arm64) "aarch64-apple-${os.platform}${os.major}.${os.minor}.0" set merger_host(i386) "i386-apple-${os.platform}${os.major}.${os.minor}.0" set merger_host(ppc) "powerpc-apple-${os.platform}${os.major}.${os.minor}.0" set merger_host(ppc64) "powerpc64-apple-${os.platform}${os.major}.${os.minor}.0" set merger_host(x86_64) "x86_64-apple-${os.platform}${os.major}.${os.minor}.0" # I don't feel safe using a *86* match here. Who knows what other arch could # be matching in the future. if {"i386" in ${configure.universal_archs} || "x86_64" in ${configure.universal_archs}} { depends_build-append port:yasm } lappend merger_configure_args(i386) --enable-asm lappend merger_configure_args(x86_64) --enable-asm lappend merger_configure_env(i386) LDFLAGS=-Wl,-read_only_relocs,suppress } else { if {${configure.build_arch} in "i386 x86_64"} { depends_build-append port:yasm configure.args-append --enable-asm } if {${configure.build_arch} eq "i386"} { configure.ldflags-append -Wl,-read_only_relocs,suppress } if {${configure.build_arch} eq "ppc"} { # https://trac.macports.org/ticket/65860 compiler.blacklist-append clang # This is necessary if MacPorts itself is built for x86, # but the build is for ppc via Rosetta. configure.args-append --build=powerpc-apple-${os.platform}${os.major} } } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} COPYING Changelog README.md ${destroot}${docdir} }