source: trunk/dports/devel/libsdl_image/Portfile

Last change on this file was 148198, checked in by jmr@…, 15 months ago

libsdl_image: apply upstream patch to remove incorrect use of CGColorSpace APIs (#37453). Also disable ImageIO support on 10.5 since it is unable to load some images (#38012).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 148198 2016-04-29 14:18:37Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libsdl_image
7set my_name     SDL_image
8version         1.2.12
9revision        5
10categories      devel graphics
11platforms       darwin
12license         zlib
13maintainers     jmr openmaintainer
14description     Add on library for libSDL handling several image formats
15
16long_description \
17    This is a simple library to load images of various formats as SDL surfaces. \
18    This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
19
20homepage        http://www.libsdl.org/projects/SDL_image/release-1.2.html
21master_sites    http://www.libsdl.org/projects/SDL_image/release/
22distname        ${my_name}-${version}
23
24checksums       rmd160 206990959c6b225286c0a19bc05b991c6bc2c3e8 \
25                sha256 0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699
26
27depends_build   port:pkgconfig
28depends_lib     port:libsdl \
29                port:libpng \
30                port:jpeg \
31                port:tiff \
32                port:zlib
33
34# https://trac.macports.org/ticket/37453
35patchfiles      IMG_ImageIO.m.patch
36
37configure.args  --disable-sdltest \
38                --enable-jpg-shared=false \
39                --enable-png-shared=false \
40                --enable-tif-shared=false
41
42post-destroot {
43    set docdir ${prefix}/share/doc/${name}
44    xinstall -d ${destroot}${docdir}
45    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
46        ${destroot}${docdir}
47}
48
49if {${os.platform} eq "darwin" && ${os.major} <= 9} {
50    # https://trac.macports.org/ticket/33015
51    # https://trac.macports.org/ticket/38012
52    configure.args-append --disable-imageio
53}
54
55livecheck.type  regex
56livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.