[151637] trunk/dports/multimedia

ctreleaven at macports.org ctreleaven at macports.org
Thu Aug 18 18:04:24 PDT 2016


Revision: 151637
          https://trac.macports.org/changeset/151637
Author:   ctreleaven at macports.org
Date:     2016-08-18 18:04:23 -0700 (Thu, 18 Aug 2016)
Log Message:
-----------
mythtv.28 and friends: create 0.28 versions

Modified Paths:
--------------
    trunk/dports/multimedia/mythtv.28/Portfile
    trunk/dports/multimedia/mythtv.28/files/patch-rpath_linking.diff

Added Paths:
-----------
    trunk/dports/multimedia/mythtv.28/
    trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt
    trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt
    trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff
    trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff
    trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff

Modified: trunk/dports/multimedia/mythtv.28/Portfile
===================================================================
--- 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)
@@ -2,471 +2,499 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           qt5 1.0
 PortGroup           github 1.0
-PortGroup           qt4 1.0
-PortGroup           compiler_blacklist_versions 1.0
+PortGroup           active_variants 1.1
 
-set shorthash       5071dae6
-# set fullhash      5071dae6a5157c862ecd007950d1955c7fa790cc
-set majorversion    .27
-set minorversion    .6
-set lastcommit      20160208
+set shorthash       29d70677
+# set fullhash      29d70677afcd13a3e5041c4d4f373b203bd672f8
+set majorversion    .28
+set minorversion    ""
+set lastcommit      20160807
 github.setup        MythTV mythtv ${shorthash}
-revision            1
+checksums           rmd160  9149425395b73875b53d6a4f59184aedb770ecd4 \
+                    sha256  903f80460acfa33314e0a9269a0b485b82509e03ac1a3a05ab6348989567f78d
+
 name                mythtv${majorversion}
-checksums           rmd160  966d8f960b4708eb2a6ac7ed93bc2d6cc314bb3e \
-                    sha256  d72cb11660d5ec0f9d0cbccf06b080857335b5b0b5aced873004cae3a4f32987
-
 categories          multimedia
 platforms           darwin
 # i386 unsupported -- https://trac.macports.org/ticket/40337
 supported_archs     x86_64
 license             GPL-2
 maintainers         ctreleaven openmaintainer
-
 homepage            http://www.mythtv.org/
 universal_variant   no
 
-livecheck.version       ${majorversion}${minorversion}
-livecheck.regex         "archive/v(0.27\[\\.\\d\]?)${extract.suffix}"
+livecheck.version   ${majorversion}${minorversion}
+livecheck.regex     "archive/v(0${majorversion}\[\\.\\d\]?)${extract.suffix}"
 
-
+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
 set perlver         perl5.22
 set perlbin         ${prefix}/bin/${perlver}
 set perlmodver      p5.22
-set pythonver       python2.7
+set pythonbranch    2.7
+set pythonver       python${pythonbranch}
 set pythonbin       ${prefix}/bin/${pythonver}
 set pymodver        py27
 
-if { ${subport} eq ${name} } {
+if {$subport eq "mythtv-core${majorversion}"} {
+    PortGroup           compiler_blacklist_versions 1.0
+    PortGroup           conflicts_build 1.0
+    
+    name                mythtv-core${majorversion}
+    version             0${majorversion}${minorversion}-Fixes-${lastcommit}
+    revision            1
     description         personal video recorder (PVR) and media centre system
-    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 {}
+    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.
 
-    # 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 "w"]
-        puts ${docfile} "Meta-port for ${name}"
-        puts ${docfile} "${long_description}"
-        close ${docfile}
-    }
-    notes "
-    Please install mythtv-core${majorversion} or mythtv-plugins${majorversion} rather than this meta-port."
-}
+    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
 
