Mercurial > mplayer.hg
comparison DOCS/xml/en/ports.xml @ 18838:cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
author | gpoirier |
---|---|
date | Tue, 27 Jun 2006 23:01:40 +0000 |
parents | 1ff5eeb87dce |
children | 0db2e1ae26dc |
comparison
equal
deleted
inserted
replaced
18837:70bcf587a49a | 18838:cf45632eaef6 |
---|---|
687 <title>Mac OS</title> | 687 <title>Mac OS</title> |
688 <para> | 688 <para> |
689 <application>MPlayer</application> does not work on Mac OS versions before | 689 <application>MPlayer</application> does not work on Mac OS versions before |
690 10, but should compile out-of-the-box on Mac OS X 10.2 and up. | 690 10, but should compile out-of-the-box on Mac OS X 10.2 and up. |
691 The preferred compiler is the Apple version of | 691 The preferred compiler is the Apple version of |
692 GCC 3.x or later. If you have Mac OS X 10.3.9 or later and QuickTime 7 | 692 GCC 3.x or later. |
693 You can get the basic compilation environement by installing Apple's | |
694 <ulink url="http://developer.apple.com/tools/download/">Xcode</ulink>. | |
695 If you have Mac OS X 10.3.9 or later and QuickTime 7 | |
693 you can use the macosx video output driver. | 696 you can use the macosx video output driver. |
697 </para> | |
698 <para> | |
699 Unfortunately, this basic environment won't allow you to take advantage | |
700 of all the nice features of <application>MPlayer</application>. | |
701 For instance, in order to have OSD support compiled in, you will need | |
702 to have fontconfig and freetype libraries installed in your machine. | |
703 Contrary to other Unixes such as most Linux and BSDs, OSX doesn't have just | |
704 one packaging system that comes with the system. | |
705 </para> | |
706 <para> | |
707 There's at least two to choose from: | |
708 <ulink url="http://fink.sourceforge.net/">Fink</ulink> and | |
709 <ulink url="http://darwinports.opendarwin.org/">DarwinPorts</ulink>. | |
710 Both of them provide about the same service (i.e. a lot of packages to | |
711 choose from, dependencies resolution, the ability to simply add/update/remove | |
712 packages, etc...). | |
713 Fink offers both precompiled binary packages or to build everything from | |
714 source, whereas DarwinPorts only offers to build them from source. | |
715 The author of this guide chose DarwinPorts for the simple fact that its basic | |
716 setup was more lightweight. | |
717 Later examples will be based on DarwinPorts. | |
718 </para> | |
719 <para> | |
720 For instance, to compile <application>MPlayer</application> with OSD support: | |
721 <screen>sudo port install pkgconfig</screen> | |
722 This will install <application>pkg-config</application>, which is a system for | |
723 managing library compile/link flags. | |
724 <application>MPlayer</application>'s <systemitem>configure</systemitem> script | |
725 uses it to properly detect libraries. | |
726 Then you can install <application>fontconfig</application> in a | |
727 similar way: | |
728 <screen>sudo port install fontconfig</screen> | |
729 Then you can proceed with launching <application>MPlayer</application>'s | |
730 <systemitem>configure</systemitem> script (note the | |
731 <systemitem>PKG_CONFIG_PATH</systemitem> and <systemitem>PATH</systemitem> | |
732 environment variables so that <systemitem>configure</systemitem> find the | |
733 libraries installed with DarwinPorts): | |
734 <screen>PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/ PATH=$PATH:/opt/local/bin/ ./configure</screen> | |
694 </para> | 735 </para> |
695 | 736 |
696 <sect2 id="osx_gui"> | 737 <sect2 id="osx_gui"> |
697 <title>MPlayer OS X GUI</title> | 738 <title>MPlayer OS X GUI</title> |
698 <para> | 739 <para> |