--- sdl2/dll.py.orig	2014-05-31 18:34:13.000000000 +1000
+++ sdl2/dll.py	2014-07-10 04:25:40.000000000 +1000
@@ -33,6 +33,11 @@
                 dllfile = os.path.join(subpath, pattern % libname)
                 if os.path.exists(dllfile):
                     results.append(dllfile)
+    # MacPorts addition: search in our prefix first
+    for libname in searchfor:
+        dllfile = os.path.join('__PREFIX__', 'lib', pattern % libname)
+        if os.path.exists(dllfile):
+            results.append(dllfile)
     for libname in searchfor:
         dllfile = find_library(libname)
         if dllfile: