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

Last change on this file since 30140 was 30140, checked in by nox@…, 12 years ago

libsdl_image: Fixed a bug with image library dynamic loading.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 30140 2007-10-21 13:17:48Z nox@macports.org $
2
3PortSystem      1.0
4
5name            libsdl_image
6set my_name     SDL_image
7version         1.2.6
8revision        2
9categories      devel graphics
10platforms       macosx
11maintainers     nox openmaintainer
12description     Add on library for libSDL handling several image formats
13
14long_description \
15    This is a simple library to load images of various formats as SDL surfaces. \
16    This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.
17
18homepage        http://www.libsdl.org/projects/SDL_image/
19master_sites    ${homepage}release/
20distname        ${my_name}-${version}
21
22checksums       md5 b866dc4f647517bdaf57f6ffdefd013e \
23                sha1 5045df31e4db29d8890110fd18024c9d08efca30 \
24                rmd160 8aea5f07216eb887f599c0908f8ea2c2f9eeac93
25
26depends_lib     port:libsdl port:libpng port:jpeg port:tiff port:zlib
27
28configure.args  --disable-sdltest
29
30post-configure {
31    # We need to pass absolute path to dlopen().
32    reinplace -E "/^DEFS =/s|(LOAD_\[A-Z\]+_DYNAMIC=\\\\\")|\\1${prefix}/lib/|g" \
33        ${worksrcpath}/Makefile
34}
35
36post-destroot {
37    set docdir ${prefix}/share/doc/${name}-${version}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
40        ${destroot}${docdir}
41}
42
43livecheck.check regex
44livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
45
Note: See TracBrowser for help on using the repository browser.