MacPortsで以下のようなエラーがでることに気がついた。

dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
 Referenced from: /usr/local/bin/pdf2swf
 Reason: no suitable image found.  Did find:
 /opt/local/lib/libjpeg.62.dylib: mach-o, but wrong architecture
Trace/BPT trap

とか

dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /usr/local/bin/pdf2swf
Reason: no suitable image found.  Did find:
/opt/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
Trace/BPT trap

など。

いろいろと調べた結果、MacPortsでインストールされるバイナリのいくつかはユニバーサルバイナリで、それらのコマンドが別のライブラリを使用する際に、そのライブラリもユニバーサルライブラリである必要があるらしい。

but wrong architectureのあたりがポイント。

ユニバーサルライブラリのインストール方法

ユニバーサルライブラリをインストールするには、以下のように+uiversalと入力すればいいらしい。

sudo port install jpeg +universal

とか

sudo port install freetype +universal

など