@@ -0,0 +1,37 @@
1+diff --git a/freetype/raw.py b/freetype/raw.py
2+index ff3bea3..78c68ab 100644
3+--- a/freetype/raw.py
4++++ b/freetype/raw.py
5+@@ -19,31 +19,7 @@ from freetype.ft_enums import *
6+ from freetype.ft_errors import *
7+ from freetype.ft_structs import *
8+
9+-# First, look for a bundled FreeType shared object on the top-level of the
10+-# installed freetype-py module.
11+-system = platform.system()
12+-if system == 'Windows':
13+- library_name = 'libfreetype.dll'
14+-elif system == 'Darwin':
15+- library_name = 'libfreetype.dylib'
16+-else:
17+- library_name = 'libfreetype.so'
18+-
19+-filename = os.path.join(os.path.dirname(freetype.__file__), library_name)
20+-
21+-# If no bundled shared object is found, look for a system-wide installed one.
22+-if not os.path.exists(filename):
23+- # on windows all ctypes does when checking for the library
24+- # is to append .dll to the end and look for an exact match
25+- # within any entry in PATH.
26+- filename = ctypes.util.find_library('freetype')
27+-
28+- if filename is None:
29+- if platform.system() == 'Windows':
30+- # Check current working directory for dll as ctypes fails to do so
31+- filename = os.path.join(os.path.realpath('.'), "freetype.dll")
32+- else:
33+- filename = library_name
34++filename = "@freetype@"
35+
36+ try:
37+ _lib = ctypes.CDLL(filename)