<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That would be very nice. If I can help in any way please ask.<br>
I tried to build lots but failed mizerably. If you post HOW you did it I can help WRT segsaults</blockquote><div><br></div><div>First note I'm using macports for the support libraries. I was using homebrew up until a week ago and switched back to macports as it seems to be more compatible with mythfronted compiling on a mac.</div><div><br></div><div>Here's the blackmagic I had to do to get it t compile. For the most part, this should work in a zsh or sh script. Note there is one manual code fix required (packaging/OSX/build/makebundle.sh). Also, it appears that my case-sensitive filesystem caused issues on linking the "VideoToolbox" framework (mythtv source has changed this incorrectly listed at VideoToolBox). I've brute forced a sed command to fix the framework reference. The main files that requires a fix is $SRC_DIR/libs/libmythtv/<a href="http://libmythtv.pro">libmythtv.pro</a>.</div><div><br></div><div>You probably want to skip the fix I put in for VideoToolbox below.</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"># Step 1, install macports</div><div class="gmail_quote"><br></div><div class="gmail_quote"># Specify mythtv version to pull from git</div><div class="gmail_quote">MYTHTV_VERS="fixes/31"</div><div class="gmail_quote"><br></div><div class="gmail_quote"># setup the working directory structure</div><div class="gmail_quote">REPO_DIR=~/mythtv-31</div><div class="gmail_quote">mkdir -p $REPO_DIR</div><div class="gmail_quote"><br></div><div class="gmail_quote"># setup mythtv source from git</div><div class="gmail_quote">cd $REPO_DIR</div><div class="gmail_quote">git clone -b $MYTHTV_VERS git://<a href="http://github.com/MythTV/mythtv.git">github.com/MythTV/mythtv.git</a></div><div class="gmail_quote">cd $REPO_DIR/mythtv</div><div class="gmail_quote">git clone <a href="https://github.com/MythTV/packaging.git">https://github.com/MythTV/packaging.git</a></div><div class="gmail_quote">SRC_DIR=$REPO_DIR/mythtv/mythtv</div><div class="gmail_quote"><br></div><div class="gmail_quote"># add necessary packages from macports</div><div class="gmail_quote">sudo port install pkgconfig qt5-qtwebkit qt5-qtscript qt5 yasm libsamplerate taglib libbluray exiv2 lame x264 x265 openssl libxml2 gsed</div><div class="gmail_quote"><br></div><div class="gmail_quote"># fix add of framework VideoToolbox in libmyth/<a href="http://libmyth.pro">libmyth.pro</a> </div><div class="gmail_quote"># This may only be necessary in case sensitive file systems</div><div class="gmail_quote">grep -rli 'VideoToolBox' * | xargs -I@ gsed -i '' 's/VideoToolBox/VideoToolbox/g' @</div><div class="gmail_quote"><br></div><div class="gmail_quote"># comment out filters in packaging (...I think they've been removed???)</div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"># file is $REPO_DIR/packaging/OSX/build/makebundle.sh</div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"># ...I don't have an automated way to do this yet, so comment out the following line:</div><div class="gmail_quote">#73: echo "Installing filters"</div><div class="gmail_quote">#74: make -C ../../filters INSTALL_ROOT=`pwd` install >/dev/null</div><div class="gmail_quote"><br></div><div class="gmail_quote"># add links to some of the macports packages</div><div class="gmail_quote">cd $SRC_DIR</div><div class="gmail_quote">ln -s /opt/local/include/samplerate.h $SRC_DIR/libs/libmyth/audio/samplerate.h</div><div class="gmail_quote">mkdir -p $SRC_DIR/libs/libmythmetadata/libbluray/</div><div class="gmail_quote">ln -s /opt/local/include/libbluray/*.h $SRC_DIR/libs/libmythmetadata/libbluray/</div><div class="gmail_quote">mkdir -p $SRC_DIR/libs/libmythmetadata/exiv2/</div><div class="gmail_quote">ln -s /opt/local/include/exiv2/*.h* $SRC_DIR/libs/libmythmetadata/exiv2/</div><div class="gmail_quote">mkdir -p $SRC_DIR/libs/libmyth/openssl/</div><div class="gmail_quote">ln -s /opt/local/include/openssl/*.h $SRC_DIR/libs/libmyth/openssl/</div><div class="gmail_quote"><br></div><div class="gmail_quote"># configure mythfrontend</div><div class="gmail_quote">./configure --enable-mac-bundle --qmake=/opt/local/libexec/qt5/bin/qmake --disable-backend --runprefix=../Resources --disable-lirc --disable-distcc --extra-cflags="-fno-stack-check" --extra-cxxflags="-fno-stack-check"</div><div class="gmail_quote"><br></div><div class="gmail_quote">#compile mythfrontend</div><div class="gmail_quote">make</div><div class="gmail_quote"><br></div><div class="gmail_quote"># Package up the executable</div><div class="gmail_quote">cd $SRC_DIR/programs/mythfrontend</div><div class="gmail_quote">/opt/local/libexec/qt5/bin/macdeployqt mythfrontend.app</div><div class="gmail_quote">$REPO_DIR/mythtv/packaging/OSX/build/makebundle.sh mythfrontend.app</div><div class="gmail_quote"><div>cp mythfrontend.icns mythfrontend.app/Contents/Resources/application.icns </div></div></blockquote></div>