source: trunk/dports/devel/libsdl_image/Portfile @ 10580

Last change on this file since 10580 was 10580, checked in by rshaw, 14 years ago

removed unneeded comment

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1# $Id: Portfile,v 1.6 2005/01/24 00:22:03 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
13master_sites    http://www.libsdl.org/projects/SDL_image/release/
14homepage        http://www.libsdl.org/
15distname                SDL_image-${version}
16checksums               md5 70bf617f99e51a2c94550fc79d542f0b
17depends_lib             lib:libSDL-1.2.0:libsdl \
18                                lib:libpng:libpng \
19                                lib:libjpeg:jpeg
20
21configure.env   CFLAGS="-I${prefix}/include" \
22                                LDFLAGS="-L${prefix}/lib"
23
24build.env               ${configure.env}
25
26platform darwin {
27        post-extract {
28                system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
29        }
30        post-patch {
31                reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
32                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
33                reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
34                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
35        }
36        post-build {
37                build.dir               "${worksrcpath}/PBProjects"
38                build.type              pbx
39                build.target    -buildstyle Deployment -target Framework
40                system "[command build]"
41                cd ${worksrcpath}/PBProjects
42                system "install_name_tool -id /Library/Frameworks/SDL_image.framework/SDL_image \
43                        build/Frameworks/SDL_image.framework/SDL_image"
44        }
45        destroot.dir    ${worksrcpath}
46        destroot.cmd    make
47        post-destroot {
48                cd "${worksrcpath}/PBProjects/build/Frameworks"
49                xinstall -d -m 0755 ${destroot}/Library/Frameworks
50                system "cp -R SDL_image.framework ${destroot}/Library/Frameworks"
51        }
52}
53
54platform darwin 6 {
55        depends_lib-append      lib:libdl:dlcompat
56}
57
Note: See TracBrowser for help on using the repository browser.