Freetype in Mountain Lion and higher

Anthony Petrov anthony.petrov at oracle.com
Wed May 2 08:39:23 PDT 2012


On 5/2/2012 5:23 PM, Henri Gomez wrote:
>> As Mike mentioned several times, and I agree with him, the best approach
>> would be to build a private copy of the freetype library when OpenJDK is
>> being built, and ship it together with the OpenJDK binaries. In this case we
>> avoid having unnecessary dependencies on optional OS X components, and also
>> get rid of any library versions issues that may arise when e.g. (not)
>> upgrading your operating system.
>>
>> Note that we do that with OpenJDK on MS Windows platform. Please refer to
>> the Windows make files for more details. Patches are always welcome! :)
> 
> I already do some experiments with it and prepared some hacks around
> package/build process.
> And got some questions about jdk/make/sun/font/Makefile :
> 
> ie: why hardcoding version 6 of dynamic library for freetype.
> 
> 
>     ifeq ($(USING_SYSTEM_FT_LIB), false)
>       FREETYPE_LIB = $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX).6
>     endif

I'd defer the answer to 2D folks. I can only speculate that this must be 
a minimum required version. Perhaps the makefiles logic might be 
enhanced in this area.

--
best regards,
Anthony


More information about the macosx-port-dev mailing list