1 | # $Id: Portfile,v 1.6 2005/06/08 11:16:48 mww Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name libsdl_net-framework |
---|
5 | version 1.2.5 |
---|
6 | platforms darwin |
---|
7 | categories devel net |
---|
8 | maintainers rshaw@opendarwin.org |
---|
9 | description cross-platform networking library |
---|
10 | long_description This is a small sample cross-platform networking \ |
---|
11 | library, with a sample chat client and server \ |
---|
12 | application. The chat client uses the GUIlib GUI \ |
---|
13 | framework library. |
---|
14 | homepage http://www.libsdl.org/projects/SDL_net/ |
---|
15 | master_sites ${homepage}/release/ |
---|
16 | distname SDL_net-${version} |
---|
17 | checksums md5 e45b1048d2747480dcc65ece4130a920 |
---|
18 | depends_lib port:libsdl_net |
---|
19 | |
---|
20 | configure.args --disable-sdltest |
---|
21 | |
---|
22 | post-extract { |
---|
23 | system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz" |
---|
24 | } |
---|
25 | |
---|
26 | post-patch { |
---|
27 | reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \ |
---|
28 | ${worksrcpath}/PBProjects/SDL_net.pbproj/project.pbxproj |
---|
29 | reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \ |
---|
30 | ${worksrcpath}/PBProjects/SDL_net.pbproj/project.pbxproj |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
34 | build.dir "${worksrcpath}/PBProjects" |
---|
35 | build.type pbx |
---|
36 | build.target -buildstyle Deployment -target Framework |
---|
37 | |
---|
38 | post-build { |
---|
39 | cd ${worksrcpath}/PBProjects |
---|
40 | system "install_name_tool -id /Library/Frameworks/SDL_net.framework/SDL_net \ |
---|
41 | build/Frameworks/SDL_net.framework/SDL_net" |
---|
42 | } |
---|
43 | |
---|
44 | destroot.cmd {} |
---|
45 | destroot.target {} |
---|
46 | |
---|
47 | post-destroot { |
---|
48 | cd "${worksrcpath}/PBProjects/build/Frameworks" |
---|
49 | xinstall -d -m 0755 ${destroot}/Library/Frameworks |
---|
50 | system "cp -R SDL_net.framework ${destroot}/Library/Frameworks" |
---|
51 | } |
---|
52 | |
---|
53 | platform darwin 6 { |
---|
54 | depends_lib-append lib:libdl:dlcompat |
---|
55 | } |
---|
56 | |
---|