<!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>[151637] trunk/dports/multimedia</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/151637">151637</a></dd>
<dt>Author</dt> <dd>ctreleaven@macports.org</dd>
<dt>Date</dt> <dd>2016-08-18 18:04:23 -0700 (Thu, 18 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>mythtv.28 and friends: create 0.28 versions</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmultimediamythtv28Portfile">trunk/dports/multimedia/mythtv.28/Portfile</a></li>
<li><a href="#trunkdportsmultimediamythtv28filespatchrpath_linkingdiff">trunk/dports/multimedia/mythtv.28/files/patch-rpath_linking.diff</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/multimedia/mythtv.28/</li>
<li><a href="#trunkdportsmultimediamythtv28filesREADME_mythtvpkg28_MacPortstxt">trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt</a></li>
<li><a href="#trunkdportsmultimediamythtv28filesREADME_mythtv28_MacPortstxt">trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt</a></li>
<li><a href="#trunkdportsmultimediamythtv28filespatchconfigure_opengl_checkdiff">trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff</a></li>
<li><a href="#trunkdportsmultimediamythtv28filespatchconfigure_verbositydiff">trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff</a></li>
<li><a href="#trunkdportsmultimediamythtv28filespatchdvdnav_include_pathdiff">trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmultimediamythtv28Portfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mythtv.28/Portfile (151635 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.27/Portfile        2016-08-18 23:18:06 UTC (rev 151635)
+++ trunk/dports/multimedia/mythtv.28/Portfile        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -2,471 +2,499 @@
</span><span class="cx"> # $Id$
</span><span class="cx"> 
</span><span class="cx"> PortSystem          1.0
</span><ins>+PortGroup           qt5 1.0
</ins><span class="cx"> PortGroup           github 1.0
</span><del>-PortGroup           qt4 1.0
-PortGroup           compiler_blacklist_versions 1.0
</del><ins>+PortGroup           active_variants 1.1
</ins><span class="cx"> 
</span><del>-set shorthash       5071dae6
-# set fullhash      5071dae6a5157c862ecd007950d1955c7fa790cc
-set majorversion    .27
-set minorversion    .6
-set lastcommit      20160208
</del><ins>+set shorthash       29d70677
+# set fullhash      29d70677afcd13a3e5041c4d4f373b203bd672f8
+set majorversion    .28
+set minorversion    &quot;&quot;
+set lastcommit      20160807
</ins><span class="cx"> github.setup        MythTV mythtv ${shorthash}
</span><del>-revision            1
</del><ins>+checksums           rmd160  9149425395b73875b53d6a4f59184aedb770ecd4 \
+                    sha256  903f80460acfa33314e0a9269a0b485b82509e03ac1a3a05ab6348989567f78d
+
</ins><span class="cx"> name                mythtv${majorversion}
</span><del>-checksums           rmd160  966d8f960b4708eb2a6ac7ed93bc2d6cc314bb3e \
-                    sha256  d72cb11660d5ec0f9d0cbccf06b080857335b5b0b5aced873004cae3a4f32987
-
</del><span class="cx"> categories          multimedia
</span><span class="cx"> platforms           darwin
</span><span class="cx"> # i386 unsupported -- https://trac.macports.org/ticket/40337
</span><span class="cx"> supported_archs     x86_64
</span><span class="cx"> license             GPL-2
</span><span class="cx"> maintainers         ctreleaven openmaintainer
</span><del>-
</del><span class="cx"> homepage            http://www.mythtv.org/
</span><span class="cx"> universal_variant   no
</span><span class="cx"> 
</span><del>-livecheck.version       ${majorversion}${minorversion}
-livecheck.regex         &quot;archive/v(0.27\[\\.\\d\]?)${extract.suffix}&quot;
</del><ins>+livecheck.version   ${majorversion}${minorversion}
+livecheck.regex     &quot;archive/v(0${majorversion}\[\\.\\d\]?)${extract.suffix}&quot;
</ins><span class="cx"> 
</span><del>-
</del><ins>+set nick            mythtv
+set mythtvhomedir   ${prefix}/var/mythtvuser
+set mythtvlogdir    ${prefix}/var/log/${nick}${majorversion}
+set mythtvrundir    ${prefix}/var/run/${nick}${majorversion}
+set mythtvpidfile   ${mythtvrundir}/${nick}
+set plistdir        ${prefix}/Library/LaunchDaemons
+set plistlabel      org.mythtv.mythbackend
+set plistfile       org.mythtv.mythbackend.plist
+set mythverstring   v0${majorversion}${minorversion}-${shorthash}-MacPorts
+set mythbranch      fixes/0${majorversion}
+set applescripts    {Myth_Frontend Myth_Filldatabase Myth_Setup Myth_Stop_Start}
+set mysqlver        mariadb
</ins><span class="cx"> set perlver         perl5.22
</span><span class="cx"> set perlbin         ${prefix}/bin/${perlver}
</span><span class="cx"> set perlmodver      p5.22
</span><del>-set pythonver       python2.7
</del><ins>+set pythonbranch    2.7
+set pythonver       python${pythonbranch}
</ins><span class="cx"> set pythonbin       ${prefix}/bin/${pythonver}
</span><span class="cx"> set pymodver        py27
</span><span class="cx"> 
</span><del>-if { ${subport} eq ${name} } {
</del><ins>+if {$subport eq &quot;mythtv-core${majorversion}&quot;} {
+    PortGroup           compiler_blacklist_versions 1.0
+    PortGroup           conflicts_build 1.0
+    
+    name                mythtv-core${majorversion}
+    version             0${majorversion}${minorversion}-Fixes-${lastcommit}
+    revision            1
</ins><span class="cx">     description         personal video recorder (PVR) and media centre system
</span><del>-    long_description    ${description}, please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port
-    master_sites
-    distfiles
-    installs_libs no
-    use_configure no
-    build {}
</del><ins>+    long_description    The ultimate Digital Video Recorder and home media \
+                        center hub. Think of it as a Free and Open Source alternative \
+                        to Windows Media Center or Tivo.
</ins><span class="cx"> 
</span><del>-    # create a dummy file so the port can be successfully activated
-    destroot {
-        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
-        set docfile   [open ${destroot}${prefix}/share/doc/${subport}/README.txt &quot;w&quot;]
-        puts ${docfile} &quot;Meta-port for ${name}&quot;
-        puts ${docfile} &quot;${long_description}&quot;
-        close ${docfile}
-    }
-    notes &quot;
-    Please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port.&quot;
-}
</del><ins>+    depends_lib-append  port:bzip2 \
+                        port:exiv2 \
+                        port:libass \
+                        port:libbluray \
+                        port:libcdio \
+                        port:libdvdcss \
+                        port:libiconv \
+                        port:libxml2 \
+                        port:fftw-3-single \
+                        port:freetype \
+                        port:lame \
+                        path:lib/libssl.dylib:openssl \
+                        port:faac \
+                        port:x264 \
+                        port:x265 \
+                        port:qt5-mysql-plugin \
+                        port:qt5-qtscript \
+                        port:qt5-qtwebkit \
+                        port:taglib \
+                        port:zlib \
+                        port:${pymodver}-mysql \
+                        port:${pymodver}-lxml \
+                        port:${pymodver}-urlgrabber \
+                        port:${perlmodver}-dbd-mysql \
+                        port:${perlmodver}-http-request-ascgi \
+                        port:${perlmodver}-lwp-useragent-determined \
+                        port:${perlmodver}-io-socket-inet6 \
+                        port:${perlmodver}-datemanip \
+                        port:${perlmodver}-net-upnp
+    
+    depends_build-append \
+                        port:yasm
+    
+    conflicts           mythtv-core.25 mythtv-core.26 mythtv-core.27
</ins><span class="cx"> 
</span><del>-subport mythtv-core${majorversion} {
-        name                mythtv-core${majorversion}
-        version             0${majorversion}${minorversion}-Fixes-${lastcommit}
-    revision            2
</del><ins>+    depends_run         port:logrotate
</ins><span class="cx"> 
</span><del>-        description         personal video recorder (PVR) and media centre system
-        long_description    The ultimate Digital Video Recorder and home media \
-                                                center hub. Think of it as a Free and Open Source alternative \
-                                                to Windows Media Center or Tivo.
</del><ins>+    require_active_variants \
+                        qt5-mysql-plugin mariadb55 mysql56
+    require_active_variants \
+                        p5.22-dbd-mysql mariadb {mariadb10_0 mariadb10_1 mysql4 mysql5 mysql51 mysql55 mysql56 mysql57 percona}
+    require_active_variants \
+                        py27-mysql mariadb55 {mysql4 mysql51 mysql55 mysql56 percona55}
+    require_active_variants \
+                        logrotate startupitem
+    
+    pre-fetch {
+        if {${os.platform} eq &quot;darwin&quot; &amp;&amp; ${os.major} &lt; 13} {
+            ui_error &quot;${name} ${version} requires Mac OS X 10.9 or greater.&quot;
+            return -code error &quot;incompatible Mac OS X version&quot;
+        }
+    }
+    
+    post-extract {
+        file mkdir ${worksrcpath}/macports
+        foreach {applescript} ${applescripts} {
+            copy ${filespath}/${applescript}.applescript ${worksrcpath}/macports/${applescript}.applescript
+        }
+        copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
+        copy ${filespath}/logrotate.conf ${worksrcpath}/macports/logrotate.conf
+        copy ${filespath}/logrotate.mythtv ${worksrcpath}/macports/logrotate.mythtv
+        copy ${filespath}/my.cnf ${worksrcpath}/macports/my.cnf
+        copy ${filespath}/mythconverg_init.sql ${worksrcpath}/macports/mythconverg_init.sql
+    }
+    
+    # revert rpath linking stuff as it is non-functional in MacPorts
+    patchfiles-append   patch-rpath_linking.diff
+    # report a couple more items of interest
+    patchfiles-append   patch-configure_verbosity.diff
+    # If MacPorts libdvdnav is installed, Myth #Includes an old version of libmythdvdnav ?!?
+    # occurs following ffmpeg re-sync, see https://github.com/MythTV/mythtv/commit/4f02b2f98a60940449bca05eab67ac764fc1e1e7#diff-282748943dcb8e362702042df95a1d98
+    patchfiles-append   patch-dvdnav_include_path.diff
+    # if mesa is installed, prevent Myth from finding/using it
+    patchfiles-append   patch-configure_opengl_check.diff
+    
+    post-patch {
+        set sedPath ${worksrcpath}/mythtv/
+        ui_info &quot;Make Myth utils use MacPorts Perl&quot;
+        reinplace -locale C &quot;s|check_cmd perl -e|check_cmd ${perlbin} -e|&quot; \
+            ${sedPath}configure
+    
+        reinplace -locale C &quot;s|#!/usr/bin/env perl|#!${perlbin}|&quot; \
+            ${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl  \
+            ${sedPath}programs/scripts/internetcontent/twit.tv.pl
+    
+        reinplace -locale C &quot;s|#!/usr/bin/perl|#!${perlbin}|&quot; \
+            ${sedPath}bindings/perl/Makefile.PL  \
+            ${sedPath}bindings/perl/MythTV.pm  \
+            ${sedPath}contrib/maintenance/optimize_mythdb.pl  \
+            ${sedPath}contrib/user_jobs/mythlink.pl  \
+            ${sedPath}programs/scripts/database/mythconverg_backup.pl \
+            ${sedPath}programs/scripts/database/mythconverg_restore.pl
+    
+        reinplace -locale C &quot;s|/usr/local/bin|${prefix}/lib/${mysqlver}/bin|&quot;  \
+            ${sedPath}programs/scripts/database/mythconverg_backup.pl \
+            ${sedPath}programs/scripts/database/mythconverg_restore.pl
+    
+        ui_info &quot;Record Myth version strings&quot;
+        reinplace -locale C &quot;s#\${SOURCE_VERSION}#${mythverstring}#g&quot; ${sedPath}version.sh
+        reinplace -locale C &quot;s#\${BRANCH}#${mythbranch}#g&quot; ${sedPath}version.sh
+    
+        ui_info &quot;Make Myth scripts use MacPorts Python  &lt;&lt;&lt;&lt;&quot;
+        # Hack to install Python bindings in ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
+        reinplace -locale C &quot;s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\&quot;${frameworks_dir}/Python.framework/Versions/${pythonbranch}\&quot;|&quot; \
+            ${sedPath}/bindings/python/Makefile
+        reinplace -locale C &quot;s|/usr/local|${prefix}|&quot; ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
+        fs-traverse f ${sedPath}/bindings/python/ {
+            if [string equal [ file extension ${f} ] &quot;.py&quot; ] {
+                reinplace -locale C &quot;s|^#! */usr/bin/env python\$|#!${pythonbin}|&quot; ${f}
+            }
+        }
+        fs-traverse f ${sedPath}/programs/scripts/ {
+            if [string equal [ file extension ${f} ] &quot;.py&quot; ] {
+                reinplace -locale C &quot;s|^#! */usr/bin/env python\$|#!${pythonbin}|&quot; ${f}
+            }
+        }
+        foreach f [glob -directory ${sedPath}/programs/scripts/hardwareprofile *.py] {
+        # fix even though they're currently non-functional on OS X
+            reinplace -locale C &quot;s|^#!/usr/bin/python\$|#!${pythonbin}|&quot; ${f}
+        }
+    
+        foreach {applescript} ${applescripts} {
+            reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C &quot;s|@APPLICATIONS_DIR@|${applications_dir}|&quot; ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|&quot; ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C &quot;s|@MYTHTVPIDFILE@|${mythtvpidfile}|&quot; ${worksrcpath}/macports/${applescript}.applescript
+        }
+        reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C &quot;s|@PLISTLABEL@|${plistlabel}|g&quot; ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C &quot;s|@PYTHONVER@|${pythonver}|&quot; ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|&quot; ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C &quot;s|@MYTHTVPIDFILE@|${mythtvpidfile}|&quot; ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/logrotate.conf
+        reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/my.cnf
+        reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|g&quot; ${worksrcpath}/macports/logrotate.mythtv
+        reinplace -locale C &quot;s|xxxyyyzzz|${mythtvpidfile}|&quot; ${worksrcpath}/mythtv/configure
+    }
+    # Block various compilers:
+    #
+    # (shamelessly stolen from Qt4-mac, thanks Michael!)
+    # * Some older versions of CLANG do not honor the LIBRARY_PATH
+    # environment variable, which is required for compiling
+    # this port when using MacPorts.  The versions seem to be: MacPorts
+    # CLANG 3.0 or earlier, and Apple CLANG 318.0.61 or older (XCode 4.3.3 and prior).
+    #
+    # See http://code.mythtv.org/trac/ticket/11070
+    # Run-time failures experienced with certain versions of Clang.  Unable to discern cause.
+    # Most recent version of clang seems OK, let's try again
+    
+    compiler.fallback-append apple-gcc-4.2
+    compiler.blacklist-append { clang &lt;= 500.2.79 } \
+        macports-clang*
+    
+    # Clear all MacPorts flags...MythTV is smart enough to set up its own.
+    # (ala qt4-mac/Portfile)
+    configure.cflags
+    configure.cppflags
+    configure.cxxflags
+    configure.objcflags
+    configure.ldflags
+    
+    configure.universal_cflags
+    configure.universal_cppflags
+    configure.universal_cxxflags
+    configure.universal_ldflags
+    
+    configure.cc_archflags
+    configure.cxx_archflags
+    configure.ld_archflags
+    
+    # make pkg-config act like on Linux, no '-I/opt/local/include' in cflags
+    configure.env-append    PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include
+    
+    configure.dir       ${worksrcpath}/mythtv
+    configure.args      --compile-type=release \
+                        --qmake=${qt_qmake_cmd} \
+                        --cc=${configure.cc} \
+                        --cxx=${configure.cxx} \
+                        --extra-ldflags='-framework ApplicationServices' \
+                        --python=${pythonbin} \
+                        --disable-mythlogserver \
+                        --disable-ceton \
+                        --disable-firewire \
+                        --disable-audio-jack --disable-indev=jack \
+                        --disable-audio-pulseoutput \
+                        --disable-gnutls \
+                        --disable-libpulse \
+                        --disable-libvpx \
+                        --disable-libxcb \
+                        --disable-libxvid \
+                        --disable-lzma \
+                        --disable-openssl \
+                        --disable-qtdbus \
+                        --disable-sdl \
+                        --disable-systemd_notify \
+                        --disable-videotoolbox \
+                        --disable-xlib \
+                        --disable-xrandr \
+                        --disable-xv \
+                        --enable-iconv \
+                        --enable-fft \
+                        --enable-libbluray \
+                        --enable-libcrypto \
+                        --enable-libmp3lame \
+                        --enable-libass \
+                        --enable-libx264 --enable-libfaac --enable-nonfree \
+                        --enable-libx265 \
+                        --enable-securetransport \
+                        --enable-vbox \
+                        --enable-vda \
+                        --enable-zlib
+    
+    # VideoToolBox: Myth does not currently use this acceleration API even though the
+    # underlying ffmpeg does.  Maybe someday...
+    
+    # --extra-ldflags should not be necessary, see
+    # https://code.mythtv.org/trac/ticket/12596
+    
+    if {${configure.ccache} != &quot;yes&quot;} {
+        configure.args-append --disable-ccache
+    }
+    
+    if {${configure.distcc} != &quot;yes&quot;} {
+        configure.args-append --disable-distcc
+    }
</ins><span class="cx"> 
</span><del>-        set nick            mythtv
-        set mythtvhomedir   ${prefix}/var/mythtvuser
-        set mythtvlogdir    ${prefix}/var/log/${nick}${majorversion}
-        set mythtvrundir    ${prefix}/var/run/${nick}${majorversion}
-        set mythtvpidfile   ${mythtvrundir}/${nick}
-        set plistdir        ${prefix}/Library/LaunchDaemons
-        set plistlabel      org.mythtv.mythbackend
-        set plistfile       org.mythtv.mythbackend.plist
-        set mythverstring   v0${majorversion}${minorversion}-${shorthash}-MacPorts
-        set mythbranch      fixes/0${majorversion}
-        set applescripts    {Myth_Frontend Myth_Filldatabase Myth_Setup Myth_Stop_Start}
-        set mysqlver        mariadb
</del><ins>+    build.dir           ${worksrcpath}/mythtv
+    # make Myth's copy of ffmpeg build verbosely
+    build.env-append    V=1
+    
+    pre-build {
+        # workaround broken linker flags, see
+        # https://trac.macports.org/ticket/40136
+        # 0.28, problem sometimes appears with ffserver, other ffmpeg libs OK?!?        #reinplace -locale C &quot;s|LDFLAGS=  |LDFLAGS= -headerpad_max_install_names |&quot; ${worksrcpath}/mythtv/external/FFmpeg/config.mak
+        reinplace -locale C &quot;s|LDFLAGS-ffserver=|LDFLAGS-ffserver=-headerpad_max_install_names |&quot; ${worksrcpath}/mythtv/external/FFmpeg/config.mak
+    
+        ui_info &quot;Build Myth AppleScript helper apps&quot;
+        # Compile applescrips
+        foreach {applescript} ${applescripts} {
+            system &quot;osacompile -x -o ${worksrcpath}/macports/${applescript}.app ${worksrcpath}/macports/${applescript}.applescript&quot;
+        }
+        # Myth custom icon for a couple of the applets
+        copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${worksrcpath}/macports/Myth_Frontend.app/Contents/Resources/applet.icns
+        copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${worksrcpath}/macports/Myth_Stop_Start.app/Contents/Resources/applet.icns
+    }
+    
+    # All tests fail with messages like:
+    # dyld: Library not loaded: @rpath//opt/local/lib/libmythbase-0.27.0.dylib
+    #   Referenced from: /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv-core-devel/mythtv-core.27/work/mythtv-8b542e20/mythtv/libs/././libmyth/test/test_audioconvert/test_audioconvert
+    #   Reason: image not found
+    # ../programs/scripts/unittests.sh: line 15: 41587 Trace/BPT trap          ./$RUNNABLE
+    # Need to investigate why rpath not working under MacPorts...
+    
+    # test.run            yes
+    
+    destroot.destdir    INSTALL_ROOT=${destroot}
+    
+    post-destroot {
+    # make some directories myth will need
+        xinstall -d -m 755 ${destroot}${mythtvhomedir}
+        xinstall -d -m 777 ${destroot}${mythtvlogdir}
+        xinstall -d -m 777 ${destroot}${mythtvlogdir}/old
+        xinstall -d -m 755 ${destroot}${prefix}/etc/logrotate.d
+        xinstall -d -m 744 ${destroot}${mythtvrundir}
+    
+        destroot.keepdirs \
+            ${destroot}${mythtvhomedir} \
+            ${destroot}${mythtvlogdir} \
+            ${destroot}${mythtvlogdir}/old \
+            ${destroot}${mythtvrundir}
+    
+        # move mythwikiscripts to a more useful spot
+        move ${destroot}${frameworks_dir}/Python.framework/Versions/${pythonbranch}/bin/mythwikiscripts \
+                ${destroot}${prefix}/bin/
</ins><span class="cx"> 
</span><del>-        depends_lib         port:bzip2 \
-                                                port:libass \
-                                                port:libcdio \
-                                                port:libdvdcss \
-                                                port:libiconv \
-                                                port:libxml2 \
-                                                port:fftw-3-single \
-                                                port:freetype \
-                                                port:lame \
-                                                port:faac \
-                                                port:x264 \
-                                                path:lib/libssl.dylib:openssl \
-                                                port:qt4-mac \
-                                                port:qt4-mac-${mysqlver}-plugin \
-                                                port:taglib \
-                                                port:zlib \
-                                                port:${pymodver}-mysql \
-                                                port:${pymodver}-lxml \
-                                                port:${pymodver}-urlgrabber \
-                                                port:${perlmodver}-dbd-mysql \
-                                                port:${perlmodver}-http-request-ascgi \
-                                                port:${perlmodver}-lwp-useragent-determined \
-                                                port:${perlmodver}-io-socket-inet6 \
-                                                port:${perlmodver}-datemanip \
-                                                port:${perlmodver}-net-upnp
-
-        depends_build       port:yasm  port:pkgconfig
-
-        conflicts           mythtv-core.25 mythtv-core.26
-
-        depends_run         port:logrotate
-
-        pre-fetch {
-                if {${os.platform} eq &quot;darwin&quot; &amp;&amp; ${os.major} &lt; 9} {
-                        ui_error &quot;${name} ${version} requires Mac OS X 10.5 or greater.&quot;
-                        return -code error &quot;incompatible Mac OS X version&quot;
-                }
-        }
-
-        # revert rpath linking stuff as it is non-functional in MacPorts
-        patchfiles-append   patch-rpath_linking.diff
-
-        post-extract {
-                file mkdir ${worksrcpath}/macports
-                foreach {applescript} ${applescripts} {
-                        copy ${filespath}/${applescript}.applescript ${worksrcpath}/macports/${applescript}.applescript
-                }
-                copy ${filespath}/${plistfile} ${worksrcpath}/macports/${plistfile}
-                copy ${filespath}/logrotate.conf ${worksrcpath}/macports/logrotate.conf
-                copy ${filespath}/logrotate.mythtv ${worksrcpath}/macports/logrotate.mythtv
-                copy ${filespath}/my.cnf ${worksrcpath}/macports/my.cnf
-                copy ${filespath}/mythconverg_init.sql ${worksrcpath}/macports/mythconverg_init.sql
-        }
-
-        post-patch {
-                set sedPath ${worksrcpath}/mythtv/
-                ui_info &quot;Make Myth utils use MacPorts Perl&quot;
-                reinplace -locale C &quot;s|check_cmd perl -e|check_cmd ${perlbin} -e|&quot; \
-                        ${sedPath}configure
-
-                reinplace -locale C &quot;s|#!/usr/bin/env perl|#!${perlbin}|&quot; \
-                        ${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl  \
-                        ${sedPath}programs/scripts/internetcontent/twit.tv.pl
-
-                reinplace -locale C &quot;s|#!/usr/bin/perl|#!${perlbin}|&quot; \
-                        ${sedPath}bindings/perl/Makefile.PL  \
-                        ${sedPath}bindings/perl/MythTV.pm  \
-                        ${sedPath}contrib/maintenance/optimize_mythdb.pl  \
-                        ${sedPath}contrib/user_jobs/mythlink.pl  \
-                        ${sedPath}programs/scripts/database/mythconverg_backup.pl \
-                        ${sedPath}programs/scripts/database/mythconverg_restore.pl
-
-                reinplace -locale C &quot;s|/usr/local/bin|${prefix}/lib/${mysqlver}/bin|&quot;  \
-                        ${sedPath}programs/scripts/database/mythconverg_backup.pl \
-                        ${sedPath}programs/scripts/database/mythconverg_restore.pl
-
-                ui_info &quot;Record Myth version strings&quot;
-                reinplace -locale C &quot;s#\${SOURCE_VERSION}#${mythverstring}#g&quot; ${sedPath}version.sh
-                reinplace -locale C &quot;s#\${BRANCH}#${mythbranch}#g&quot; ${sedPath}version.sh
-
-                ui_info &quot;Make Myth scripts use MacPorts Python  &lt;&lt;&lt;&lt;&quot;
-                # Hack to install Python bindings in ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
-                reinplace -locale C &quot;s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\&quot;${frameworks_dir}/Python.framework/Versions/2.7\&quot;|&quot; \
-                        ${sedPath}/bindings/python/Makefile
-                reinplace -locale C &quot;s|/usr/local|${prefix}|&quot; ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
-                fs-traverse f ${sedPath}/bindings/python/ {
-                        if [string equal [ file extension ${f} ] &quot;.py&quot; ] {
-                                reinplace -locale C &quot;s|^#! */usr/bin/env python\$|#!${pythonbin}|&quot; ${f}
-                        }
-                }
-                fs-traverse f ${sedPath}/programs/scripts/ {
-                        if [string equal [ file extension ${f} ] &quot;.py&quot; ] {
-                                reinplace -locale C &quot;s|^#! */usr/bin/env python\$|#!${pythonbin}|&quot; ${f}
-                        }
-                }
-                foreach f [glob -directory ${sedPath}/programs/scripts/hardwareprofile *.py] {
-                # fix even though they're currently non-functional on OS X
-                        reinplace -locale C &quot;s|^#!/usr/bin/python\$|#!${pythonbin}|&quot; ${f}
-                }
-
-                foreach {applescript} ${applescripts} {
-                        reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/${applescript}.applescript
-                        reinplace -locale C &quot;s|@APPLICATIONS_DIR@|${applications_dir}|&quot; ${worksrcpath}/macports/${applescript}.applescript
-                        reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|&quot; ${worksrcpath}/macports/${applescript}.applescript
-                        reinplace -locale C &quot;s|@MYTHTVPIDFILE@|${mythtvpidfile}|&quot; ${worksrcpath}/macports/${applescript}.applescript
-                }
-                reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/${plistfile}
-                reinplace -locale C &quot;s|@PLISTLABEL@|${plistlabel}|g&quot; ${worksrcpath}/macports/${plistfile}
-                reinplace -locale C &quot;s|@PYTHONVER@|${pythonver}|&quot; ${worksrcpath}/macports/${plistfile}
-                reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|&quot; ${worksrcpath}/macports/${plistfile}
-                reinplace -locale C &quot;s|@MYTHTVPIDFILE@|${mythtvpidfile}|&quot; ${worksrcpath}/macports/${plistfile}
-                reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/logrotate.conf
-                reinplace -locale C &quot;s|@PREFIX@|${prefix}|g&quot; ${worksrcpath}/macports/my.cnf
-                reinplace -locale C &quot;s|@MYTHTVLOGDIR@|${mythtvlogdir}|g&quot; ${worksrcpath}/macports/logrotate.mythtv
-                reinplace -locale C &quot;s|xxxyyyzzz|${mythtvpidfile}|&quot; ${worksrcpath}/mythtv/configure
-        }
-        # Block various compilers:
-        #
-        # (shamelessly stolen from Qt4-mac, thanks Michael!)
-        # * Some older versions of CLANG do not honor the LIBRARY_PATH
-        # environment variables, which is required for compiling
-        # this port when using MacPorts.  The versions seem to be: MacPorts
-        # CLANG 3.0 or earlier, and Apple CLANG 318.0.61 or older (XCode 4.3.3 and prior).
-        #
-        # See http://code.mythtv.org/trac/ticket/11070
-        # Run-time failures experienced with certain versions of Clang.  Unable to discern cause.
-        # Most recent version of clang seems OK, let's try again
-
-        compiler.fallback-append apple-gcc-4.2
-        compiler.blacklist-append { clang &lt;= 500.2.79 } \
-                macports-clang*
-
-        # Clear all MacPorts flags...MythTV is smart enough to set up its own.
-        # (ala qt4-mac/Portfile)
-        configure.cflags
-        configure.cppflags
-        configure.cxxflags
-        configure.objcflags
-        configure.ldflags
-
-        configure.universal_cflags
-        configure.universal_cppflags
-        configure.universal_cxxflags
-        configure.universal_ldflags
-
-        configure.cc_archflags
-        configure.cxx_archflags
-        configure.ld_archflags
-
-        # make pkg-config act like on Linux, no '-I/opt/local/include' in cflags
-        configure.env-append    PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include
-
-        configure.dir       ${worksrcpath}/mythtv
-        configure.args      --compile-type=release \
-                                                --qmake=${qt_qmake_cmd} \
-                                                --cc=${configure.cc} \
-                                                --cxx=${configure.cxx} \
-                                                --python=${pythonbin} \
-                                                --disable-mythlogserver \
-                                                --disable-ceton \
-                                                --disable-firewire \
-                                                --disable-audio-jack --disable-indev=jack \
-                                                --disable-audio-pulse --disable-audio-pulseoutput \
-                                                --disable-audio-oss \
-                                                --disable-libpulse \
-                                                --disable-libvpx --disable-libxvid \
-                                                --disable-qtdbus \
-                                                --disable-sdl \
-                                                --disable-xrandr \
-                                                --disable-xv \
-                                                --enable-libmp3lame \
-                                                --enable-libass \
-                                                --enable-fft \
-                                                --enable-libx264 --enable-libfaac --enable-nonfree
-
-        if {${configure.ccache} != &quot;yes&quot;} {
-                configure.args-append --disable-ccache
-        }
-
-        if {${configure.distcc} != &quot;yes&quot;} {
-                configure.args-append --disable-distcc
-        }
-
-        build.dir           ${worksrcpath}/mythtv
-        # make Myth's copy of ffmpeg build verbosely
-        build.env-append    V=1
-
-        pre-build {
-                # workaround broken linker flags, see
-                # https://trac.macports.org/ticket/40136
-                reinplace -locale C &quot;s|LDFLAGS=  |LDFLAGS= -headerpad_max_install_names |&quot; ${worksrcpath}/mythtv/external/FFmpeg/config.mak
-
-                ui_info &quot;Build Myth AppleScript helper apps&quot;
-                # Compile applescrips
-                foreach {applescript} ${applescripts} {
-                        system &quot;osacompile -x -o ${worksrcpath}/macports/${applescript}.app ${worksrcpath}/macports/${applescript}.applescript&quot;
-                }
-                # Myth custom icon for a couple of the applets
-                copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${worksrcpath}/macports/Myth_Frontend.app/Contents/Resources/applet.icns
-                copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${worksrcpath}/macports/Myth_Stop_Start.app/Contents/Resources/applet.icns
-        }
-
-        # All tests fail with messages like:
-        # dyld: Library not loaded: @rpath//opt/local/lib/libmythbase-0.27.0.dylib
-        #   Referenced from: /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv-core-devel/mythtv-core.27/work/mythtv-8b542e20/mythtv/libs/././libmyth/test/test_audioconvert/test_audioconvert
-        #   Reason: image not found
-        # ../programs/scripts/unittests.sh: line 15: 41587 Trace/BPT trap          ./$RUNNABLE
-        # Need to investigate why rpath not working under MacPorts...
-
-        # test.run            yes
-
-        destroot.destdir    INSTALL_ROOT=${destroot}
-
-        post-destroot {
-        # make some directories myth will need
-                xinstall -d -m 755 ${destroot}${mythtvhomedir}
-                xinstall -d -m 777 ${destroot}${mythtvlogdir}
-                xinstall -d -m 777 ${destroot}${mythtvlogdir}/old
-                xinstall -d -m 755 ${destroot}${prefix}/etc/logrotate.d
-                xinstall -d -m 744 ${destroot}${mythtvrundir}
-
-                destroot.keepdirs \
-                        ${destroot}${mythtvhomedir} \
-                        ${destroot}${mythtvlogdir} \
-                        ${destroot}${mythtvlogdir}/old \
-                        ${destroot}${mythtvrundir}
-
-        # install logrotate.mythtv
-                xinstall -m 400 ${worksrcpath}/macports/logrotate.mythtv ${destroot}${prefix}/etc/logrotate.d
-
-        # install the launchd plist for the backend
-                ui_info &quot;Installing startupitem/launchd plist...&quot;
-                xinstall -d -m 0755 ${destroot}${plistdir}
-                xinstall ${worksrcpath}/macports/${plistfile} ${destroot}${plistdir}
-
-        # install scripts we want in share/contrib
-                ui_info &quot;Installing share/$name/contrib scripts...&quot;
-
-                xinstall -d -m 755 ${destroot}${prefix}/share/${nick}/database
-                xinstall -d -m 755 ${destroot}${prefix}/share/${nick}/contrib
-
-                xinstall -m 755 \
-                        ${configure.dir}/database/mc.sql \
-                        ${worksrcpath}/macports/mythconverg_init.sql \
-                        ${worksrcpath}/macports/my.cnf \
-                        ${destroot}${prefix}/share/${nick}/database
-                xinstall -m 755 \
-                        ${configure.dir}/contrib/maintenance/optimize_mythdb.pl \
-                        ${configure.dir}/contrib/user_jobs/mythlink.pl \
-                        ${destroot}${prefix}/share/${nick}/contrib
-
-        # install some simple Applescripts to launch common myth apps
-                ui_info &quot;Installing Applescript helpers...&quot;
-                # compile the Applescripts
-                xinstall -m 755 -d ${destroot}${applications_dir}/MythTV
-
-                foreach {applescript} ${applescripts} {
-                        copy ${worksrcpath}/macports/${applescript}.app ${destroot}${applications_dir}/MythTV/${applescript}.app
-                }
-
-        # Myth custom icon for a couple of the applets
-                copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Frontend.app/Contents/Resources/applet.icns
-                copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Stop_Start.app/Contents/Resources/applet.icns
-
-        # Fix up library entries in dylibs and executables ...
-        # need to loop on arch's if/when build universal ?!?
-                set libdir ${prefix}/lib
-
-                ui_info &quot;Correcting library entries in dylibs...&quot;
-
-                foreach {dylib} [glob -types f -tails -directory ${destroot}${libdir} *.dylib] {
-                        # glob gives us both files and links to files
-                        if { [file type ${destroot}${libdir}/${dylib}] == &quot;file&quot; } {
-                                ui_debug &quot;... for ${dylib}&quot;
-                                system &quot;install_name_tool -id ${libdir}/${dylib} ${destroot}${libdir}/${dylib}&quot;
-
-                                set otool [lrange [split [exec otool -L ${destroot}${libdir}/${dylib}] \n] 1 end]
-
-                                foreach {otoolentry} ${otool} {
-                                        # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
-                                        # assume anything without a leading slash needs fixing
-                                        set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-                                        if  { ${firstchar} != &quot;/&quot; }  {
-                                                set lib [lindex ${otoolentry} 0]
-                                                ui_debug &quot;      Change ${lib}  to  ${libdir}/[file tail ${lib}]&quot;
-                                                system &quot;install_name_tool -change \
-                                                        ${lib} \
-                                                        ${libdir}/[file tail ${lib}] \
-                                                        ${destroot}${libdir}/${dylib}&quot;
-                                        }
-                                }
-                        }
-                }
-                set bindir ${prefix}/bin
-                ui_info &quot;Correcting library entries in executables...&quot;
-
-                foreach {prog} [glob -types f -tails -directory ${destroot}${bindir} *] {
-                        # glob gives us files and links to files but should be no links in bin dir
-                        ui_debug &quot;... for ${prog}&quot;
-
-                        set otool [lrange [split [exec otool -L ${destroot}${bindir}/${prog}] \n] 1 end]
-
-                        foreach {otoolentry} ${otool} {
-                                # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
-                                # assume anything without a leading slash needs fixing
-                                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-                                if  { ${firstchar} != &quot;/&quot; }  {
-                                        set lib [lindex ${otoolentry} 0]
-                                        ui_debug &quot;      Change ${lib} to ${libdir}/[file tail ${lib}]&quot;
-                                        system &quot;install_name_tool -change \
-                                                ${lib} \
-                                                ${libdir}/[file tail ${lib}] \
-                                                ${destroot}${bindir}/${prog}&quot;
-                                }
-                        }
-                }
-
-        # fix lib entries in filters
-                set fltdir ${prefix}/lib/mythtv/filters
-                set liblist [glob -types f -tails -directory ${destroot}${libdir} -- *.dylib]
-                ui_info &quot;Correcting library entries in plugins...&quot;
-
-                foreach {flt} [glob -types f -tails -directory ${destroot}${fltdir} *] {
-                        # glob gives us files and links to files but should be no links in filters dir
-                        ui_debug &quot;... for ${flt}&quot;
-
-                        set otool [lrange [split [exec otool -L ${destroot}${fltdir}/${flt}] \n] 1 end]
-
-                        foreach {otoolentry} ${otool} {
-                                # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
-                                # assume anything without a leading slash needs fixing
-                                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-                                if  { ${firstchar} != &quot;/&quot; }  {
-                                        set lib [lindex ${otoolentry} 0]
-                                        if { [ lsearch $liblist ${lib} ] &gt; 0 } {
-                                                set goodprefix ${libdir}
-                                        } else {
-                                                set goodprefix ${fltdir}
-                                        }
-                                        ui_debug &quot;      Change ${lib} to ${goodprefix}/[file tail ${lib}]&quot;
-                                        system &quot;install_name_tool -change \
-                                                ${lib} \
-                                                ${goodprefix}/[file tail ${lib}] \
-                                                ${destroot}${fltdir}/${flt}&quot;
-                                }
-                        }
-                }
-        }
-
-        post-activate {
-                # make logrotate ready to go
-                if {![file exists ${prefix}/etc/logrotate.conf]} {
-                        file copy ${destroot}logrotate.conf ${prefix}/etc/logrotate.conf
-                }
-                # delete leftover file, if any
-                if [file exists /Library/LaunchDaemons/${plistfile}] {
-                        file delete -force /Library/LaunchDaemons/${plistfile}
-                }
-                # The startupitem.install keyword does not exist in MacPorts &lt; 2.1.
-                if {![info exists startupitem.install]} {
-                        set startupitem.install yes
-                }
-                # If &quot;startupitem.install&quot; is set to &quot;no&quot; in macports.conf then do not link.
-                if {${startupitem.install} != &quot;no&quot;} {
-                        ln -s ${plistdir}/${plistfile} /Library/LaunchDaemons
-                }
-        }
-
-        pre-deactivate {
-                 file delete -force ${plistdir}/${plistfile}
-        }
-
-        notes &quot;############################################################################
-        #
-        # See http://www.mythtv.org/wiki/Myth_for_Mac_with_MacPorts for information
-        # essential to finishing the initial installation of MythTV!
-        #
-        # NB -
-        # For troubleshooting, all Myth-related logs are stored in
-        # ${mythtvlogdir}
-        #
-        ############################################################################&quot;
</del><ins>+    # install logrotate.mythtv
+        xinstall -m 400 ${worksrcpath}/macports/logrotate.mythtv ${destroot}${prefix}/etc/logrotate.d
+    
+    # install the launchd plist for the backend
+        ui_info &quot;Installing startupitem/launchd plist...&quot;
+        xinstall -d -m 0755 ${destroot}${plistdir}
+        xinstall ${worksrcpath}/macports/${plistfile} ${destroot}${plistdir}
+    
+    # install scripts we want in share/contrib
+        ui_info &quot;Installing share/$name/contrib scripts...&quot;
+    
+        xinstall -d -m 755 ${destroot}${prefix}/share/${nick}/database
+        xinstall -d -m 755 ${destroot}${prefix}/share/${nick}/contrib
+    
+        xinstall -m 755 \
+            ${configure.dir}/database/mc.sql \
+            ${worksrcpath}/macports/mythconverg_init.sql \
+            ${worksrcpath}/macports/my.cnf \
+            ${destroot}${prefix}/share/${nick}/database
+        xinstall -m 755 \
+            ${configure.dir}/contrib/maintenance/optimize_mythdb.pl \
+            ${configure.dir}/contrib/user_jobs/mythlink.pl \
+            ${destroot}${prefix}/share/${nick}/contrib
+    
+    # install some simple Applescripts to launch common myth apps
+        ui_info &quot;Installing Applescript helpers...&quot;
+        # compile the Applescripts
+        xinstall -m 755 -d ${destroot}${applications_dir}/MythTV
+    
+        foreach {applescript} ${applescripts} {
+            copy ${worksrcpath}/macports/${applescript}.app ${destroot}${applications_dir}/MythTV/${applescript}.app
+        }
+    
+    # Myth custom icon for a couple of the applets
+        copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Frontend.app/Contents/Resources/applet.icns
+        copy -force ${configure.dir}/programs/mythfrontend/mythfrontend.icns ${destroot}${applications_dir}/MythTV/Myth_Stop_Start.app/Contents/Resources/applet.icns
+    
+    # Fix up library entries in dylibs and executables ...
+    # need to loop on arch's if/when build universal ?!?
+        set libdir ${prefix}/lib
+    
+        ui_info &quot;Correcting library entries in dylibs...&quot;
+    
+        foreach {dylib} [glob -types f -tails -directory ${destroot}${libdir} *.dylib] {
+            # glob gives us both files and links to files
+            if { [file type ${destroot}${libdir}/${dylib}] == &quot;file&quot; } {
+                ui_debug &quot;... for ${dylib}&quot;
+                system &quot;install_name_tool -id ${libdir}/${dylib} ${destroot}${libdir}/${dylib}&quot;
+    
+                set otool [lrange [split [exec otool -L ${destroot}${libdir}/${dylib}] \n] 1 end]
+    
+                foreach {otoolentry} ${otool} {
+                    # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
+                    # assume anything without a leading slash needs fixing
+                    set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                    if  { ${firstchar} != &quot;/&quot; }  {
+                        set lib [lindex ${otoolentry} 0]
+                        ui_debug &quot;      Change ${lib}  to  ${libdir}/[file tail ${lib}]&quot;
+                        system &quot;install_name_tool -change \
+                            ${lib} \
+                            ${libdir}/[file tail ${lib}] \
+                            ${destroot}${libdir}/${dylib}&quot;
+                    }
+                }
+            }
+        }
+        set bindir ${prefix}/bin
+        ui_info &quot;Correcting library entries in executables...&quot;
+    
+        foreach {prog} [glob -types f -tails -directory ${destroot}${bindir} *] {
+            # glob gives us files and links to files but should be no links in bin dir
+            ui_debug &quot;... for ${prog}&quot;
+    
+            set otool [lrange [split [exec otool -L ${destroot}${bindir}/${prog}] \n] 1 end]
+    
+            foreach {otoolentry} ${otool} {
+                # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
+                # assume anything without a leading slash needs fixing
+                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                if  { ${firstchar} != &quot;/&quot; }  {
+                    set lib [lindex ${otoolentry} 0]
+                    ui_debug &quot;      Change ${lib} to ${libdir}/[file tail ${lib}]&quot;
+                    system &quot;install_name_tool -change \
+                        ${lib} \
+                        ${libdir}/[file tail ${lib}] \
+                        ${destroot}${bindir}/${prog}&quot;
+                }
+            }
+        }
+    
+    # fix lib entries in filters
+        set fltdir ${prefix}/lib/mythtv/filters
+        set liblist [glob -types f -tails -directory ${destroot}${libdir} -- *.dylib]
+        ui_info &quot;Correcting library entries in plugins...&quot;
+    
+        foreach {flt} [glob -types f -tails -directory ${destroot}${fltdir} *] {
+            # glob gives us files and links to files but should be no links in filters dir
+            ui_debug &quot;... for ${flt}&quot;
+    
+            set otool [lrange [split [exec otool -L ${destroot}${fltdir}/${flt}] \n] 1 end]
+    
+            foreach {otoolentry} ${otool} {
+                # fix entries like &quot;libmythswscale.dylib&quot; to &quot;${prefix}/lib/libmythswscale.dylib&quot;
+                # assume anything without a leading slash needs fixing
+                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                if  { ${firstchar} != &quot;/&quot; }  {
+                    set lib [lindex ${otoolentry} 0]
+                    if { [ lsearch $liblist ${lib} ] &gt; 0 } {
+                        set goodprefix ${libdir}
+                    } else {
+                        set goodprefix ${fltdir}
+                    }
+                    ui_debug &quot;      Change ${lib} to ${goodprefix}/[file tail ${lib}]&quot;
+                    system &quot;install_name_tool -change \
+                        ${lib} \
+                        ${goodprefix}/[file tail ${lib}] \
+                        ${destroot}${fltdir}/${flt}&quot;
+                }
+            }
+        }
+    }
+    
+    universal_variant           no
+    
+    post-activate {
+        # make logrotate ready to go
+        if {![file exists ${prefix}/etc/logrotate.conf]} {
+            file copy ${destroot}logrotate.conf ${prefix}/etc/logrotate.conf
+        }
+        # delete leftover file, if any
+        if [file exists /Library/LaunchDaemons/${plistfile}] {
+            file delete -force /Library/LaunchDaemons/${plistfile}
+        }
+        # The startupitem.install keyword does not exist in MacPorts &lt; 2.1.
+        if {![info exists startupitem.install]} {
+            set startupitem.install yes
+        }
+        # If &quot;startupitem.install&quot; is set to &quot;no&quot; in macports.conf then do not link.
+        if {${startupitem.install} != &quot;no&quot;} {
+            ln -s ${plistdir}/${plistfile} /Library/LaunchDaemons
+        }
+    }
+    
+    pre-deactivate {
+         file delete -force ${plistdir}/${plistfile}
+    }
+    
+    notes &quot;############################################################################
+#
+# See http://www.mythtv.org/wiki/Myth_for_Mac_with_MacPorts for information
+# essential to finishing the initial installation of MythTV!
+#
+# NB -
+# For troubleshooting, all Myth-related logs are stored in
+# ${mythtvlogdir}
+#
+############################################################################&quot;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-subport mythtv-plugins${majorversion} {
</del><ins>+if {$subport eq &quot;mythtv-plugins${majorversion}&quot;} {
</ins><span class="cx">         name                mythtv-plugins${majorversion}
</span><span class="cx">         version             0${majorversion}${minorversion}-Fixes-${lastcommit}
</span><span class="cx"> 
</span><span class="lines">@@ -489,7 +517,8 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        depends_lib         port:mythtv-core${majorversion}
</del><ins>+        #FIXME - uncomment when mythtv-core.28 committed...
+        #depends_lib         port:mythtv-core${majorversion}
</ins><span class="cx">         # NB mythplugins/configure reads ${prefix}/include/mythtv/mythconfig.mak
</span><span class="cx">         # and sets several values from that, including cc and cxx
</span><span class="cx"> 
</span><span class="lines">@@ -511,6 +540,9 @@
</span><span class="cx">                                                 --disable-mythnews \
</span><span class="cx">                                                 --disable-mythweather
</span><span class="cx"> 
</span><ins>+        build.dir           ${worksrcpath}/mythplugins
+        destroot.destdir    INSTALL_ROOT=${destroot}
+
</ins><span class="cx">         if {[variant_isset mythnetvision] || [variant_isset mythweather]} {
</span><span class="cx">         # for both MythNetvision and MythWeather (Canada)
</span><span class="cx">                 depends_lib-append                port:${perlmodver}-perlmagick
</span><span class="lines">@@ -536,16 +568,16 @@
</span><span class="cx">                 depends_lib-append                port:libexif \
</span><span class="cx">                                                                 port:dcraw
</span><span class="cx">                 configure.args-delete        --disable-mythgallery
</span><del>-        #        configure.args-append        --enable-mythgallery
</del><ins>+                configure.args-append        --enable-mythgallery --enable-opengl --enable-new-exif
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         variant mythmusic description {Myth plugin to play and manage music files.} {
</span><span class="cx">                 depends_lib-append                port:libvorbis \
</span><span class="cx">                                                                 port:flac \
</span><span class="cx">                                                                 port:taglib
</span><del>-        #                                                        port:fftw-3  -- included in mythtv-core
</del><ins>+        #                                                        port:cdio port:fftw-3  -- included in mythtv-core
</ins><span class="cx">                 configure.args-delete        --disable-mythmusic
</span><del>-        #        configure.args-append        --enable-mythmusic
</del><ins>+                configure.args-append        --enable-mythmusic --enable-fftw  --enable-cdio
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         variant mythnews description {Check news sources through RSS feeds with this Myth plugin.} {
</span><span class="lines">@@ -564,11 +596,48 @@
</span><span class="cx">                 configure.args-delete        --disable-mythweather
</span><span class="cx">         #        configure.args-append        --enable-mythweather
</span><span class="cx">         }
</span><ins>+    default_variants +mythnetvision +mythbrowser +mythnews +mythgallery +mythmusic \
+        +mythweather +mytharchive

+}
</ins><span class="cx"> 
</span><del>-        default_variants +mythnetvision +mythbrowser +mythnews +mythgallery +mythmusic +mythweather +mytharchive
</del><ins>+if {$subport eq &quot;mythtv${majorversion}&quot;} {
+    version             0${majorversion}${minorversion}-Fixes
+    description         installs complete MythTV system
+    long_description    \
+    Installs a complete MythTV system including the frontend, backend, and database \
+    server software plus MythWeb
</ins><span class="cx"> 
</span><del>-        build.dir           ${worksrcpath}/mythplugins
</del><ins>+        depends_lib         port:mythtv-plugins${majorversion} \
+                        port:mythweb${majorversion} \
</ins><span class="cx"> 
</span><del>-        destroot.destdir    INSTALL_ROOT=${destroot}
</del><ins>+    depends_run         port:mariadb-server
+    
+    build {}
+    destroot {
+        xinstall -m 0755 ${filespath}/README_mythtv${majorversion}_MacPorts.txt \
+            ${destroot}${prefix}/share/mythtv-pkg
+    }
+}
</ins><span class="cx"> 
</span><ins>+if {$subport eq &quot;mythtv-pkg${majorversion}&quot;} {
+    version             0${majorversion}${minorversion}-Fixes
+    description         creates all-in-one installer for MythTV
+    long_description    \
+    mythtv-pkg${majorversion} is for creating an all-in-one installer package, ONLY. \
+    Please use mythtv${majorversion} unless you are creating an installer.
+
+    master_sites
+
+    depends_run         port:mythtv${majorversion} \
+    
+    depends_run         port:MacPorts_daemondo
+    
+    use_configure no
+    build {}
+    destroot {
+        xinstall -m 0755 ${filespath}/README_mythtv-pkg${majorversion}_MacPorts.txt \
+            ${destroot}${prefix}/share/mythtv-pkg
+    }
+
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkdportsmultimediamythtv28filesREADME_mythtvpkg28_MacPortstxt"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt (0 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt                                (rev 0)
+++ trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+See http://www.mythtv.org/wiki/MacPorts
+
</ins></span></pre></div>
<a id="trunkdportsmultimediamythtv28filesREADME_mythtv28_MacPortstxt"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt (0 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt                                (rev 0)
+++ trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+See http://www.mythtv.org/wiki/MacPorts
+
</ins></span></pre></div>
<a id="trunkdportsmultimediamythtv28filespatchconfigure_opengl_checkdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff (0 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff                                (rev 0)
+++ trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+--- mythtv/configure.prev        2016-08-17 13:26:45.000000000 -0400
++++ mythtv/configure        2016-08-17 13:27:12.000000000 -0400
+@@ -6819,9 +6819,7 @@
+                              { check_cpp_condition &quot;OpenCL/cl.h&quot; &quot;defined(CL_VERSION_1_2)&quot; ||
+                                check_cpp_condition &quot;CL/cl.h&quot; &quot;defined(CL_VERSION_1_2)&quot; ||
+                                die &quot;ERROR: opencl must be installed and version must be 1.2 or compatible&quot;; }
+-enabled opengl            &amp;&amp; { check_lib GL/glx.h glXGetProcAddress &quot;-lGL&quot; ||
+-                               check_lib2 windows.h wglGetProcAddress &quot;-lopengl32 -lgdi32&quot; ||
+-                               check_lib2 OpenGL/gl3.h glGetError &quot;-Wl,-framework,OpenGL&quot; ||
++enabled opengl            &amp;&amp; { check_lib2 OpenGL/gl3.h glGetError &quot;-Wl,-framework,OpenGL&quot; ||
+                                check_lib2 ES2/gl.h glGetError &quot;-isysroot=${sysroot} -Wl,-framework,OpenGLES&quot; ||
+                                check_lib2 GLES/gl.h glGetError &quot;-Wl,-framework,OpenGLES&quot; ||
+                                { check_lib2 GLES2/gl2.h glGetError &quot;-lGLESv2&quot; &amp;&amp;
</ins></span></pre></div>
<a id="trunkdportsmultimediamythtv28filespatchconfigure_verbositydiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff (0 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff                                (rev 0)
+++ trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+--- mythtv/configure.orig        2016-01-12 20:12:09.000000000 -0500
++++ mythtv/configure        2016-01-12 20:34:32.000000000 -0500
+@@ -7739,6 +7739,7 @@
+   echo &quot;OpenGL video              ${opengl_video-no}&quot;
+   if test x&quot;$target_os&quot; = x&quot;darwin&quot; ; then
+     echo &quot;VDA support               ${vda-no}&quot;
++    echo &quot;VideoToolBox support      ${videotoolbox-no}&quot;
+   fi
+   if test x&quot;$target_os&quot; = x&quot;mingw32&quot; ; then
+     echo &quot;Windows (Direct3D)        yes&quot;
+@@ -7750,16 +7751,22 @@
+ fi

+ echo &quot;# Misc Features&quot;
++echo &quot;Frontend                  ${frontend-no}&quot;
++echo &quot;Backend                   ${backend-no}&quot;
++echo &quot;mythlogserver             ${mythlogserver-no}&quot;
+ echo &quot;multi threaded libavcodec ${threads-no}&quot;
+ if enabled frontend; then
+   echo &quot;libxml2 support           ${libxml2-no} [$libxml2_path]&quot;
+ fi
+ echo &quot;libdns_sd (Bonjour)       ${libdns_sd-no}&quot;
+ echo &quot;libcrypto                 ${libcrypto-no}&quot;
+-echo &quot;Frontend                  ${frontend-no}&quot;
+-echo &quot;Backend                   ${backend-no}&quot;
++  if test x&quot;$target_os&quot; = x&quot;darwin&quot; ; then
++    echo &quot;TLS -&quot;
++    echo &quot;OpenSSL                   ${tls_openssl_protocol-no}&quot;
++    echo &quot;gnutls                    ${tls_gnutls_protocol-no}&quot;
++    echo &quot;Secure Transport          ${tls_securetransport_protocol-no}&quot;
++  fi
+ echo &quot;OpenGL ES 2.0             ${opengles-no}&quot;
+-echo &quot;mythlogserver             ${mythlogserver-no}&quot;
+ echo &quot;BD-J (Bluray java)        ${bdjava-no}&quot;
+ echo &quot;BD-J type                 ${bdj_type}&quot;
+ echo &quot;systemd_notify            ${systemd_notify-no}&quot;
+@@ -7779,6 +7787,7 @@
+ echo &quot;faac                      ${libfaac-no}&quot;
+ echo &quot;xvid                      ${libxvid-no}&quot;
+ echo &quot;x264                      ${libx264-no}&quot;
++echo &quot;x265 (HEVC)               ${libx265-no}&quot;
+ echo &quot;vpx                       ${libvpx-no}&quot;
+ echo &quot;SDL                       ${sdl-no}&quot;
+ echo &quot;&quot;
</ins></span></pre></div>
<a id="trunkdportsmultimediamythtv28filespatchdvdnav_include_pathdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff (0 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff                                (rev 0)
+++ trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+--- mythtv/libs/libmythtv/libmythtv.pro.orig        2016-08-06 13:50:29.000000000 -0400
++++ mythtv/libs/libmythtv/libmythtv.pro        2016-08-06 13:52:06.000000000 -0400
+@@ -258,8 +258,8 @@
+ #DVD stuff
+ DEPENDPATH  += ../../external/libmythdvdnav/
+ DEPENDPATH  += ../../external/libmythdvdnav/dvdread # for dvd_reader.h &amp; dvd_input.h
+-QMAKE_CXXFLAGS += -isystem ../../external/libmythdvdnav/dvdnav
+-QMAKE_CXXFLAGS += -isystem ../../external/libmythdvdnav/dvdread
++INCLUDEPATH += ../../external/libmythdvdnav/dvdnav
++INCLUDEPATH += ../../external/libmythdvdnav/dvdread

+ !win32-msvc*:POST_TARGETDEPS += ../../external/libmythdvdnav/libmythdvdnav-$${MYTH_LIB_EXT}

+
+--- mythtv/programs/programs-libs.pro.orig        2016-08-06 13:54:51.000000000 -0400
++++ mythtv/programs/programs-libs.pro        2016-08-06 13:56:03.000000000 -0400
+@@ -2,8 +2,8 @@
+ INCLUDEPATH +=  ../../libs/libmythtv ../../external/FFmpeg
+ INCLUDEPATH += ../../libs/libmythupnp ../../libs/libmythui ../../libs/libmythmetadata
+ INCLUDEPATH += ../../libs/libmythlivemedia ../../libs/libmythbase
+-QMAKE_CXXFLAGS += -isystem ../../external/libmythdvdnav/dvdnav
+-QMAKE_CXXFLAGS += -isystem ../../external/libmythdvdnav/dvdread
++INCLUDEPATH += ../../external/libmythdvdnav/dvdnav
++INCLUDEPATH += ../../external/libmythdvdnav/dvdread
+ INCLUDEPATH += ../../external/libmythbluray
+ INCLUDEPATH += ../../external/libmythsoundtouch
+ INCLUDEPATH += ../../external/libudfread
</ins></span></pre></div>
<a id="trunkdportsmultimediamythtv28filespatchrpath_linkingdiff"></a>
<div class="modfile"><h4>Modified: trunk/dports/multimedia/mythtv.28/files/patch-rpath_linking.diff (151635 => 151637)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/multimedia/mythtv.27/files/patch-rpath_linking.diff        2016-08-18 23:18:06 UTC (rev 151635)
+++ trunk/dports/multimedia/mythtv.28/files/patch-rpath_linking.diff        2016-08-19 01:04:23 UTC (rev 151637)
</span><span class="lines">@@ -1,10 +1,9 @@
</span><span class="cx"> --- mythtv/configure.orig        2013-09-18 17:28:07.000000000 -0400
</span><span class="cx"> +++ mythtv/configure        2013-09-19 14:52:56.000000000 -0400
</span><del>-@@ -4126,9 +4126,13 @@
</del><ins>+@@ -5231,8 +5231,13 @@
</ins><span class="cx">          ###### Standard ffmpeg configure stuff follows:
</span><del>-         gas=&quot;gas-preprocessor.pl $cc&quot;
</del><span class="cx">          enabled ppc &amp;&amp; add_asflags -force_cpusubtype_ALL
</span><del>--
</del><ins>+ 
</ins><span class="cx"> -        #Need to add @rpath in front of install name so test unit can use non-installed lib
</span><span class="cx"> -        SHFLAGS='-headerpad_max_install_names -dynamiclib -Wl,-single_module -Wl,-install_name,@rpath/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
</span><span class="cx"> +        
</span><span class="lines">@@ -17,23 +16,23 @@
</span><span class="cx">          enabled x86_32 &amp;&amp; append SHFLAGS -Wl,-read_only_relocs,suppress
</span><span class="cx">          strip=&quot;${strip} -x&quot;
</span><span class="cx">          add_ldflags -Wl,-dynamic,-search_paths_first
</span><ins>+
+
</ins><span class="cx"> --- mythtv/settings.pro.orig        2013-09-18 17:28:07.000000000 -0400
</span><span class="cx"> +++ mythtv/settings.pro        2013-09-19 14:57:41.000000000 -0400
</span><del>-@@ -172,10 +172,7 @@
- }
- EXTRA_LIBS += -L$$SRC_PATH_BARE/external/qjson/lib -lmythqjson
</del><ins>+@@ -303,7 +303,6 @@
</ins><span class="cx">  
</span><del>--macx {
--    using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
--    QMAKE_LFLAGS_SONAME  = -Wl,-install_name,@rpath/
--}
-+macx:using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices

</del><span class="cx">  macx {
</span><ins>+     using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
+-    QMAKE_LFLAGS_SONAME  = -Wl,-install_name,@rpath/
</ins><span class="cx">      _RPATH_=&quot;-rpath,&quot;
</span><ins>+ } else {
+     _RPATH_=&quot;-rpath=&quot;
+
+
</ins><span class="cx"> --- mythtv/external/Makefile.orig        2013-09-18 17:28:07.000000000 -0400
</span><span class="cx"> +++ mythtv/external/Makefile        2013-09-19 14:52:56.000000000 -0400
</span><del>-@@ -28,9 +28,6 @@
</del><ins>+@@ -29,9 +29,6 @@
</ins><span class="cx">  
</span><span class="cx">  zeromq-all:        zeromq/Makefile
</span><span class="cx">          ${MAKE} -C zeromq all
</span></span></pre>
</div>
</div>

</body>
</html>