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