Feynmp/auto が Yosemite で動作しないのはなぜですか?

Feynmp/auto が Yosemite で動作しないのはなぜですか?

私は feynmp と feynmp-auto を何百回も使用しましたが、どちらも Mac OS Yosemite では動作しないようです。両方インストールしましたが、実行すると次のようなメッセージが表示されます。

私はこれを実行します:

\documentclass{article}
\usepackage{feynmp-auto}
\usepackage{graphicx}
\begin{document}
\unitlength = 1mm
    \begin{fmffile}{Test}
    \begin{fmfgraph}(40,15)
    \fmfleft{i1,i2}
    \fmfright{o1,o2}
    \fmf{fermion}{i1,v1,v2,o1}
    \fmf{fermion}{o2,v4,v3,i2}
    \fmf{photon,tension=0}{v1,v3}
    \fmf{photon,tension=0}{v2,v4}
    \end{fmfgraph}
    \end{fmffile}
\end{document}

そしてこのエラーが発生します

feynmp: File Test.1 not found:
feynmp: Process Test.mp with MetaPost and then reprocess this file.

アップデート:何らかの理由で、次のコード(関連するパッケージがある場合はそれと一緒に)を含めると、すべて正常に動作します。

\ifpdf
  \DeclareGraphicsRule{*}{mps}{*}{}
\fi

\makeatletter
\def\endfmffile{%
  \fmfcmd{\p@rcent\space the end.^^J%
          end.^^J%
          endinput;}%
  \if@fmfio
    \immediate\closeout\@outfmf
  \fi
  \IfFileExists{\thefmffile.mp}{\immediate\write18{mpost \thefmffile}}{}
  \let\thefmffile\relax
}
\makeatother

feynmp-auto が最後の問題を解決してくれると思いました。

私は TexShop の最新バージョンを使用していますが、TexLive は 2013 年のものだと思います。

関連情報