diff --git a/dports/python/py-lightblue/Portfile b/dports/python/py-lightblue/Portfile
index abe42ff..1138a60 100644
a
|
b
|
if {${subport} != ${name}} { |
60 | 60 | ${worksrcpath}/src/mac/LightAquaBlue/__init__.py |
61 | 61 | } |
62 | 62 | } |
| 63 | |
| 64 | if {${os.platform} == "darwin" && ${os.major} >= 12} { |
| 65 | # Fix #37361: use 10.7 SDK on 10.8 or later |
| 66 | configure.sdkroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk |
| 67 | } |
63 | 68 | |
64 | 69 | post-patch { |
65 | 70 | reinplace "s|/Library/Frameworks|${frameworks_dir}|g" \ |
66 | 71 | ${worksrcpath}/setup.py \ |
67 | 72 | ${worksrcpath}/src/mac/_LightAquaBlue.py |
68 | | reinplace "s|DSTROOT=/|DSTROOT=${destroot}|g" \ |
| 73 | reinplace "s|DSTROOT=/|SDKROOT='${configure.sdkroot}' DSTROOT='${destroot}'|g" \ |
69 | 74 | ${worksrcpath}/setup.py |
70 | 75 | } |
71 | 76 | } |