source: trunk/dports/multimedia/libass/Portfile

Last change on this file was 153734, checked in by mps@…, 10 months ago

libass: update to version 0.13.4.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 153734 2016-10-09 20:26:41Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6PortGroup       muniversal 1.0
7
8github.setup    libass libass 0.13.4
9categories      multimedia
10license         ISC
11maintainers     nomaintainer
12platforms       darwin
13description     subtitle renderer for the ASS/SSA subtitle format
14
15long_description \
16    libass is a portable subtitle renderer for the \
17    ASS/SSA (Advanced Substation Alpha/Substation Alpha) \
18    subtitle format. It is mostly compatible with VSFilter.
19
20depends_build   port:pkgconfig
21depends_lib     port:fribidi \
22                port:fontconfig
23
24use_autoreconf  yes
25
26configure.args  --enable-fontconfig \
27                --disable-harfbuzz \
28                --disable-silent-rules
29
30checksums           rmd160  d23895e0649f4222a9b8a1db40721ee8b2129d5a \
31                    sha256  6dfa31b228cdd04754484e5d0f10599b3bed6f648fccaad6328b9e74ca6f0a7a
32
33if {[variant_isset universal]} {
34    # Needed by configure to correctly set the yasm build flags.
35    foreach arch ${configure.universal_archs} {
36        set merger_host($arch) "${arch}-apple-${os.platform}${os.major}.${os.minor}.0"
37    }
38
39    # I don't feel safe using a *86* match here. Who knows what other arch could
40    # be matching in the future.
41    if {"i386" in ${configure.universal_archs} ||
42        "x86_64" in ${configure.universal_archs}} {
43        depends_build-append port:yasm
44    }
45    lappend merger_configure_args(i386)     --enable-asm
46    lappend merger_configure_args(x86_64)   --enable-asm
47    lappend merger_configure_env(i386)      LDFLAGS='-Wl,-read_only_relocs,suppress'
48} else {
49    if {${build_arch} eq "i386" || ${build_arch} eq "x86_64"} {
50        depends_build-append    port:yasm
51        configure.args-append   --enable-asm
52    }
53    if {${build_arch} eq "i386"} {
54        configure.ldflags-append -Wl,-read_only_relocs,suppress
55    }
56}
57
58post-destroot {
59    set docdir ${prefix}/share/doc/${name}
60    xinstall -d ${destroot}${docdir}
61    xinstall -m 0644 -W ${worksrcpath} COPYING Changelog README.md ${destroot}${docdir}
62}
Note: See TracBrowser for help on using the repository browser.