[113128] trunk/dports/multimedia
pixilla at macports.org
pixilla at macports.org
Sat Nov 9 15:29:02 PST 2013
Revision: 113128
https://trac.macports.org/changeset/113128
Author: pixilla at macports.org
Date: 2013-11-09 15:29:02 -0800 (Sat, 09 Nov 2013)
Log Message:
-----------
multimedia/mythtv-core.27:
- New port.
Added Paths:
-----------
trunk/dports/multimedia/mythtv-core.27/
trunk/dports/multimedia/mythtv-core.27/Portfile
trunk/dports/multimedia/mythtv-core.27/files/
trunk/dports/multimedia/mythtv-core.27/files/Myth_Filldatabase.applescript
trunk/dports/multimedia/mythtv-core.27/files/Myth_Frontend.applescript
trunk/dports/multimedia/mythtv-core.27/files/Myth_Setup.applescript
trunk/dports/multimedia/mythtv-core.27/files/Myth_Stop_Start.applescript
trunk/dports/multimedia/mythtv-core.27/files/logrotate.conf
trunk/dports/multimedia/mythtv-core.27/files/logrotate.mythtv
trunk/dports/multimedia/mythtv-core.27/files/org.mythtv.mythbackend.plist
trunk/dports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff
trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff
trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff
trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv_settings.pro.diff
trunk/dports/multimedia/mythtv-core.27/files/patch-protect-metadata-loads-from-multiple-threads.diff
trunk/dports/multimedia/mythtv-core.27/files/patch-rpath_linking.diff
Added: trunk/dports/multimedia/mythtv-core.27/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/Portfile (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/Portfile 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,421 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+PortGroup qt4 1.0
+PortGroup compiler_blacklist_versions 1.0
+PortGroup conflicts_build 1.0
+
+set shorthash ea5af908
+# set fullhash ea5af9081d46b566b638856204793c7ddc032da4
+set majorversion .27
+set minorversion ""
+github.setup MythTV mythtv ${shorthash}
+checksums rmd160 a1c9a90f36da08846c08f4da89195495f0942d56 \
+ sha256 b9fa80bff1546bf1d1736e37882554fe2931875d60e24ca62b62f16384e08199
+
+name mythtv-core${majorversion}
+version 0${majorversion}${minorversion}-Fixes-20131102
+categories multimedia
+platforms darwin
+# i386 unsupported -- https://trac.macports.org/ticket/40337
+supported_archs x86_64
+license GPL-2
+maintainers cogeco.ca:ctreleaven openmaintainer
+
+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.
+
+homepage http://www.mythtv.org/
+
+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 mysql5
+set perlver perl5.12
+set perlbin ${prefix}/bin/${perlver}
+set perlmodver p5.12
+set pythonver python2.6
+set pythonbin ${prefix}/bin/${pythonver}
+set pymodver py26
+
+depends_lib port:libass \
+ port:libdvdcss \
+ port:freetype \
+ port:lame \
+ port:faac \
+ port:x264 \
+ port:qt4-mac-${mysqlver}-plugin \
+ port:libpng \
+ port:taglib \
+ 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
+conflicts_build mythtv-core.25 mythtv-core.26
+
+depends_run port:logrotate
+
+pre-fetch {
+ if {"darwin" == ${os.platform} && ${os.major} < 9} {
+ ui_error "${name} ${version} requires Mac OS X 10.5 or greater."
+ return -code error "incompatible Mac OS X version"
+ }
+}
+
+patchfiles patch-configure-configincludepath.diff \
+ patch-mythtv_settings.pro.diff
+
+# following patch currently required to support MythExpress
+# See ticket: http://code.mythtv.org/trac/ticket/10825
+patchfiles-append patch-protect-metadata-loads-from-multiple-threads.diff
+
+# 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
+}
+
+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.6
+ reinplace -locale C "s|\$(ROOT_FLAGS) \$(PREFIX_FLAGS)|\$(ROOT_FLAGS) \--prefix=\"${frameworks_dir}/Python.framework/Versions/2.6\"|" \
+ ${sedPath}/bindings/python/Makefile
+ reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythtv/bindings/python/MythTV/static.py
+ reinplace -locale C "s|#!python|#!${pythonbin}|" \
+ ${worksrcpath}/mythtv/bindings/python/scripts/mythpython \
+ ${worksrcpath}/mythtv/bindings/python/scripts/mythwikiscripts
+ 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|@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).
+
+compiler.fallback-append apple-gcc-4.2
+compiler.blacklist-append { clang <= 318.0.61 } macports-clang-2.9 macports-clang-3.0
+
+# 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
+
+configure.dir ${worksrcpath}/mythtv
+configure.args --compile-type=release \
+ --qmake=${qt_qmake_cmd} \
+ --cc=${configure.cc} \
+ --cxx=${configure.cxx} \
+ --python=${pythonbin} \
+ --disable-mythlogserver \
+ --disable-firewire \
+ --disable-audio-jack --disable-indev=jack \
+ --disable-libvpx --disable-libxvid \
+ --disable-sdl \
+ --enable-libmp3lame \
+ --enable-libass \
+ --enable-libx264 --enable-libfaac --enable-nonfree
+# --ld=/usr/bin/ld \
+
+if {${configure.ccache} != "yes"} {
+ configure.args-append --disable-ccache
+}
+
+if {${configure.distcc} != "yes"} {
+ configure.args-append --disable-distcc
+}
+
+build.dir ${worksrcpath}/mythtv
+
+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 \
+ ${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}
+#
+############################################################################"
+
+livecheck.version ${version}
+livecheck.regex "tarball/v(0.27\[^\"\]+)"
Property changes on: trunk/dports/multimedia/mythtv-core.27/Portfile
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/multimedia/mythtv-core.27/files/Myth_Filldatabase.applescript
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/Myth_Filldatabase.applescript (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/Myth_Filldatabase.applescript 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,47 @@
+(* Applescript to run 'Unix' version of mythfilldatabase
+For use with MacPorts install of Myth
+Author: Craig Treleaven, ctreleaven at cogeco.ca
+Myth Version: 0.27.0
+Modified: 2012May17, 2013Sep25
+
+*)
+property MFDappPath : "@PREFIX@/bin/mythfilldatabase"
+property MFDlogArg : "--logpath @MYTHTVLOGDIR@"
+property MFDlogLevel : "warning" -- single string
+property MFDverboseLevel : {"general"} -- a list, can be multiple strings
+
+set welcome to "In a 'production' system, mythfilldatabase is run automatically by mythbackend at the times suggested by the listings source, usually daily.
+
+This applescript program allows you to run mythfilldatabase 'manually'; perhaps when Myth is first set up or if there are problems with the automatic runs.
+
+"
+
+try
+ set Clicked to display dialog welcome with title "Run mythfilldatabase" buttons {"Cancel", "Options", "Start Run"} default button "Start Run"
+on error
+ set Clicked to false
+end try
+
+set CmdList to {MFDappPath, MFDlogArg, "--loglevel " & MFDlogLevel, "--verbose " & joinlist(MFDverboseLevel, ",")}
+set Cmd to (joinlist(CmdList, " "))
+--display alert button returned of Clicked
+
+if Clicked is not false then
+ if button returned of Clicked = "Start Run" then
+ do shell script Cmd -- run it!
+ else if button returned of Clicked = "Options" then
+ display alert "Options"
+ -- let user select verbose and loglevel options
+ end if
+end if
+
+-- -- -- -- -- -- -- --
+-- Handlers
+to joinlist(aList, delimiter)
+ set retVal to ""
+ set prevDelimiter to AppleScript's text item delimiters
+ set AppleScript's text item delimiters to delimiter
+ set retVal to aList as string
+ set AppleScript's text item delimiters to prevDelimiter
+ return retVal
+end joinlist
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/Myth_Filldatabase.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/Myth_Frontend.applescript
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/Myth_Frontend.applescript (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/Myth_Frontend.applescript 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,38 @@
+(* Applescript to run 'Unix' version of mythfronted
+For use with MacPorts install of Myth
+Author: Craig Treleaven, ctreleaven at cogeco.ca
+Version: 0.27.0
+Modified: 2012May15
+ 2012Nov20 -- handle 'thread not shut down error' on exit, add --quiet to prevent
+ console output from being returned to AppleScript, allow experimental AirPlay
+ 2013Sep25 -- revert logserver stuff, remove AirPlay setting that is now unnecessary
+
+*)
+property MFEappPath : "/opt/local/bin/mythfrontend"
+property MFElogArg : "--logpath @MYTHTVLOGDIR@"
+property MFElogLevel : "info" -- single string
+property MFEverboseLevel : {"general"} -- a list, can be multiple strings
+
+set CmdList to {MFEappPath, MFElogArg, "--loglevel " & MFElogLevel, "--verbose " & joinlist(MFEverboseLevel, ",")}
+set Cmd to (joinlist(CmdList, " "))
+
+try
+ do shell script Cmd
+on error the error_message number the error_number
+ if the error_number is not 133 then
+ set the error_text to "Error: " & the error_number & ". " & the error_message
+ display dialog the error_text buttons {"OK"} default button 1
+ return the error_text
+ end if
+end try
+
+-- -- -- -- -- -- -- --
+-- Handlers
+to joinlist(aList, delimiter)
+ set retVal to ""
+ set prevDelimiter to AppleScript's text item delimiters
+ set AppleScript's text item delimiters to delimiter
+ set retVal to aList as string
+ set AppleScript's text item delimiters to prevDelimiter
+ return retVal
+end joinlist
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/Myth_Frontend.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/Myth_Setup.applescript
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/Myth_Setup.applescript (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/Myth_Setup.applescript 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,49 @@
+(* Applescript to run 'Unix' version of mythtv-setup
+For use with MacPorts install of Myth
+Author: Craig Treleaven, ctreleaven at cogeco.ca
+Myth Version: 0.27.0
+Modified: 2012May17
+ 2012Sep08 Force working themepainter
+ 2013Sep25 revert logserver stuff, themepainter no longer necessary
+
+*)
+property MSUappPath : "@PREFIX@/bin/mythtv-setup"
+property MSUlogArg : "--logpath @MYTHTVLOGDIR@"
+property MSUlogLevel : "info" -- single string
+property MSUverboseLevel : {"general"} -- a list, can be multiple strings
+
+set welcome to "Initial setup of Myth is done through the mythtv-setup program.
+
+This includes defining where recordings and other media are stored, tuners and sources of listings data and scanning for available channels, etc.
+
+"
+--Should test if mythbackend is running and warn user...
+
+try
+ set Clicked to display dialog welcome with title ¬
+ "Run mythtv-setup" buttons {"Cancel", "Start"} default button "Start"
+on error
+ set Clicked to false
+end try
+
+set CmdList to {MSUappPath, MSUlogArg, "--loglevel " & MSUlogLevel, "--verbose " & joinlist(MSUverboseLevel, ",")}
+set Cmd to (joinlist(CmdList, " "))
+--display alert button returned of Clicked
+
+if Clicked is not false then
+ if button returned of Clicked = "Start" then
+ --display alert Cmd
+ do shell script Cmd -- run it!
+ end if
+end if
+
+-- -- -- -- -- -- -- --
+-- Handlers
+to joinlist(aList, delimiter)
+ set retVal to ""
+ set prevDelimiter to AppleScript's text item delimiters
+ set AppleScript's text item delimiters to delimiter
+ set retVal to aList as string
+ set AppleScript's text item delimiters to prevDelimiter
+ return retVal
+end joinlist
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/Myth_Setup.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/Myth_Stop_Start.applescript
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/Myth_Stop_Start.applescript (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/Myth_Stop_Start.applescript 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,83 @@
+(* Applescript to stop/start Myth background apps
+For use with MacPorts install of Myth
+Author: Craig Treleaven, ctreleaven at cogeco.ca
+Version: 0.27.0
+Modified: 2012Jul11 - new
+ 2012Sep21 - log rotation
+ 2013Sep25 - revert logserver stuff
+
+NB - if mbe is running, we only stop it if it was launched under launchd
+*)
+set mysqld to " not running on this machine. Is it on another machine on your network?"
+set rotatorStatus to ""
+set logrotButton to ""
+set mythbackend to ""
+set mythbackendButton to "Donno"
+set newline to "
+"
+set indent to space & space & space & space
+set myResult to ""
+
+repeat until (myResult contains "Close")
+ if (do shell script "sudo launchctl list" with administrator privileges) contains ".logrotate" then
+ set rotatorStatus to "runs daily"
+ set logrotButton to "Disable log rotation"
+ else
+ set rotatorStatus to "is not scheduled"
+ set logrotButton to "Schedule log rotation"
+ end if
+
+ set processes to do shell script "ps -Ac"
+ if the processes contains "mysqld" then
+ set mysqld to " running."
+ end if
+
+ if the processes contains "mythbackend" then
+ set mythbackend to " running."
+ set mythbackendButton to "Stop MythBackend"
+ try
+ do shell script "mythshutdown --check"
+ on error
+ set mythbackend to " running but busy with something. Are you sure you want to shut down now?"
+ end try
+ else
+ set mythbackend to " not running."
+ set mythbackendButton to "Start MythBackend"
+ end if
+
+ set myResult to display dialog newline & "Simple tool to start and stop Myth's background processes" & \xC2
+ newline & newline & newline & "Currently... " & \xC2
+ newline & newline & indent & "Log rotation " & rotatorStatus & \xC2
+ newline & newline & indent & "MySQL is" & mysqld & \xC2
+ newline & newline & indent & "MythBackend is" & mythbackend & newline & newline \xC2
+ with icon note with title \xC2
+ "Stop/Start Myth-related programs" buttons {logrotButton, mythbackendButton, "Close"} \xC2
+ default button "Close" -- cancel button "Close"
+ set myResult to button returned of myResult
+ if myResult contains "Start MythBackend" then
+ do shell script "sudo launchctl load -w /Library/LaunchDaemons/org.mythtv.mythbackend.plist" with administrator privileges
+ else if myResult contains "Stop MythBackend" then
+ if ((do shell script "sudo launchctl list" with administrator privileges) contains "mythbackend") then
+ do shell script "sudo launchctl unload -w /Library/LaunchDaemons/org.mythtv.mythbackend.plist" with administrator privileges
+ -- there is a longish delay while myth closes down.
+ else
+ display alert " MythBackend appears not to have been started in the normal fashion. Unable to shut down." message "Was mythbackend started directly from a command line session?" as warning
+ end if
+ set myResult to "Close"
+ else if myResult contains "Schedule log rotation" then
+ --check for existence of
+ if (FileExists("@PREFIX@/etc/logrotate.conf") and \xC2
+ FileExists("@PREFIX@/etc/logrotate.d/logrotate.mythtv")) then
+ do shell script "sudo launchctl load -w /Library/LaunchDaemons/org.macports.logrotate.plist" with administrator privileges
+ else
+ display dialog "logrotate is not configured. Please see http://www.mythtv.org/wiki/MacPorts for instructions." buttons {"Close"}
+ set myResult to "Close"
+ end if
+ else if myResult contains "Disable log rotation" then
+ do shell script "sudo launchctl unload -w /Library/LaunchDaemons/org.macports.logrotate.plist" with administrator privileges
+ end if
+end repeat
+
+on FileExists(theFile) -- (String) as Boolean
+ tell application "System Events" to return (exists file theFile)
+end FileExists
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/Myth_Stop_Start.applescript
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/logrotate.conf
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/logrotate.conf (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/logrotate.conf 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,22 @@
+# ${prefix}/etc/logrotate.conf
+# 2012Sep11 Craig Treleaven
+# MacPorts logrotate port -- set up for MythTV
+#
+# see "man logrotate" for details
+# rotate log files weekly
+weekly
+
+# keep 4 weeks worth of backlogs
+rotate 4
+
+# create new (empty) log files after rotating old ones
+create
+
+# use date as a suffix of the rotated file
+dateext
+
+# uncomment this if you want your log files compressed
+#compress
+
+# Drop log rotation information into this directory
+include @PREFIX@/etc/logrotate.d
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/logrotate.conf
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/logrotate.mythtv
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/logrotate.mythtv (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/logrotate.mythtv 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,49 @@
+# ${prefix}/etc/logrotate.d/logrotate.mythtv
+# 2012Sep20 Craig Treleaven
+# MacPorts logrotate port -- set up for MythTV
+#
+# based on http://www.mythtv.org/wiki/Logrotate_-_all_applications
+
+# Common settings
+su root admin
+missingok
+ifempty
+nocreate
+nocompress
+sharedscripts
+olddir @MYTHTVLOGDIR@/old
+
+
+# programs that may run for extended periods
+ at MYTHTVLOGDIR@/mythbackend*.log @MYTHTVLOGDIR@/mythfrontend*.log @MYTHTVLOGDIR@/mythjobqueue*.log @MYTHTVLOGDIR@/mythwelcome*.log @MYTHTVLOGDIR@/mythmediaserver*.log @MYTHTVLOGDIR@/mythlcdserver*.log {
+ weekly
+ rotate 8
+ lastaction
+ killall -HUP mythbackend
+ killall -HUP mythfrontend
+ killall -HUP mythjobqueue
+ killall -HUP mythwelcome
+ killall -HUP mythmediaserver
+ killall -HUP mythlcdserver
+ find @MYTHTVLOGDIR@ -type f -mtime +20 -delete
+ find @MYTHTVLOGDIR@/old -type f -mtime +30 -delete
+ endscript
+}
+
+# tranient programs
+# these won't be running and writing to a log that needs rotating
+ at MYTHTVLOGDIR@/mythfilldatabase*.log @MYTHTVLOGDIR@/mythcommflag*.log @MYTHTVLOGDIR@/mythmetadatalookup*.log @MYTHTVLOGDIR@/mythtranscode*.log @MYTHTVLOGDIR@/mythtv-setup*.log @MYTHTVLOGDIR@/mythutil*.log {
+ weekly
+ rotate 0
+}
+
+# VERY transient
+# many, many previews
+ at MYTHTVLOGDIR@/mythpreviewgen*.log {
+ daily
+ rotate 0
+ lastaction
+ find @MYTHTVLOGDIR@ -name 'mythpreviewgen*' -type f -mtime +6 -delete
+ find @MYTHTVLOGDIR@/old -name 'mythpreviewgen*' -type f -mtime +6 -delete
+ endscript
+}
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/logrotate.mythtv
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/org.mythtv.mythbackend.plist
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/org.mythtv.mythbackend.plist (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/org.mythtv.mythbackend.plist 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>EnvironmentVariables</key>
+ <dict>
+ <key>HOME</key>
+ <string>@PREFIX@/var/mythtvuser</string>
+ <key>PATH</key>
+ <string>@PREFIX@/bin:@PREFIX@/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</string>
+ <key>PYTHONPATH</key>
+ <string>@PREFIX@/lib/@PYTHONVER@/site-packages:$PYTHONPATH</string>
+ </dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>@PLISTLABEL@</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>@PREFIX@/bin/mythbackend</string>
+ <string>--logpath</string>
+ <string>@MYTHTVLOGDIR@</string>
+ <string>--pidfile</string>
+ <string>@MYTHTVPIDFILE@</string>
+ <string>--loglevel</string>
+ <string>info</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+</dict>
+</plist>
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/org.mythtv.mythbackend.plist
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,20 @@
+--- mythtv/configure.orig 2013-06-04 22:25:57.000000000 -0400
++++ mythtv/configure 2013-06-05 20:48:04.000000000 -0400
+@@ -3001,7 +3001,7 @@
+ ranlib="${cross_prefix}${ranlib}"
+ strip_default="${cross_prefix}${strip_default}"
+
+-sysinclude_default="${sysroot}/usr/include"
++#sysinclude_default="${sysroot}/usr/include"
+
+ case "$toolchain" in
+ clang-asan)
+@@ -4389,7 +4389,7 @@
+ set_default nm
+
+ set_default $MYTHTV_PATHS_LIST
+-append CONFIG_INCLUDEPATH $sysinclude "${sysroot}${prefix}"
++#append CONFIG_INCLUDEPATH $sysinclude "${sysroot}${prefix}"
+
+ append CCONFIG "$compile_type"
+ if test x$compile_type = x"profile" ; then
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,24 @@
+--- mythtv/libs/libmythtv/NuppelVideoRecorder.cpp 2012-09-18 17:58:13.000000000 -0700
++++ mythtv/libs/libmythtv/NuppelVideoRecorder.cpp 2012-10-01 19:33:09.000000000 -0700
+@@ -33,10 +33,17 @@
+ #include "vbitext/cc.h"
+ #include "vbitext/vbi.h"
+
+-#if HAVE_BIGENDIAN
+-extern "C" {
+-#include "byteswap.h"
+-}
++#if HAVE_BYTESWAP_H
++#include <byteswap.h>
++#elif HAVE_SYS_ENDIAN_H
++#include <sys/endian.h>
++#elif CONFIG_DARWIN
++#include <libkern/OSByteOrder.h>
++#define bswap_16 OSSwapInt16
++#define bswap_32 OSSwapInt32
++#define bswap_64 OSSwapInt64
++#elif HAVE_BIGENDIAN
++#error No bswap functions defined
+ #endif
+
+ extern "C" {
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,23 @@
+--- mythtv/libs/libmythtv/avformatwriter.cpp 2012-09-18 17:58:13.000000000 -0700
++++ mythtv/libs/libmythtv/avformatwriter.cpp 2012-10-01 19:33:15.000000000 -0700
+@@ -24,10 +24,16 @@
+ #include "NuppelVideoRecorder.h"
+ #include "avformatwriter.h"
+
+-#if HAVE_BIGENDIAN
+-extern "C" {
+-#include "byteswap.h"
+-}
++#if HAVE_BYTESWAP_H
++#include <byteswap.h>
++#elif HAVE_SYS_ENDIAN_H
++#include <sys/endian.h>
++#elif CONFIG_DARWIN
++#include <libkern/OSByteOrder.h>
++#define bswap_16 OSSwapInt16
++#define bswap_32 OSSwapInt32
++#elif HAVE_BIGENDIAN
++#error No bswap functions defined
+ #endif
+
+ #define LOC QString("AVFW(%1): ").arg(m_filename)
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv_settings.pro.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv_settings.pro.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv_settings.pro.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,13 @@
+--- mythtv/settings.pro.orig 2013-06-05 20:51:44.000000000 -0400
++++ mythtv/settings.pro 2013-06-05 20:52:35.000000000 -0400
+@@ -113,8 +113,8 @@
+ # qmake 4.8.2 & 4.8.3 messes up OSX "-arch i386 -arch x86_64"
+ # clang 3.0 on Linux does not like duplicate arguments.
+ macx {
+-QMAKE_CFLAGS += $$CPPFLAGS $$CFLAGS
+-QMAKE_CXXFLAGS += $$CXXPPFLAGS $$ECXXFLAGS
++QMAKE_CFLAGS = $$CPPFLAGS $$CFLAGS
++QMAKE_CXXFLAGS = $$CXXPPFLAGS $$ECXXFLAGS
+ } else {
+ QMAKE_CFLAGS *= $$CPPFLAGS $$CFLAGS
+ QMAKE_CXXFLAGS *= $$CXXPPFLAGS $$ECXXFLAGS
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-mythtv_settings.pro.diff
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-protect-metadata-loads-from-multiple-threads.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-protect-metadata-loads-from-multiple-threads.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-protect-metadata-loads-from-multiple-threads.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,52 @@
+From b20171597097f8b933065ef3291c63194d310fbf Mon Sep 17 00:00:00 2001
+From: George Nassas <george at nassas.com>
+Date: Sun, 10 Jun 2012 13:36:42 -0400
+Subject: [PATCH] protect metadata loads from multiple threads
+
+---
+ mythtv/libs/libmythmetadata/dbaccess.cpp | 9 +++++++++
+ 1 files changed, 9 insertions(+), 0 deletions(-)
+
+diff --git a/mythtv/libs/libmythmetadata/dbaccess.cpp b/mythtv/libs/libmythmetadata/dbaccess.cpp
+index 67cd904..46adb7a 100644
+--- mythtv/libs/libmythmetadata/dbaccess.cpp
++++ mythtv/libs/libmythmetadata/dbaccess.cpp
+@@ -47,8 +47,11 @@ class SingleValueImp
+
+ virtual ~SingleValueImp() {}
+
++ mutable QMutex mutex;
++
+ void load_data()
+ {
++ QMutexLocker locker(&mutex);
+ if (!m_ready)
+ {
+ fill_from_db();
+@@ -271,8 +274,11 @@ class MultiValueImp
+ .arg(m_value_name).arg(m_table_name).arg(m_id_name);
+ }
+
++ mutable QMutex mutex;
++
+ void load_data()
+ {
++ QMutexLocker locker(&mutex);
+ if (!m_ready)
+ {
+ fill_from_db();
+@@ -730,8 +736,11 @@ class FileAssociationsImp
+ }
+ }
+
++ mutable QMutex mutex;
++
+ void load_data()
+ {
++ QMutexLocker locker(&mutex);
+ if (!m_ready)
+ {
+ fill_from_db();
+--
+1.7.2.5
+
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-protect-metadata-loads-from-multiple-threads.diff
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/dports/multimedia/mythtv-core.27/files/patch-rpath_linking.diff
===================================================================
--- trunk/dports/multimedia/mythtv-core.27/files/patch-rpath_linking.diff (rev 0)
+++ trunk/dports/multimedia/mythtv-core.27/files/patch-rpath_linking.diff 2013-11-09 23:29:02 UTC (rev 113128)
@@ -0,0 +1,45 @@
+--- 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 @@
+ ###### 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)'
++
++ build_os_ver=$(uname -r)
++ if test ${build_os_ver:0:1} = 8; then
++ SHFLAGS='-headerpad_max_install_names -dynamiclib -Wl,-single_module -Wl,-install_name,$(SLIBNAME),-current_version,$(LIBVERSION)'
++ else
++ SHFLAGS='-headerpad_max_install_names -dynamiclib -Wl,-single_module -Wl,-install_name,$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
++ fi
+ 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
+
+-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 {
+ _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 @@
+
+ zeromq-all: zeromq/Makefile
+ ${MAKE} -C zeromq all
+-ifeq ($(CONFIG_DARWIN),yes)
+- install_name_tool -id "@rpath/$(LIBPREF)zmq.1$(SLIBSUF)" zeromq/src/.libs/$(LIBPREF)zmq.1$(SLIBSUF)
+-endif
+
+ zeromq-install zeromq-uninstall zeromq-clean zeromq-distclean:
+ ${MAKE} -C zeromq ${@:zeromq-%=%} DESTDIR=${INSTALL_ROOT}
Property changes on: trunk/dports/multimedia/mythtv-core.27/files/patch-rpath_linking.diff
___________________________________________________________________
Added: svn:executable
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131109/7c537f13/attachment-0001.html>
More information about the macports-changes
mailing list