Ticket #3469: Portfile

File Portfile, 1.5 KB (added by benwill@…, 19 years ago)

non-functional libsdl_net-framework portfile (can't find sdl.h)

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}
32
33
34build.dir       "${worksrcpath}/PBProjects"
35build.type      pbx
36build.target    -buildstyle Deployment -target Framework
37
38post-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
44destroot.cmd    {}
45destroot.target {}     
46
47post-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
53platform darwin 6 {
54        depends_lib-append      lib:libdl:dlcompat
55}
56