diff --color -urN a/Portfile b/Portfile
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name hdhomerun |
6 | | version 20200521 |
| 6 | version 20221023 |
7 | 7 | categories net multimedia |
8 | 8 | platforms darwin |
9 | | supported_archs x86_64 |
10 | 9 | license LGPL-3+ |
11 | 10 | maintainers {ctreleaven @ctreleaven} openmaintainer |
12 | 11 | description HDHomeRun device configuration utility |
… |
… |
|
23 | 22 | extract.suffix .tgz |
24 | 23 | extract.only ${distname}${extract.suffix} |
25 | 24 | 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 |
29 | 29 | |
30 | | patchfiles patch-01-Makefile-libpath.diff |
| 30 | patchfiles patch-01-Makefile-${version}.diff |
31 | 31 | patch.args -p1 |
32 | 32 | post-patch { |
33 | 33 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile |
34 | 34 | } |
35 | 35 | |
36 | 36 | 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 | |
42 | 52 | destroot { |
43 | 53 | xinstall -m 0755 ${worksrcpath}/hdhomerun_config \ |
44 | 54 | ${destroot}${prefix}/bin/hdhomerun_config |
45 | 55 | xinstall -m 0755 ${worksrcpath}/libhdhomerun.dylib \ |
46 | 56 | ${destroot}${prefix}/lib/libhdhomerun.dylib |
| 57 | xinstall -d -m 0755 ${destroot}${prefix}/include/libhdhomerun/ |
47 | 58 | 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/ |
55 | 65 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/ |
56 | 66 | xinstall -m 0644 ${worksrcpath}/README.md \ |
57 | 67 | ${destroot}${prefix}/share/doc/${name}/README.md |