-subport mythtv-core${majorversion} {
-	name                mythtv-core${majorversion}
-	version             0${majorversion}${minorversion}-Fixes-${lastcommit}
-    revision            2
+    depends_run         port:logrotate
 
-	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.
+    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 "darwin" && ${os.major} < 13} {
+            ui_error "${name} ${version} requires Mac OS X 10.9 or greater."
+            return -code error "incompatible Mac OS X version"
+        }
+    }
+    
+    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 "Make Myth utils use MacPorts Perl"
+        reinplace -locale C "s|check_cmd perl -e|check_cmd ${perlbin} -e|" \
+            ${sedPath}configure
+    
+        reinplace -locale C "s|#!/usr/bin/env perl|#!${perlbin}|" \
+            ${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl  \
+            ${sedPath}programs/scripts/internetcontent/twit.tv.pl
+    
+        reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \
+            ${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 "s|/usr/local/bin|${prefix}/lib/${mysqlver}/bin|"  \
+            ${sedPath}programs/scripts/database/mythconverg_backup.pl \
+            ${sedPath}programs/scripts/database/mythconverg_restore.pl
+    
+        ui_info "Record Myth version strings"
+        reinplace -locale C "s#\${SOURCE_VERSION}#${mythverstring}#g" ${sedPath}version.sh
+        reinplace -locale C "s#\${BRANCH}#${mythbranch}#g" ${sedPath}version.sh
+    
+        ui_info "Make Myth scripts use MacPorts Python  <<<<"
+        # Hack to install Python bindings in ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
+        reinplace -locale C "s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\"${frameworks_dir}/Python.framework/Versions/${pythonbranch}\"|" \
+            ${sedPath}/bindings/python/Makefile
+        reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
+        fs-traverse f ${sedPath}/bindings/python/ {
+            if [string equal [ file extension ${f} ] ".py" ] {
+                reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
+            }
+        }
+        fs-traverse f ${sedPath}/programs/scripts/ {
+            if [string equal [ file extension ${f} ] ".py" ] {
+                reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
+            }
+        }
+        foreach f [glob -directory ${sedPath}/programs/scripts/hardwareprofile *.py] {
+        # fix even though they're currently non-functional on OS X
+            reinplace -locale C "s|^#!/usr/bin/python\$|#!${pythonbin}|" ${f}
+        }
+    
+        foreach {applescript} ${applescripts} {
+            reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C "s|@APPLICATIONS_DIR@|${applications_dir}|" ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${applescript}.applescript
+            reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${applescript}.applescript
+        }
+        reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C "s|@PLISTLABEL@|${plistlabel}|g" ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C "s|@PYTHONVER@|${pythonver}|" ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${plistfile}
+        reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/logrotate.conf
+        reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/my.cnf
+        reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|g" ${worksrcpath}/macports/logrotate.mythtv
+        reinplace -locale C "s|xxxyyyzzz|${mythtvpidfile}|" ${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 <= 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} != "yes"} {
+        configure.args-append --disable-ccache
+    }
+    
+    if {${configure.distcc} != "yes"} {
+        configure.args-append --disable-distcc
+    }
 
-	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
+    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 "s|LDFLAGS=  |LDFLAGS= -headerpad_max_install_names |" ${worksrcpath}/mythtv/external/FFmpeg/config.mak
+        reinplace -locale C "s|LDFLAGS-ffserver=|LDFLAGS-ffserver=-headerpad_max_install_names |" ${worksrcpath}/mythtv/external/FFmpeg/config.mak
+    
+        ui_info "Build Myth AppleScript helper apps"
+        # Compile applescrips
+        foreach {applescript} ${applescripts} {
+            system "osacompile -x -o ${worksrcpath}/macports/${applescript}.app ${worksrcpath}/macports/${applescript}.applescript"
+        }
+        # 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/
 
-	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 "darwin" && ${os.major} < 9} {
-			ui_error "${name} ${version} requires Mac OS X 10.5 or greater."
-			return -code error "incompatible Mac OS X version"
-		}
-	}
-
-	# 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 "Make Myth utils use MacPorts Perl"
-		reinplace -locale C "s|check_cmd perl -e|check_cmd ${perlbin} -e|" \
-			${sedPath}configure
-
-		reinplace -locale C "s|#!/usr/bin/env perl|#!${perlbin}|" \
-			${sedPath}programs/scripts/internetcontent/topdocumentaryfilm.pl  \
-			${sedPath}programs/scripts/internetcontent/twit.tv.pl
-
-		reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \
-			${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 "s|/usr/local/bin|${prefix}/lib/${mysqlver}/bin|"  \
-			${sedPath}programs/scripts/database/mythconverg_backup.pl \
-			${sedPath}programs/scripts/database/mythconverg_restore.pl
-
-		ui_info "Record Myth version strings"
-		reinplace -locale C "s#\${SOURCE_VERSION}#${mythverstring}#g" ${sedPath}version.sh
-		reinplace -locale C "s#\${BRANCH}#${mythbranch}#g" ${sedPath}version.sh
-
-		ui_info "Make Myth scripts use MacPorts Python  <<<<"
-		# Hack to install Python bindings in ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
-		reinplace -locale C "s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\"${frameworks_dir}/Python.framework/Versions/2.7\"|" \
-			${sedPath}/bindings/python/Makefile
-		reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
-		fs-traverse f ${sedPath}/bindings/python/ {
-			if [string equal [ file extension ${f} ] ".py" ] {
-				reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
-			}
-		}
-		fs-traverse f ${sedPath}/programs/scripts/ {
-			if [string equal [ file extension ${f} ] ".py" ] {
-				reinplace -locale C "s|^#! */usr/bin/env python\$|#!${pythonbin}|" ${f}
-			}
-		}
-		foreach f [glob -directory ${sedPath}/programs/scripts/hardwareprofile *.py] {
-		# fix even though they're currently non-functional on OS X
-			reinplace -locale C "s|^#!/usr/bin/python\$|#!${pythonbin}|" ${f}
-		}
-
-		foreach {applescript} ${applescripts} {
-			reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${applescript}.applescript
-			reinplace -locale C "s|@APPLICATIONS_DIR@|${applications_dir}|" ${worksrcpath}/macports/${applescript}.applescript
-			reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${applescript}.applescript
-			reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${applescript}.applescript
-		}
-		reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/${plistfile}
-		reinplace -locale C "s|@PLISTLABEL@|${plistlabel}|g" ${worksrcpath}/macports/${plistfile}
-		reinplace -locale C "s|@PYTHONVER@|${pythonver}|" ${worksrcpath}/macports/${plistfile}
-		reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|" ${worksrcpath}/macports/${plistfile}
-		reinplace -locale C "s|@MYTHTVPIDFILE@|${mythtvpidfile}|" ${worksrcpath}/macports/${plistfile}
-		reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/logrotate.conf
-		reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/my.cnf
-		reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|g" ${worksrcpath}/macports/logrotate.mythtv
-		reinplace -locale C "s|xxxyyyzzz|${mythtvpidfile}|" ${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 <= 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} != "yes"} {
-		configure.args-append --disable-ccache
-	}
-
-	if {${configure.distcc} != "yes"} {
-		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 "s|LDFLAGS=  |LDFLAGS= -headerpad_max_install_names |" ${worksrcpath}/mythtv/external/FFmpeg/config.mak
-
-		ui_info "Build Myth AppleScript helper apps"
-		# Compile applescrips
-		foreach {applescript} ${applescripts} {
-			system "osacompile -x -o ${worksrcpath}/macports/${applescript}.app ${worksrcpath}/macports/${applescript}.applescript"
-		}
-		# 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 "Installing startupitem/launchd plist..."
-		xinstall -d -m 0755 ${destroot}${plistdir}
-		xinstall ${worksrcpath}/macports/${plistfile} ${destroot}${plistdir}
-
-	# install scripts we want in share/contrib
-		ui_info "Installing share/$name/contrib scripts..."
-
-		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 "Installing Applescript helpers..."
-		# 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 "Correcting library entries in dylibs..."
-
-		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}] == "file" } {
-				ui_debug "... for ${dylib}"
-				system "install_name_tool -id ${libdir}/${dylib} ${destroot}${libdir}/${dylib}"
-
-				set otool [lrange [split [exec otool -L ${destroot}${libdir}/${dylib}] \n] 1 end]
-
-				foreach {otoolentry} ${otool} {
-					# fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
-					# assume anything without a leading slash needs fixing
-					set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-					if  { ${firstchar} != "/" }  {
-						set lib [lindex ${otoolentry} 0]
-						ui_debug "      Change ${lib}  to  ${libdir}/[file tail ${lib}]"
-						system "install_name_tool -change \
-							${lib} \
-							${libdir}/[file tail ${lib}] \
-							${destroot}${libdir}/${dylib}"
-					}
-				}
-			}
-		}
-		set bindir ${prefix}/bin
-		ui_info "Correcting library entries in executables..."
-
-		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 "... for ${prog}"
-
-			set otool [lrange [split [exec otool -L ${destroot}${bindir}/${prog}] \n] 1 end]
-
-			foreach {otoolentry} ${otool} {
-				# fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
-				# assume anything without a leading slash needs fixing
-				set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-				if  { ${firstchar} != "/" }  {
-					set lib [lindex ${otoolentry} 0]
-					ui_debug "      Change ${lib} to ${libdir}/[file tail ${lib}]"
-					system "install_name_tool -change \
-						${lib} \
-						${libdir}/[file tail ${lib}] \
-						${destroot}${bindir}/${prog}"
-				}
-			}
-		}
-
-	# fix lib entries in filters
-		set fltdir ${prefix}/lib/mythtv/filters
-		set liblist [glob -types f -tails -directory ${destroot}${libdir} -- *.dylib]
-		ui_info "Correcting library entries in plugins..."
-
-		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 "... for ${flt}"
-
-			set otool [lrange [split [exec otool -L ${destroot}${fltdir}/${flt}] \n] 1 end]
-
-			foreach {otoolentry} ${otool} {
-				# fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
-				# assume anything without a leading slash needs fixing
-				set firstchar [string range [string trimleft ${otoolentry}] 0 0]
-				if  { ${firstchar} != "/" }  {
-					set lib [lindex ${otoolentry} 0]
-					if { [ lsearch $liblist ${lib} ] > 0 } {
-						set goodprefix ${libdir}
-					} else {
-						set goodprefix ${fltdir}
-					}
-					ui_debug "      Change ${lib} to ${goodprefix}/[file tail ${lib}]"
-					system "install_name_tool -change \
-						${lib} \
-						${goodprefix}/[file tail ${lib}] \
-						${destroot}${fltdir}/${flt}"
-				}
-			}
-		}
-	}
-
-	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 < 2.1.
-		if {![info exists startupitem.install]} {
-			set startupitem.install yes
-		}
-		# If "startupitem.install" is set to "no" in macports.conf then do not link.
-		if {${startupitem.install} != "no"} {
-			ln -s ${plistdir}/${plistfile} /Library/LaunchDaemons
-		}
-	}
-
-	pre-deactivate {
-		 file delete -force ${plistdir}/${plistfile}
-	}
-
-	notes "############################################################################
-	#
-	# 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}
-	#
-	############################################################################"
+    # install logrotate.mythtv
+        xinstall -m 400 ${worksrcpath}/macports/logrotate.mythtv ${destroot}${prefix}/etc/logrotate.d
+    
+    # install the launchd plist for the backend
+        ui_info "Installing startupitem/launchd plist..."
+        xinstall -d -m 0755 ${destroot}${plistdir}
+        xinstall ${worksrcpath}/macports/${plistfile} ${destroot}${plistdir}
+    
+    # install scripts we want in share/contrib
+        ui_info "Installing share/$name/contrib scripts..."
+    
+        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 "Installing Applescript helpers..."
+        # 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 "Correcting library entries in dylibs..."
+    
+        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}] == "file" } {
+                ui_debug "... for ${dylib}"
+                system "install_name_tool -id ${libdir}/${dylib} ${destroot}${libdir}/${dylib}"
+    
+                set otool [lrange [split [exec otool -L ${destroot}${libdir}/${dylib}] \n] 1 end]
+    
+                foreach {otoolentry} ${otool} {
+                    # fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
+                    # assume anything without a leading slash needs fixing
+                    set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                    if  { ${firstchar} != "/" }  {
+                        set lib [lindex ${otoolentry} 0]
+                        ui_debug "      Change ${lib}  to  ${libdir}/[file tail ${lib}]"
+                        system "install_name_tool -change \
+                            ${lib} \
+                            ${libdir}/[file tail ${lib}] \
+                            ${destroot}${libdir}/${dylib}"
+                    }
+                }
+            }
+        }
+        set bindir ${prefix}/bin
+        ui_info "Correcting library entries in executables..."
+    
+        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 "... for ${prog}"
+    
+            set otool [lrange [split [exec otool -L ${destroot}${bindir}/${prog}] \n] 1 end]
+    
+            foreach {otoolentry} ${otool} {
+                # fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
+                # assume anything without a leading slash needs fixing
+                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                if  { ${firstchar} != "/" }  {
+                    set lib [lindex ${otoolentry} 0]
+                    ui_debug "      Change ${lib} to ${libdir}/[file tail ${lib}]"
+                    system "install_name_tool -change \
+                        ${lib} \
+                        ${libdir}/[file tail ${lib}] \
+                        ${destroot}${bindir}/${prog}"
+                }
+            }
+        }
+    
+    # fix lib entries in filters
+        set fltdir ${prefix}/lib/mythtv/filters
+        set liblist [glob -types f -tails -directory ${destroot}${libdir} -- *.dylib]
+        ui_info "Correcting library entries in plugins..."
+    
+        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 "... for ${flt}"
+    
+            set otool [lrange [split [exec otool -L ${destroot}${fltdir}/${flt}] \n] 1 end]
+    
+            foreach {otoolentry} ${otool} {
+                # fix entries like "libmythswscale.dylib" to "${prefix}/lib/libmythswscale.dylib"
+                # assume anything without a leading slash needs fixing
+                set firstchar [string range [string trimleft ${otoolentry}] 0 0]
+                if  { ${firstchar} != "/" }  {
+                    set lib [lindex ${otoolentry} 0]
+                    if { [ lsearch $liblist ${lib} ] > 0 } {
+                        set goodprefix ${libdir}
+                    } else {
+                        set goodprefix ${fltdir}
+                    }
+                    ui_debug "      Change ${lib} to ${goodprefix}/[file tail ${lib}]"
+                    system "install_name_tool -change \
+                        ${lib} \
+                        ${goodprefix}/[file tail ${lib}] \
+                        ${destroot}${fltdir}/${flt}"
+                }
+            }
+        }
+    }
+    
+    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 < 2.1.
+        if {![info exists startupitem.install]} {
+            set startupitem.install yes
+        }
+        # If "startupitem.install" is set to "no" in macports.conf then do not link.
+        if {${startupitem.install} != "no"} {
+            ln -s ${plistdir}/${plistfile} /Library/LaunchDaemons
+        }
+    }
+    
+    pre-deactivate {
+         file delete -force ${plistdir}/${plistfile}
+    }
+    
+    notes "############################################################################
+#
+# 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}
+#
+############################################################################"
 }
 
