Ticket #66078: Portfile.diff

File Portfile.diff, 3.5 KB (added by johnrosshunt, 19 months ago)
  • Portfile

    diff --color -urN a/Portfile b/Portfile
    a b  
    33PortSystem          1.0
    44
    55name                hdhomerun
    6 version             20200521
     6version             20221023
    77categories          net multimedia
    88platforms           darwin
    9 supported_archs     x86_64
    109license             LGPL-3+
    1110maintainers         {ctreleaven @ctreleaven} openmaintainer
    1211description         HDHomeRun device configuration utility
     
    2322    extract.suffix      .tgz
    2423    extract.only        ${distname}${extract.suffix}
    2524    worksrcdir          lib${name}
    26 checksums           rmd160  32e323f12b734901e5cbc644aa539cbcbf1dd9ef \
    27                     sha256  a61038f0a78c5dcab3508927ba47ac6ec47840f3d42a2df2b02034cfd7400668 \
    28                     size    51014
     25    checksums           rmd160  79de29621ade281c60d4d31bcc744bd51623ea68 \
     26                        sha256  f07d5d56aef4650198f940a73e44adfd278b2a2ee163274475c1acb5dd52f1ae \
     27                        size    62610
     28    universal_variant   yes
    2929
    30     patchfiles          patch-01-Makefile-libpath.diff
     30    patchfiles          patch-01-Makefile-${version}.diff
    3131    patch.args          -p1
    3232    post-patch {
    3333        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
    3434    }
    3535
    3636    use_configure       no
    37    
    38     build.args-append   CC=${configure.cc} \
    39                         CXX=${configure.cxx} \
    40                         CPP=${configure.cpp}
    41    
     37 
     38    build.args-append   CC="${configure.cc}" \
     39                        CFLAGS="${configure.cflags}"
     40
     41    if {![info exists universal_possible]} {
     42        set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
     43    }
     44    if {${universal_possible} && [variant_isset universal]} {
     45        build.args-append \
     46                        TARGET="[portconfigure::configure_get_universal_archflags]"
     47    } else {
     48        build.args-append \
     49                        TARGET="[get_canonical_archflags cc]"
     50    }
     51
    4252    destroot {
    4353        xinstall -m 0755 ${worksrcpath}/hdhomerun_config \
    4454            ${destroot}${prefix}/bin/hdhomerun_config
    4555        xinstall -m 0755 ${worksrcpath}/libhdhomerun.dylib \
    4656            ${destroot}${prefix}/lib/libhdhomerun.dylib
     57        xinstall -d -m 0755 ${destroot}${prefix}/include/libhdhomerun/
    4758        xinstall -m 0644 -W ${worksrcpath} \
    48                 hdhomerun.h hdhomerun_os.h hdhomerun_os_posix.h \
    49                 hdhomerun_types.h hdhomerun_pkt.h hdhomerun_sock.h \
    50                 hdhomerun_debug.h hdhomerun_discover.h hdhomerun_control.h \
    51                 hdhomerun_video.h hdhomerun_channels.h hdhomerun_channelscan.h \
    52                 hdhomerun_device.h hdhomerun_device_selector.h \
    53             ${destroot}${prefix}/include/
    54         xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/
     59                hdhomerun.h hdhomerun_channels.h hdhomerun_channelscan.h \
     60                hdhomerun_control.h hdhomerun_debug.h hdhomerun_device.h \
     61                hdhomerun_device_selector.h hdhomerun_discover.h hdhomerun_os.h \
     62                hdhomerun_os_posix.h hdhomerun_pkt.h hdhomerun_sock.h \
     63                hdhomerun_types.h hdhomerun_video.h \
     64            ${destroot}${prefix}/include/libhdhomerun/
    5565        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/
    5666        xinstall -m 0644 ${worksrcpath}/README.md \
    5767            ${destroot}${prefix}/share/doc/${name}/README.md