Changeset 89087


Ignore:
Timestamp:
Jan 19, 2012, 6:28:40 AM (6 years ago)
Author:
jmr@…
Message:

libsdl_net-framework: switch to creating framework the same way as libsdl-framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libsdl_net-framework/Portfile

    r75772 r89087  
    22
    33PortSystem      1.0
    4 PortGroup       xcode 1.0
    54
    65name            libsdl_net-framework
    7 set my_name     SDL_net
    8 version         1.2.7
    9 revision        1
     6version         1.2.8
    107categories      devel net
    11 license         LGPL-2.1+
     8platforms       darwin
     9license         BSD
     10supported_archs noarch
    1211maintainers     jmr openmaintainer
    13 description     cross-platform networking library
     12description     Framework version of libsdl_net
    1413
    1514long_description \
    16     This is a small sample cross-platform networking library, with a sample chat client and server \
    17     application. The chat client uses the GUIlib GUI framework library.
     15    ${description}
    1816
    1917homepage        http://www.libsdl.org/projects/SDL_net/
    20 master_sites    ${homepage}/release/
    21 distname        ${my_name}-${version}
    22 dist_subdir     libsdl_net
     18distfiles
    2319
    24 checksums       md5 6bd4662d1423810f3140d4da21b6d912 \
    25                 sha1 b46c7e3221621cc34fec1238f1b5f0ce8972274d \
    26                 rmd160 5c95cf28f35ceb796188323666b92cafa60fba25
     20depends_run     port:libsdl-framework port:libsdl_net
    2721
    28 depends_lib     port:libsdl-framework
     22use_configure   no
     23build           {}
    2924
    30 xcode.project       Xcode/${my_name}.xcodeproj
    31 xcode.target        Framework
    32 xcode.destroot.type framework
     25destroot {
     26    set path ${frameworks_dir}/SDL_net.framework
     27    xinstall -d ${destroot}${path}/Versions/A/Headers
    3328
    34 post-extract {
    35     system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz Xcode/{exports/${my_name}.x,Info-Framework__Upgraded_.plist,${my_name}.xcodeproj}"
     29    ln -sf ${prefix}/lib/libSDL_net.dylib ${destroot}${path}/Versions/A/SDL_net
     30    ln -sf Versions/A/SDL_net ${destroot}${path}/SDL_net
     31
     32    ln -sf ${prefix}/include/SDL/SDL_net.h ${destroot}${path}/Versions/A/Headers/
     33    ln -sf Versions/A/Headers ${destroot}${path}/Headers
    3634}
    3735
    38 post-patch {
    39     set pbxproj ${worksrcpath}/${xcode.project}/project.pbxproj
    40 
    41     reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)(_ppc|_i386)? =/d" ${pbxproj}
    42     reinplace "s|~/Library/Frameworks|./build/Frameworks|g" ${pbxproj}
    43     reinplace "s|\$(HOME)/Library/Frameworks|${frameworks_dir}|g" ${pbxproj}
    44 }
    45 
    46 livecheck.type  regex
    47 livecheck.url   ${homepage}
    48 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
     36livecheck.type  none
Note: See TracChangeset for help on using the changeset viewer.