-subport mythtv-plugins${majorversion} {
+if {$subport eq "mythtv-plugins${majorversion}"} {
 	name                mythtv-plugins${majorversion}
 	version             0${majorversion}${minorversion}-Fixes-${lastcommit}
 
@@ -489,7 +517,8 @@
 		}
 	}
 
-	depends_lib         port:mythtv-core${majorversion}
+	#FIXME - uncomment when mythtv-core.28 committed...
+	#depends_lib         port:mythtv-core${majorversion}
 	# NB mythplugins/configure reads ${prefix}/include/mythtv/mythconfig.mak
 	# and sets several values from that, including cc and cxx
 
@@ -511,6 +540,9 @@
 						--disable-mythnews \
 						--disable-mythweather
 
+	build.dir           ${worksrcpath}/mythplugins
+	destroot.destdir    INSTALL_ROOT=${destroot}
+
 	if {[variant_isset mythnetvision] || [variant_isset mythweather]} {
 	# for both MythNetvision and MythWeather (Canada)
 		depends_lib-append		port:${perlmodver}-perlmagick
@@ -536,16 +568,16 @@
 		depends_lib-append		port:libexif \
 								port:dcraw
 		configure.args-delete	--disable-mythgallery
-	#	configure.args-append	--enable-mythgallery
+		configure.args-append	--enable-mythgallery --enable-opengl --enable-new-exif
 	}
 
 	variant mythmusic description {Myth plugin to play and manage music files.} {
 		depends_lib-append		port:libvorbis \
 								port:flac \
 								port:taglib
-	#							port:fftw-3  -- included in mythtv-core
+	#							port:cdio port:fftw-3  -- included in mythtv-core
 		configure.args-delete	--disable-mythmusic
-	#	configure.args-append	--enable-mythmusic
+		configure.args-append	--enable-mythmusic --enable-fftw  --enable-cdio
 	}
 
 	variant mythnews description {Check news sources through RSS feeds with this Myth plugin.} {
@@ -564,11 +596,48 @@
 		configure.args-delete	--disable-mythweather
 	#	configure.args-append	--enable-mythweather
 	}
