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

Last change on this file since 75272 was 75272, checked in by jmr@…, 8 years ago

libsdl_image: add pkgconfig build dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 75272 2011-01-19 14:35:44Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            libsdl_image
7set my_name     SDL_image
8version         1.2.10
9revision        3
10categories      devel graphics
11platforms       macosx
12maintainers     jmr openmaintainer
13description     Add on library for libSDL handling several image formats
14
15long_description \
16    This is a simple library to load images of various formats as SDL surfaces. \
17    This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
18
19homepage        http://www.libsdl.org/projects/SDL_image/
20master_sites    ${homepage}release/
21distname        ${my_name}-${version}
22
23checksums       md5     6c06584b31559e2b59f2b982d0d1f628 \
24                sha1    6bae71fdfd795c3dbf39f6c7c0cf8b212914ef97 \
25                rmd160  8133f7f8d488b1c3f69ad80a941289b4508d2901
26
27depends_build   port:pkgconfig
28depends_lib     path:lib/pkgconfig/sdl.pc:libsdl \
29                port:libpng \
30                port:jpeg \
31                port:tiff \
32                port:zlib
33
34configure.args  --disable-sdltest \
35                --enable-jpg-shared=false \
36                --enable-png-shared=false \
37                --enable-tif-shared=false
38
39pre-configure {
40    configure.env-append    SDL_LIBS='[exec ${prefix}/bin/sdl-config --libs]'
41}
42
43use_parallel_build  yes
44
45post-destroot {
46    set docdir ${prefix}/share/doc/${name}-${version}
47    xinstall -d ${destroot}${docdir}
48    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
49        ${destroot}${docdir}
50}
51
52livecheck.type  regex
53livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.