Ticket #48192: libass.patch

File libass.patch, 2.4 KB (added by Ionic (Mihai Moldovan), 9 years ago)

Update libass to 0.12.2, port to GitHub. Updated to work universally.

  • multimedia/libass/Portfile

    diff --git a/multimedia/libass/Portfile b/multimedia/libass/Portfile
    index 4026637..1609601 100644
    a b  
    22# $Id$
    33
    44PortSystem      1.0
     5PortGroup       github 1.0
     6PortGroup       muniversal 1.0
    57
    6 name            libass
    7 version         0.10.2
     8github.setup    libass libass 0.12.2
    89categories      multimedia
    910license         ISC
    1011maintainers     tds.net:coax openmaintainer
    depends_lib port:fribidi \ 
    2122                port:fontconfig \
    2223                port:enca
    2324
     25use_autoreconf  yes
     26
    2427configure.args  --enable-enca \
    2528                --enable-fontconfig \
    2629                --disable-harfbuzz \
    2730                --disable-silent-rules
    2831
    29 homepage        http://code.google.com/p/libass/
    30 master_sites    googlecode
     32checksums       rmd160  c9325390c4284df651a8bff5b2e7447cb45d94f5 \
     33                sha256  1f6652d94c471e17e086433ccb19906935762b53d1ca10f4120263408ce38302
     34
     35if {[variant_isset universal]} {
     36    # Needed by configure to correctly set the yasm build flags.
     37    foreach arch ${configure.universal_archs} {
     38        set merger_host($arch) "${arch}-apple-${os.platform}${os.major}.${os.minor}.0"
     39    }
    3140
    32 checksums       rmd160  9f79b17e28a1819b3141ea5d6335a727ccb92443 \
    33                 sha256  6d3422b12ba8affc9fb1db2aaa905915f4c15c83a62bd3167a1c0fa9d2c465ff
     41    # I don't feel safe using *86* here. Who knows what other arch could be matching
     42    # in the future.
     43    if {[string match "*i386*" ${configure.universal_archs}] ||
     44        [string match "*x86_64*" ${configure.universal_archs}]} {
     45        depends_build-append port:yasm
     46    }
     47    lappend merger_configure_args(i386)     --enable-asm
     48    lappend merger_configure_args(x86_64)   --enable-asm
     49    lappend merger_configure_env(i386)      LDFLAGS='-Wl,-read_only_relocs,suppress'
     50} else {
     51    if {${build_arch} eq "i386" || ${build_arch} eq "x86_64"} {
     52        depends_build-append    port:yasm
     53        configure.args-append   --enable-asm
     54    }
     55    if {${build_arch} eq "i386"} {
     56        configure.ldflags-append -Wl,-read_only_relocs,suppress
     57    }
     58}
    3459
    3560post-destroot {
    3661    set docdir ${prefix}/share/doc/${name}
    3762    xinstall -d ${destroot}${docdir}
    38     xinstall -m 0644 -W ${worksrcpath} COPYING Changelog ${destroot}${docdir}
     63    xinstall -m 0644 -W ${worksrcpath} COPYING Changelog README.md ${destroot}${docdir}
    3964}