+    default_variants +mythnetvision +mythbrowser +mythnews +mythgallery +mythmusic \
+        +mythweather +mytharchive
+ 
+}
 
-	default_variants +mythnetvision +mythbrowser +mythnews +mythgallery +mythmusic +mythweather +mytharchive
+if {$subport eq "mythtv${majorversion}"} {
+    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
 
-	build.dir           ${worksrcpath}/mythplugins
+	depends_lib         port:mythtv-plugins${majorversion} \
+                        port:mythweb${majorversion} \
 
-	destroot.destdir    INSTALL_ROOT=${destroot}
+    depends_run         port:mariadb-server
+    
+    build {}
+    destroot {
+        xinstall -m 0755 ${filespath}/README_mythtv${majorversion}_MacPorts.txt \
+            ${destroot}${prefix}/share/mythtv-pkg
+    }
+}
 
+if {$subport eq "mythtv-pkg${majorversion}"} {
+    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
+    }
+
 }

Added: trunk/dports/multimedia/mythtv.28/files/README_mythtv-pkg.28_MacPorts.txt
===================================================================
--- 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)
@@ -0,0 +1,2 @@
+See http://www.mythtv.org/wiki/MacPorts
+

Added: trunk/dports/multimedia/mythtv.28/files/README_mythtv.28_MacPorts.txt
===================================================================
--- 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)
@@ -0,0 +1,2 @@
+See http://www.mythtv.org/wiki/MacPorts
+

