# -*- 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
PortGroup active_variants 1.1
maintainers {ctreleaven @ctreleaven} openmaintainer
description HDHomeRun configuration utility, GTK GUI
long_description Provides a utility program to access, configure and test \
HDHomeRun network tuner devices from SiliconDust including viewing \
live television. May also be used to upgrade firmware. Uses GTK \
homepage https://www.silicondust.com/
master_sites http://download.silicondust.com/hdhomerun
distname hdhomerun_config_gui_${version}
patchfiles patch-libhdhomerun.diff \
patch-firmware_path.diff \
patch-missing_frameworks.diff \
worksrcdir hdhomerun_config_gui
checksums rmd160 661dc09cc3c705c1b892738d1864b7d0c2bacb37 \
sha256 8d89878eb437e1df93b99268f9dcec00b79374a00f2640f7ec13a31f8d9ea6ae
livecheck.url http://www.silicondust.com/support/hdhomerun/downloads/
livecheck.regex Current release: (\[0-9\]+)
depends_build port:pkgconfig
depends_lib path:lib/libhdhomerun.dylib:hdhomerun \
path:bin/Xquartz:xorg-server
require_active_variants port:VLC dvb
require_active_variants port:gtk2 x11
reinplace "s|@FIRMWARE_DIR@|${prefix}/share/hdhomerun/|g" \
${worksrcpath}/src/HDHRConfig.cpp
reinplace "s|\${EXECUTABLE_NAME}|hdhomerun_config_gui|g" \
${worksrcpath}/OSX/Info.plist
reinplace "s|\${PRODUCT_NAME}|HDHomeRun Config|g" \
${worksrcpath}/OSX/Info.plist
# no execute permission, will refuse to run with "Error 126", Permission denied
file attributes ${worksrcpath}/install-sh -permissions +x
app.executable hdhomerun_config_gui