Ticket #47907: libvpx-1.4.0-ryandesign.diff

File libvpx-1.4.0-ryandesign.diff, 3.9 KB (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)

proposal

  • Portfile

     
    66PortGroup           muniversal 1.0
    77
    88name                libvpx
    9 version             1.3.0
    10 revision            1
     9version             1.4.0
    1110categories          multimedia
    1211maintainers         devans openmaintainer
    1312platforms           darwin
     
    2423                    The VP9 encoder in this release is not, as yet, feature complete.
    2524
    2625homepage            http://webmproject.org
    27 master_sites        googlecode:webm
     26master_sites        http://storage.googleapis.com/downloads.webmproject.org/releases/webm/
    2827use_bzip2           yes
    29 distname            ${name}-v${version}
    3028
    31 checksums           rmd160  bf74821ac8f20ed30f44b6e01473ee1f332f721c \
    32                     sha256  d3dcc8d84af51c6c382b214397c62402e37a799e8ebcda6f4217aef0010451a9
     29checksums           rmd160  272b1a9f1687a80337d79ccbada2a344c96d1bf1 \
     30                    sha256  f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4
    3331
    34 depends_build       port:yasm
     32if {[string match "*86*" [get_canonical_archs]]} {
     33    depends_build-append port:yasm
     34}
    3535
    36 patchfiles          patch-build-make-configure.sh.diff \
    37                     patch-configure.diff \
    38                     patch-Makefile.diff
     36patchfiles          patch-Makefile.diff
    3937
    4038compiler.blacklist  macports-clang-2.9 macports-clang-3.0 {clang < 421}
    4139
     
    5048                    --enable-runtime-cpu-detect \
    5149                    --disable-install-docs \
    5250                    --disable-debug-libs \
    53                     --disable-examples
     51                    --disable-examples \
     52                    --disable-unit-tests
    5453
    5554configure.env       LD="${configure.cc}"
    5655
     
    8382        build.args-append CFLAGS_S=-fno-integrated-as
    8483}
    8584
    86 platform darwin {
    87     if {${os.major} >= 10} {
    88         supported_archs i386 x86_64
    89     }
    90 }
    91 
    92 # set configure parameters depending on if universal or not
    9385set my_targets(ppc)     ppc32
    9486set my_targets(ppc64)   ppc64
    9587set my_targets(i386)    x86
    9688set my_targets(x86_64)  x86_64
    97 if {[variant_isset universal]} {
    98     # clear universal flags; configure will determine them.
    99     configure.universal_cppflags
    100     configure.universal_cflags
    101     configure.universal_cxxflags
    102     configure.universal_ldflags
    103     configure.universal_args-delete --disable-dependency-tracking
    104     foreach my_arch ${configure.universal_archs} {
    105         set merger_host(${my_arch}) ""
    106         if {[info exists my_targets(${my_arch})]} {
    107             set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}-gcc
    108         }
     89
     90# Clear universal flags; configure will determine them from the --target.
     91configure.universal_cppflags
     92configure.universal_cflags
     93configure.universal_cxxflags
     94configure.universal_ldflags
     95configure.universal_args-delete --disable-dependency-tracking
     96
     97set target_darwin_version [expr {4 + [lindex [split ${macosx_deployment_target} .] 1]}]
     98foreach my_arch ${configure.universal_archs} {
     99    set merger_host(${my_arch}) ""
     100    if {[info exists my_targets(${my_arch})]} {
     101        set merger_configure_args(${my_arch}) --force-target=$my_targets(${my_arch})-${os.platform}${target_darwin_version}-gcc
    109102    }
    110 } else {
    111     # specify only the single target, otherwise 'configure' will try
    112     # for a universal install.
    113     if {[info exists my_targets(${build_arch})]} {
    114         configure.args-append --target=$my_targets(${build_arch})-${os.platform}-gcc
     103}
     104
     105if {![variant_isset universal]} {
     106    # Specify the target, otherwise 'configure' will try
     107    # for a universal build on darwin8 and darwin9.
     108    if {[info exists merger_configure_args(${build_arch})]} {
     109        configure.args-append $merger_configure_args(${build_arch})
    115110    } else {
    116111        configure.args-append --target=${os.arch}-${os.platform}-gcc
    117112    }