Added: trunk/dports/multimedia/mythtv.28/files/patch-configure_opengl_check.diff
===================================================================
--- 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)
@@ -0,0 +1,13 @@
+--- 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 "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
+                                check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
+                                die "ERROR: opencl must be installed and version must be 1.2 or compatible"; }
+-enabled opengl            && { check_lib GL/glx.h glXGetProcAddress "-lGL" ||
+-                               check_lib2 windows.h wglGetProcAddress "-lopengl32 -lgdi32" ||
+-                               check_lib2 OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" ||
++enabled opengl            && { check_lib2 OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" ||
+                                check_lib2 ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" ||
+                                check_lib2 GLES/gl.h glGetError "-Wl,-framework,OpenGLES" ||
+                                { check_lib2 GLES2/gl2.h glGetError "-lGLESv2" &&

Added: trunk/dports/multimedia/mythtv.28/files/patch-configure_verbosity.diff
===================================================================
--- 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)
@@ -0,0 +1,44 @@
+--- 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 "OpenGL video              ${opengl_video-no}"
+   if test x"$target_os" = x"darwin" ; then
+     echo "VDA support               ${vda-no}"
++    echo "VideoToolBox support      ${videotoolbox-no}"
+   fi
+   if test x"$target_os" = x"mingw32" ; then
+     echo "Windows (Direct3D)        yes"
+@@ -7750,16 +7751,22 @@
+ fi
+ 
+ echo "# Misc Features"
++echo "Frontend                  ${frontend-no}"
++echo "Backend                   ${backend-no}"
++echo "mythlogserver             ${mythlogserver-no}"
+ echo "multi threaded libavcodec ${threads-no}"
+ if enabled frontend; then
+   echo "libxml2 support           ${libxml2-no} [$libxml2_path]"
+ fi
+ echo "libdns_sd (Bonjour)       ${libdns_sd-no}"
+ echo "libcrypto                 ${libcrypto-no}"
+-echo "Frontend                  ${frontend-no}"
+-echo "Backend                   ${backend-no}"
++  if test x"$target_os" = x"darwin" ; then
++    echo "TLS -"
++    echo "OpenSSL                   ${tls_openssl_protocol-no}"
++    echo "gnutls                    ${tls_gnutls_protocol-no}"
++    echo "Secure Transport          ${tls_securetransport_protocol-no}"
++  fi
+ echo "OpenGL ES 2.0             ${opengles-no}"
+-echo "mythlogserver             ${mythlogserver-no}"
+ echo "BD-J (Bluray java)        ${bdjava-no}"
+ echo "BD-J type                 ${bdj_type}"
+ echo "systemd_notify            ${systemd_notify-no}"
+@@ -7779,6 +7787,7 @@
+ echo "faac                      ${libfaac-no}"
+ echo "xvid                      ${libxvid-no}"
+ echo "x264                      ${libx264-no}"
++echo "x265 (HEVC)               ${libx265-no}"
+ echo "vpx                       ${libvpx-no}"
+ echo "SDL                       ${sdl-no}"
+ echo ""

Added: trunk/dports/multimedia/mythtv.28/files/patch-dvdnav_include_path.diff
===================================================================
--- 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)
@@ -0,0 +1,27 @@
+--- 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 & 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

Modified: trunk/dports/multimedia/mythtv.28/files/patch-rpath_linking.diff
===================================================================
--- 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)
@@ -1,10 +1,9 @@
 --- mythtv/configure.orig	2013-09-18 17:28:07.000000000 -0400
 +++ mythtv/configure	2013-09-19 14:52:56.000000000 -0400
