Ignore:
Timestamp:
Jan 24, 2005, 12:08:21 AM (14 years ago)
Author:
rshaw
Message:

Added building of SDL_image.framework on darwin/macosx.
Bumped revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libsdl_image/Portfile

    r10492 r10579  
    1 # $Id: Portfile,v 1.4 2005/01/20 01:04:37 rshaw Exp $
    2 
    3 PortSystem 1.0
    4 name            libsdl_image
    5 version         1.2.4
    6 categories      devel graphics
    7 maintainers     rshaw@opendarwin.org
    8 description     Add on library for libSDL handling several image formats
    9 long_description        This is a simple library to load images of various formats as SDL surfaces. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
    10 platforms       darwin
     1# $Id: Portfile,v 1.5 2005/01/24 00:08:21 rshaw Exp $
     2PortSystem              1.0
     3name                    libsdl_image
     4version                 1.2.4
     5revision                1
     6categories              devel graphics
     7maintainers             rshaw@opendarwin.org
     8description             Add on library for libSDL handling several image formats
     9long_description        This is a simple library to load images of various \
     10                                        formats as SDL surfaces. This library supports BMP, \
     11                                        PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
     12platforms               darwin
    1113master_sites    http://www.libsdl.org/projects/SDL_image/release/
    1214homepage        http://www.libsdl.org/
    13 distname        SDL_image-${portversion}
    14 checksums       md5 70bf617f99e51a2c94550fc79d542f0b
    15 depends_lib     lib:libSDL:libsdl \
    16                 lib:libpng:libpng \
    17                 lib:libjpeg:jpeg
     15distname                SDL_image-${version}
     16checksums               md5 70bf617f99e51a2c94550fc79d542f0b
     17depends_lib             lib:libSDL-1.2.0:libsdl \
     18                                lib:libpng:libpng \
     19                                lib:libjpeg:jpeg
    1820
    19 configure.args  --with-sdl-prefix=${prefix} --prefix=${prefix} --disable-sdltest
    20 configure.env   CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    21 build.env       ${configure.env}
     21#configure.args --disable-sdltest
     22configure.env   CFLAGS="-I${prefix}/include" \
     23                                LDFLAGS="-L${prefix}/lib"
     24
     25build.env               ${configure.env}
     26
     27platform darwin {
     28        post-extract {
     29                system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
     30        }
     31        post-patch {
     32                reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
     33                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
     34                reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
     35                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
     36        }
     37        post-build {
     38                build.dir               "${worksrcpath}/PBProjects"
     39                build.type              pbx
     40                build.target    -buildstyle Deployment -target Framework
     41                system "[command build]"
     42                cd ${worksrcpath}/PBProjects
     43                system "install_name_tool -id /Library/Frameworks/SDL_image.framework/SDL_image \
     44                        build/Frameworks/SDL_image.framework/SDL_image"
     45        }
     46        destroot.dir    ${worksrcpath}
     47        destroot.cmd    make
     48        post-destroot {
     49                cd "${worksrcpath}/PBProjects/build/Frameworks"
     50                xinstall -d -m 0755 ${destroot}/Library/Frameworks
     51                system "cp -R SDL_image.framework ${destroot}/Library/Frameworks"
     52        }
     53}
     54
     55platform darwin 6 {
     56        depends_lib-append      lib:libdl:dlcompat
     57}
     58
Note: See TracChangeset for help on using the changeset viewer.