Ticket #3469: Portfile.2

File Portfile.2, 1.7 KB (added by benwill@…, 19 years ago)

New, working libsdl_net-framework portfile

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