-@@ -4126,9 +4126,13 @@
+@@ -5231,8 +5231,13 @@
          ###### Standard ffmpeg configure stuff follows:
-         gas="gas-preprocessor.pl $cc"
          enabled ppc && add_asflags -force_cpusubtype_ALL
--
+ 
 -        #Need to add @rpath in front of install name so test unit can use non-installed lib
 -        SHFLAGS='-headerpad_max_install_names -dynamiclib -Wl,-single_module -Wl,-install_name, at rpath/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
 +        
@@ -17,23 +16,23 @@
          enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
          strip="${strip} -x"
          add_ldflags -Wl,-dynamic,-search_paths_first
+
+
 --- mythtv/settings.pro.orig	2013-09-18 17:28:07.000000000 -0400
 +++ mythtv/settings.pro	2013-09-19 14:57:41.000000000 -0400
-@@ -172,10 +172,7 @@
- }
- EXTRA_LIBS += -L$$SRC_PATH_BARE/external/qjson/lib -lmythqjson
+@@ -303,7 +303,6 @@
  
--macx {
--    using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
--    QMAKE_LFLAGS_SONAME  = -Wl,-install_name, at rpath/
--}
-+macx:using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
- 
  macx {
+     using_firewire:using_backend:EXTRA_LIBS += -F$${CONFIG_MAC_AVC} -framework AVCVideoServices
+-    QMAKE_LFLAGS_SONAME  = -Wl,-install_name, at rpath/
      _RPATH_="-rpath,"
+ } else {
+     _RPATH_="-rpath="
+
+
 --- mythtv/external/Makefile.orig	2013-09-18 17:28:07.000000000 -0400
 +++ mythtv/external/Makefile	2013-09-19 14:52:56.000000000 -0400
-@@ -28,9 +28,6 @@
+@@ -29,9 +29,6 @@
  
  zeromq-all:	zeromq/Makefile
  	${MAKE} -C zeromq all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160818/60b37b11/attachment-0001.html>


More information about the macports-changes mailing list