| 33 | platform darwin 8 { |
| 34 | post-extract { |
| 35 | system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz" |
| 36 | } |
| 37 | post-patch { |
| 38 | reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \ |
| 39 | ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj |
| 40 | reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \ |
| 41 | ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj |
| 42 | reinplace "s|\$HOME/Library/Frameworks|/Library/Frameworks|g" \ |
| 43 | ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj |
| 44 | } |
| 45 | post-build { |
| 46 | build.dir "${worksrcpath}/PBProjects" |
| 47 | build.type pbx |
| 48 | build.target -buildstyle Deployment -target Framework |
| 49 | system "[command build]" |
| 50 | cd ${worksrcpath}/PBProjects |
| 51 | system "install_name_tool -id /Library/Frameworks/SDL_image.framework/SDL_image \ |
| 52 | build/Frameworks/SDL_image.framework/SDL_image" |
| 53 | } |
| 54 | destroot.dir ${worksrcpath} |
| 55 | destroot.cmd make |
| 56 | post-destroot { |
| 57 | cd "${worksrcpath}/PBProjects/build/Frameworks" |
| 58 | xinstall -d -m 0755 ${destroot}/Library/Frameworks |
| 59 | system "cp -R SDL_image.framework ${destroot}/Library/Frameworks" |
| 60 | } |
| 61 | } |
| 62 | |