text: Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
  Hi,
  in order to make plplot run with the freetype library on win32, some
  changes need to be done (patch attached):
  cmake/modules/freetype.cmake:
  WINDOWS/windows is not defined, therefore even on win32 it never jumps
  into this parts of the cmake file. This has to be replaced with WIN32
  cmake/modules/wingcc.cmake:
  added freetype includes/library (copied from wxwidgets.cmake)
  src/plfreetype.c:
  visual c++ has a problem with the definition of access(). Also MINGW was
  not defined for my MinGW compiler. Therefore I changed the #ifdef to
  make it also clearer for the programmer:
  #if !defined(WIN32) || defined(__GNUC__)
  #include <unistd.h>
  #else
  #define F_OK 1
  #include <stdio.h>
  int access( char *filename, int flag ) {
  so if we DON'T have WIN32 defined or __GNUC__ is defined (as is the case
  for MinGW) we use unistd.h, otherwise we define access().
  I tested this patch for Visual C++ and MinGW for the wingcc and
  wxwidgets driver and it worked. This patch should have no effect on any
  other platform.
  Here are the cookbooks. You need to set the path to find the library and
  CMAKE_INCLUDE_PATH so that cmake finds the include files. Mind, you also
  need ming32-make for the Viusal C++ build!!!
  MinGW:
  * download and unzip freetype 2.2.1 (ft221.zip)
  * mingw32-make (compiler is detected)
  * mingw32-make (to compile the library)
  * copy objs\freetype.a objs\libfreetype.a
  * set FREETYPEDIR=C:\DevZone\freetype-2.2.1
  * set PATH=%FREETYPEDIR%\objs;%PATH%
  * set CMAKE_INCLUDE_PATH=%FREETYPEDIR%\include
  * run cmake with your options
  Visual C++ 2005
  * download and unzip freetype 2.2.1 (ft221.zip)
  * change line 69 of freetype-2.2.1\builds\compiler\visualc.mk to
  CFLAGS ?= /nologo /c /Ox /W3 /WX /D_CRT_SECURE_NO_DEPRECATE
  otherwise it stops the build because of warnings (/WX) since it
  doesn't know the /G5 option (this may not be necessary for
  Visual C++ 6.0 and/or 2003
  * path_to_gnu_make\mingw32-make setup visualc
  * path_to_gnu_make\mingw32-make
  * set FREETYPEDIR=C:\DevZone\freetype-2.2.1
  * set PATH=%FREETYPEDIR%\objs;%PATH%
  * set CMAKE_INCLUDE_PATH=%FREETYPEDIR%\include
  * run cmake with your options
  Please apply the patch if you think it's okay.