misc/libfreetype/docs/INSTALL.MAC
author koda
Mon, 25 Apr 2011 01:46:54 +0200
changeset 5172 88f2e05288ba
permissions -rw-r--r--
aaand let's add freetype as well while we are at it other smaller changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
Please follow the instructions  in INSTALL.UNIX to install FreeType on
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
Mac OS X.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
Currently FreeType2 functions based on some deprecated Carbon APIs
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
return FT_Err_Unimplemented_Feature always, even if FreeType2 is
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
configured and built on the system that deprecated Carbon APIs are
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
available. To enable deprecated FreeType2 functions as far as possible,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
replace src/base/ftmac.c by builds/mac/ftmac.c.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
Starting with Mac OS X 10.5, gcc defaults the deployment target
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
to 10.5. In previous versions of Mac OS X, this defaulted to 10.1.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
If you want your built binaries to run only on 10.5, this change
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
does not concern you.  If you want them to also run on older versions
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
of Mac OS X, then you must either set the MACOSX_DEPLOYMENT_TARGET
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
environment variable or pass -mmacosx-version-min to gcc. You should
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
specify the oldest version of Mac OS you want the code to run on.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
For example, if you use Bourne shell:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
	export MACOSX_DEPLOYMENT_TARGET=10.2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
or, if you use C shell:
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
	setenv MACOSX_DEPLOYMENT_TARGET 10.2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
Alternatively, you could pass "-mmacosx-version-min=10.2" to gcc.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
Here the number 10.2 is the lowest version that the built binaries
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
can run on. In the cases in above, the built binaries will run on
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
Mac OS X 10.2 and later, but _not_ earlier. If you want to run on
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
earlier, you have to set lower version, e.g. 10.0.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
For classic Mac OS (Mac OS 7, 8, 9) please refer to builds/mac/README.