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

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

Added share/doc files.
Added configure arg to prevent SDL test (prevents build crash from remote
or headless terminal).
Bumped revision.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.8 2005/01/24 06:41:09 rshaw Exp $
2PortSystem              1.0
3name                    libsdl_image
4version                 1.2.4
5revision                3
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             bin:sdl-config:libsdl \
18                                lib:libpng:libpng \
19                                lib:libjpeg:jpeg
20
21configure.env   CFLAGS="-I${prefix}/include" \
22                                LDFLAGS="-L${prefix}/lib"
23configure.args  --disable-sdltest
24
25build.env               ${configure.env}
26
27post-destroot   {
28        xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
29        xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
30                ${destroot}${prefix}/share/doc/${name}
31}
32
33platform darwin {
34        post-extract {
35                system "cd ${worksrcpath} && tar -xvzf PBProjects.tar.gz"
36        }
37        post-patch {
38                reinplace "s|~/Library/Frameworks|./build/Frameworks|g" \
39                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
40                reinplace "s|\$(HOME)/Library/Frameworks|/Library/Frameworks|g" \
41                        ${worksrcpath}/PBProjects/SDL_image.pbproj/project.pbxproj
42        }
43        post-build {
44                build.dir               "${worksrcpath}/PBProjects"
45                build.type              pbx
46                build.target    -buildstyle Deployment -target Framework
47                system "[command build]"
48                cd ${worksrcpath}/PBProjects
49                system "install_name_tool -id /Library/Frameworks/SDL_image.framework/SDL_image \
50                        build/Frameworks/SDL_image.framework/SDL_image"
51        }
52        destroot.dir    ${worksrcpath}
53        destroot.cmd    make
54        post-destroot {
55                cd "${worksrcpath}/PBProjects/build/Frameworks"
56                xinstall -d -m 0755 ${destroot}/Library/Frameworks
57                system "cp -R SDL_image.framework ${destroot}/Library/Frameworks"
58        }
59}
60
61platform darwin 6 {
62        depends_lib-append      lib:libdl:dlcompat
63}
64
Note: See TracBrowser for help on using the repository browser.