<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[117991] trunk/dports/sysutils/lirc</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/117991">117991</a></dd>
<dt>Author</dt> <dd>macsforever2000@macports.org</dd>
<dt>Date</dt> <dd>2014-03-18 08:53:02 -0700 (Tue, 18 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>lirc: Update to version 0.9.0. Build fix for Xcode 5. (#41498)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportssysutilslircPortfile">trunk/dports/sysutils/lirc/Portfile</a></li>
<li><a href="#trunkdportssysutilslircfilespatchdriverslirchdiff">trunk/dports/sysutils/lirc/files/patch-drivers-lirc.h.diff</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportssysutilslircfilespatchosx_patchesdiff">trunk/dports/sysutils/lirc/files/patch-osx_patches.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportssysutilslircfilespatchdaemonshw_iguanaIRcdiff">trunk/dports/sysutils/lirc/files/patch-daemons-hw_iguanaIR.c.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportssysutilslircPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/sysutils/lirc/Portfile (117990 => 117991)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/lirc/Portfile        2014-03-18 15:07:09 UTC (rev 117990)
+++ trunk/dports/sysutils/lirc/Portfile        2014-03-18 15:53:02 UTC (rev 117991)
</span><span class="lines">@@ -3,8 +3,7 @@
</span><span class="cx"> PortSystem 1.0
</span><span class="cx"> 
</span><span class="cx"> name            lirc
</span><del>-version         0.8.3
-revision        2
</del><ins>+version         0.9.0
</ins><span class="cx"> categories      sysutils net
</span><span class="cx"> license         GPL-2+
</span><span class="cx"> maintainers     ecronin openmaintainer
</span><span class="lines">@@ -17,23 +16,26 @@
</span><span class="cx"> homepage        http://www.lirc.org
</span><span class="cx"> master_sites    sourceforge
</span><span class="cx"> use_bzip2       yes
</span><del>-checksums       md5 8e78eeded7b31e5ad02e328970437c0f \
-                sha1 4b5aec19fa9ee15bafaeb1f87c154a0d4e045dcc \
-                rmd160 8948efc3e9dc34426ea32a3c63da63c0efa7dce2
</del><ins>+checksums           rmd160  d8f1cf3a03573be36787e87adc71beba3e678a37 \
+                    sha256  6323afae6ad498d4369675f77ec3dbb680fe661bea586aa296e67f2e2daba4ff
+
</ins><span class="cx"> livecheck.distname  LIRC
</span><span class="cx"> 
</span><ins>+patchfiles          patch-osx_patches.diff
+
</ins><span class="cx"> configure.args  --with-driver=udp --with-devdir=${prefix}/var/run \
</span><span class="cx">                 --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
</span><span class="cx">                 --mandir=${prefix}/share/man
</span><span class="cx"> 
</span><ins>+# Build fails with clang
+# see bug report at: https://sourceforge.net/apps/mantisbt/lirc/view.php?id=1
+compiler.blacklist-append *clang*
+
</ins><span class="cx"> variant iguanaIR \
</span><span class="cx">     description {Use IguanaIR USB device} {
</span><del>-    configure.args-delete   --with-driver=udp
-    configure.args-append   --with-driver=iguanaIR
-    depends_lib-append  port:iguanaIR
-    patchfiles-append \
-        patch-daemons-hw_iguanaIR.c.diff \
-        patch-drivers-lirc.h.diff
</del><ins>+    configure.args-replace    --with-driver=udp --with-driver=iguanaIR
+    depends_lib-append        port:iguanaIR
+    patchfiles-append         patch-drivers-lirc.h.diff
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> post-destroot {
</span><span class="lines">@@ -61,8 +63,8 @@
</span><span class="cx"> 
</span><span class="cx"> notes &quot;
</span><span class="cx"> After installing you must configure an IR device for lirc to use. Most\
</span><del>-hardware devices are not supported on Mac OS X (known exceptions: IguanaIR)\;\
-network sources (remote lircd, HD Homerun, etc) are fully supported.
</del><ins>+hardware devices are not supported on Mac OS X (known exceptions: IguanaIR).\
+Network sources (remote lircd, HD Homerun, etc) are fully supported.
</ins><span class="cx"> 
</span><span class="cx"> Please edit ${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper\
</span><span class="cx"> and specify a valid driver or remote lircd to connect to. Examples for\
</span></span></pre></div>
<a id="trunkdportssysutilslircfilespatchdaemonshw_iguanaIRcdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/lirc/files/patch-daemons-hw_iguanaIR.c.diff (117990 => 117991)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/lirc/files/patch-daemons-hw_iguanaIR.c.diff        2014-03-18 15:07:09 UTC (rev 117990)
+++ trunk/dports/sysutils/lirc/files/patch-daemons-hw_iguanaIR.c.diff        2014-03-18 15:53:02 UTC (rev 117991)
</span><span class="lines">@@ -1,14 +0,0 @@
</span><del>---- daemons/hw_iguanaIR.c.org        2008-04-06 03:37:11.000000000 -0500
-+++ daemons/hw_iguanaIR.c        2010-01-21 10:04:29.000000000 -0600
-@@ -18,7 +18,11 @@
- #include &lt;stdio.h&gt;
- #include &lt;stdint.h&gt;
- #include &lt;errno.h&gt;
-+#ifdef __APPLE__
-+#include &lt;sys/wait.h&gt;
-+#else
- #include &lt;wait.h&gt;
-+#endif

- #include &quot;lircd.h&quot;
- #include &quot;ir_remote_types.h&quot;
</del></span></pre></div>
<a id="trunkdportssysutilslircfilespatchdriverslirchdiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/sysutils/lirc/files/patch-drivers-lirc.h.diff (117990 => 117991)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/lirc/files/patch-drivers-lirc.h.diff        2014-03-18 15:07:09 UTC (rev 117990)
+++ trunk/dports/sysutils/lirc/files/patch-drivers-lirc.h.diff        2014-03-18 15:53:02 UTC (rev 117991)
</span><span class="lines">@@ -1,11 +1,11 @@
</span><span class="cx"> --- drivers/lirc.h.org        2008-01-12 15:57:57.000000000 -0600
</span><span class="cx"> +++ drivers/lirc.h        2010-01-21 10:03:23.000000000 -0600
</span><del>-@@ -8,7 +8,7 @@
</del><ins>+@@ -9,7 +9,7 @@
+ #if defined(__linux__)
+ #include &lt;linux/types.h&gt;
</ins><span class="cx">  #include &lt;linux/ioctl.h&gt;
</span><del>- #else
- #include &lt;sys/types.h&gt;
--#if defined(__NetBSD__)
-+#if defined(__NetBSD__) || defined(__APPLE__)
</del><ins>+-#elif defined(_NetBSD_)
++#elif defined(_NetBSD_) || defined(__APPLE__)
</ins><span class="cx">  #include &lt;sys/ioctl.h&gt;
</span><del>- #endif
- typedef u_int32_t __u32;
</del><ins>+ #elif defined(_CYGWIN_)
+ #define __USE_LINUX_IOCTL_DEFS
</ins></span></pre></div>
<a id="trunkdportssysutilslircfilespatchosx_patchesdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/sysutils/lirc/files/patch-osx_patches.diff (0 => 117991)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/lirc/files/patch-osx_patches.diff                                (rev 0)
+++ trunk/dports/sysutils/lirc/files/patch-osx_patches.diff        2014-03-18 15:53:02 UTC (rev 117991)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+Extracted from https://sourceforge.net/u/rico9999/lirc/ci/f7c2830bbd60692feedf0dc8924b795027eaf3af/
+
+--- daemons/ir_remote_types.h
++++ daemons/ir_remote_types.h
+@@ -14,7 +14,20 @@
+ #ifndef IR_REMOTE_TYPES_H
+ #define IR_REMOTE_TYPES_H

++#if defined(__linux__)
+ #include &lt;sys/types.h&gt;
++#else
++#include &lt;stdint.h&gt;
++typedef int8_t   __s8;
++typedef uint8_t  __u8;
++typedef int16_t  __s16;
++typedef uint16_t __u16;
++typedef int32_t  __s32;
++typedef uint32_t __u32;
++typedef int64_t  __s64;
++typedef uint64_t __u64;
++#endif
++
+ #include &lt;sys/time.h&gt;
+ #include &lt;unistd.h&gt;
+ #include &lt;string.h&gt;
+
+--- daemons/lircmd.c
++++ daemons/lircmd.c
+@@ -35,6 +35,16 @@
+ #if defined(__linux__)
+ #include &lt;linux/input.h&gt;
+ #include &lt;linux/uinput.h&gt;
++#else
++#include &lt;stdint.h&gt;
++typedef int8_t   __s8;
++typedef uint8_t  __u8;
++typedef int16_t  __s16;
++typedef uint16_t __u16;
++typedef int32_t  __s32;
++typedef uint32_t __u32;
++typedef int64_t  __s64;
++typedef uint64_t __u64;
+ #endif

+ #define CLICK_DELAY 50000        /* usecs */
</ins></span></pre>
</div>
</div>

</body>
</html>