diff --git a/multimedia/libass/Portfile b/multimedia/libass/Portfile
index 4026637..1609601 100644
a
|
b
|
|
2 | 2 | # $Id$ |
3 | 3 | |
4 | 4 | PortSystem 1.0 |
| 5 | PortGroup github 1.0 |
| 6 | PortGroup muniversal 1.0 |
5 | 7 | |
6 | | name libass |
7 | | version 0.10.2 |
| 8 | github.setup libass libass 0.12.2 |
8 | 9 | categories multimedia |
9 | 10 | license ISC |
10 | 11 | maintainers tds.net:coax openmaintainer |
… |
… |
depends_lib port:fribidi \ |
21 | 22 | port:fontconfig \ |
22 | 23 | port:enca |
23 | 24 | |
| 25 | use_autoreconf yes |
| 26 | |
24 | 27 | configure.args --enable-enca \ |
25 | 28 | --enable-fontconfig \ |
26 | 29 | --disable-harfbuzz \ |
27 | 30 | --disable-silent-rules |
28 | 31 | |
29 | | homepage http://code.google.com/p/libass/ |
30 | | master_sites googlecode |
| 32 | checksums rmd160 c9325390c4284df651a8bff5b2e7447cb45d94f5 \ |
| 33 | sha256 1f6652d94c471e17e086433ccb19906935762b53d1ca10f4120263408ce38302 |
| 34 | |
| 35 | if {[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 | } |
31 | 40 | |
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 | } |
34 | 59 | |
35 | 60 | post-destroot { |
36 | 61 | set docdir ${prefix}/share/doc/${name} |
37 | 62 | 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} |
39 | 64 | } |