source: trunk/dports/multimedia/hdhomerun_gui/Portfile

Last change on this file was 144934, checked in by ctreleaven@…, 20 months ago

hdhomerun_gui: bump to 20150826 release, update patches

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 144934 2016-01-21 16:03:26Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           app 1.0
6PortGroup           active_variants 1.1
7
8name                hdhomerun_gui
9version             20150826
10categories          multimedia
11platforms           darwin
12license             GPL-3
13maintainers         ctreleaven openmaintainer
14description         HDHomeRun configuration utility, GTK GUI
15long_description    Provides a utility program to access, configure and test \
16                    HDHomeRun network tuner devices from SiliconDust including viewing \
17                    live television.  May also be used to upgrade firmware.  Uses GTK \
18                    graphical environment.
19homepage            http://www.silicondust.com/
20
21master_sites        http://download.silicondust.com/hdhomerun
22distname            hdhomerun_config_gui_${version}
23patchfiles          patch-libhdhomerun.diff \
24                    patch-firmware_path.diff \
25                    patch-missing_frameworks.diff \
26                    patch-noQuartz.diff
27
28patch.args          -p1
29extract.suffix      .tgz
30worksrcdir          hdhomerun_config_gui
31checksums           rmd160  661dc09cc3c705c1b892738d1864b7d0c2bacb37 \
32                    sha256  8d89878eb437e1df93b99268f9dcec00b79374a00f2640f7ec13a31f8d9ea6ae
33
34livecheck.type      regex
35livecheck.url       http://www.silicondust.com/support/hdhomerun/downloads/
36livecheck.regex     Current release: (\[0-9\]+)
37
38depends_build       port:pkgconfig
39depends_lib         path:lib/libhdhomerun.dylib:hdhomerun \
40                    port:gtk2
41depends_run         port:VLC \
42                    path:bin/Xquartz:xorg-server
43
44require_active_variants port:VLC dvb
45require_active_variants port:gtk2 x11
46
47post-patch {
48    reinplace "s|@FIRMWARE_DIR@|${prefix}/share/hdhomerun/|g" \
49        ${worksrcpath}/src/HDHRConfig.cpp
50    reinplace "s|\${EXECUTABLE_NAME}|hdhomerun_config_gui|g" \
51        ${worksrcpath}/OSX/Info.plist
52    reinplace "s|\${PRODUCT_NAME}|HDHomeRun Config|g" \
53        ${worksrcpath}/OSX/Info.plist
54}
55
56post-build {
57# no execute permission, will refuse to run with "Error 126", Permission denied
58    file attributes ${worksrcpath}/install-sh -permissions +x
59}
60
61use_autoconf        yes
62
63app.name            HDHomerun
64app.executable      hdhomerun_config_gui
65app.icon            ${worksrcpath}/OSX/hdhr.icns
66
67post-destroot {
68# Stop icon from bouncing on dock
69# see https://trac.macports.org/ticket/40110
70    reinplace -E {s|(<string>APPL</string>)|\1 <key>LSUIElement</key><string>1</string>|} \
71        "${destroot}${applications_dir}/HDHomerun.app/Contents/Info.plist"
72}
Note: See TracBrowser for help on using the repository browser.