[78264] trunk/dports/net/hdhomerun

ecronin at macports.org ecronin at macports.org
Sat Apr 30 14:31:45 PDT 2011


Revision: 78264
          http://trac.macports.org/changeset/78264
Author:   ecronin at macports.org
Date:     2011-04-30 14:31:43 -0700 (Sat, 30 Apr 2011)
Log Message:
-----------
net/hdhomerun: update to version 20110323

* Insert missing modeline
* Add openmaintainer
* ui_msg -> notes
* Update homepage and livecheck URLs to avoid redirects
* UsingTheRightCompiler
* Disable upstream (forced) universal, enable MacPorts universal
* Grab both US and EU firmwares

Modified Paths:
--------------
    trunk/dports/net/hdhomerun/Portfile

Added Paths:
-----------
    trunk/dports/net/hdhomerun/files/
    trunk/dports/net/hdhomerun/files/Makefile-universal.diff

Modified: trunk/dports/net/hdhomerun/Portfile
===================================================================
--- trunk/dports/net/hdhomerun/Portfile	2011-04-30 21:01:34 UTC (rev 78263)
+++ trunk/dports/net/hdhomerun/Portfile	2011-04-30 21:31:43 UTC (rev 78264)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem          1.0
@@ -3,35 +4,47 @@
 
 name                hdhomerun
-version             20100828
+version             20110323
 set firm_version    ${version}
 categories          net multimedia
 platforms           darwin
 
-maintainers         ecronin
+maintainers         ecronin openmaintainer
 description         HDHomeRun Software and Firmware
 long_description    ${description}
-homepage            http://www.silicondust.com/wiki/products/hdhomerun
+homepage            http://www.silicondust.com/
 
 master_sites        http://download.silicondust.com/hdhomerun
 distname            lib${name}_${version}
+patchfiles          Makefile-universal.diff
+patch.args          -p1
 extract.suffix      .tgz
-distfiles-append    ${name}_atsc_firmware_${firm_version}.bin
+distfiles-append    ${name}_atsc_firmware_${firm_version}.bin \
+                    ${name}_dvbt_firmware_${firm_version}.bin
 extract.only        ${distname}${extract.suffix}
 worksrcdir          lib${name}
 checksums           ${distname}${extract.suffix} \
-                        md5     3923ea7f88504271f76117aa608062e2 \
-                        sha1    43dcccc2e7ae732168015b5a07b3ca0ba2534802 \
-                        rmd160  b72cce1fa464ec7943cf120b399e68aa3a964ba8 \
+                        sha1    8b70bb0f86e3298a7961f3bf5330df48ba709a63 \
+                        rmd160  163dac6b479f3f3aa6a14da19e830cf213c7e31f \
                     ${name}_atsc_firmware_${firm_version}.bin \
-                        md5     bfc6b2fc80680795dac0c642807963ad \
-                        sha1    e4dbe22ca57efb844771e7309d3bcaf51bd0352f \
-                        rmd160  318f43e27aca5113d87d546a1fb437258942d1aa
+                        sha1    80caf663779d6485c0c587dad67923ecea1dcc7b \
+                        rmd160  ce37c889f749f726ab579f0697a227d027fa4e21 \
+                    ${name}_dvbt_firmware_${firm_version}.bin \
+                        sha1 474c187a9cd514d59f62ccaaa3512f87f5c3ada3 \
+                        rmd160 9234758b0435a273256813f19dd828d9ba98b970
 livecheck.type      regex
-livecheck.url       http://www.silicondust.com/wiki/downloads
-livecheck.regex     libhdhomerun_(\[0-9\]+)\\.tgz
+livecheck.url       http://www.silicondust.com/support/hdhomerun/downloads/
+livecheck.regex     Current release: (\[0-9\]+)
 
 use_configure       no
 
 build.target        hdhomerun_config
+build.args-append   CC=${configure.cc} \
+                    CXX=${configure.cxx} \
+                    CPP=${configure.cpp}
+if {[variant_isset universal]} {
+    build.args-append   CFLAGS="${configure.universal_cflags}"
+} else {
+    build.args-append   CFLAGS="${configure.cc_archflags}"
+}
 
 destroot {
@@ -41,13 +54,17 @@
     xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/
     xinstall -m 0644 ${distpath}/${name}_atsc_firmware_${firm_version}.bin \
         ${destroot}${prefix}/share/${name}/${name}_atsc_firmware_${firm_version}.bin
+    xinstall -m 0644 ${distpath}/${name}_dvbt_firmware_${firm_version}.bin \
+        ${destroot}${prefix}/share/${name}/${name}_dvbt_firmware_${firm_version}.bin
     xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/
     xinstall -m 0644 ${worksrcpath}/README \
         ${destroot}${prefix}/share/doc/${name}/README
 }
 
-post-activate {
-    ui_msg "to upgrade device firmware run:"
-    ui_msg "     hdhomerun_config <id> upgrade ${prefix}/share/${name}/${name}_atsc_firmware_${firm_version}.bin"
-}
+notes   "
+To upgrade device to newest firmware run:
+    hdhomerun_config <id> upgrade ${prefix}/share/${name}/<firmware>
+where <firmware> is ${name}_atsc_firmware_${firm_version}.bin for US/CA or
+${name}_dvbt_firmware_${firm_version}.bin for EU/AU/NZ.
+"
 

Added: trunk/dports/net/hdhomerun/files/Makefile-universal.diff
===================================================================
--- trunk/dports/net/hdhomerun/files/Makefile-universal.diff	                        (rev 0)
+++ trunk/dports/net/hdhomerun/files/Makefile-universal.diff	2011-04-30 21:31:43 UTC (rev 78264)
@@ -0,0 +1,11 @@
+diff -u libhdhomerun.orig/Makefile libhdhomerun/Makefile
+--- libhdhomerun.orig/Makefile	2011-04-30 16:23:55.000000000 -0400
++++ libhdhomerun/Makefile	2011-04-30 16:24:12.000000000 -0400
+@@ -32,7 +32,6 @@
+     LDFLAGS += -lsocket
+   endif
+   ifeq ($(OS),Darwin)
+-    CFLAGS += -arch i386 -arch ppc
+     LIBEXT := .dylib
+     SHARED := -dynamiclib -install_name libhdhomerun$(LIBEXT)
+   endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110430/120c6dbf/attachment.html>


More information about the macports-changes mailing list