MacPorts

From MythTV Official Wiki
Revision as of 01:15, 9 August 2012 by Pvr4me (talk | contribs) (password required?)

Jump to: navigation, search

Coming soon!

Goals

Better Mac backend

The current Perl-based build processes are great for producting a self-contained Mac frontend. But if you are like me and want to run the backend on OS X, then having the essential programs packaged deep in an application bundle is less than ideal. The MacPorts distribution aims to make it much easier to install the backend and run it in a production mode:

  • Full support of the Perl/python bindings. This means that standard Myth backup, optimization, and metadata functions will work.
  • Install and run Myth like other 'server-type' software such as MySQL, file-sharing, web-serving, etc. Control the Myth backend with standard OS X functions (launchctl) and have the system start automatically during the boot process.
  • Provide the full suite of myth programs, if you need them, like mythmetadatalookup, mythutil, etc.

The documentation on this page will focus on running the Myth master backend (version 0.25.1), including the MySQL database server, on an OS X machine. Using the MacPorts install, it may be possible to run the machine as a slave backend, as a job queue server or a Myth media server. These latter kinds of configurations haven't been tested. If you do, please share the results by updating these pages!

Consistent, repeatable build process

MacPorts is a stable and mature system for bringing open-source software to the Mac platform. Changes are tested and reviewed before being committed to MacPorts. MacPorts operates some build slaves (Lion and Snow Leopard, both on 64 bit machines, currently) which automatically build the default variant of each port. All this means that if you decide to try building with MacPorts, there is a strong likelihood that it will just work. And, if it doesn't, there is an active support system working to resolve any problems.

Quick Start

ToDo: List of commands

Also installed are some Applescript helpers to simplify common tasks:

Under Applications > MacPorts > mythtv.25

You may want to drag the Myth_Frontend icon onto your Dock if you plan to use it regularly.

Myth_Stop_Start provides a quick way to start or quit the Myth backend server program.

Offers to Stop MythBackend, if running

Known issues

ToDo:

Plugins experimental, many features not working


Fonts:

http://dejavu-fonts.org/wiki/Download

https://fedorahosted.org/liberation-fonts/

Building Myth on OS X via MacPorts

See Building Myth for Mac with MacPorts

Before first run

Mythconverg database (link)

sudo -u _mysql mysql_install_db5

mysql5 -u root -p < /opt/local/share/mythtv/database/mc.sql

sudo port select --set python python26

Directories for TV, Videos, Music, Images, Metadata

MythTV-Setup

MythFillDatabase

Testing

Backend with command line

Frontend: Applescript or command line

Production

Launchd keeps the backend running

Multiple frontends

Job queue on other machines