Ticket #29749: Portfile

File Portfile, 3.3 KB (added by daftalx@…, 13 years ago)

updated Portfile

Line 
1# $Id: Portfile 79253 2011-06-07 02:23:54Z jmr@macports.org $
2
3PortSystem          1.0
4PortGroup muniversal 1.0
5
6name                libdevil
7version             1.7.8
8revision            3
9categories          devel multimedia
10platforms           darwin
11maintainers         nomaintainer
12description         Library to develop applications with powerful image \
13                    loading capabilities
14long_description    Developer's Image Library (DevIL) is a programmer's \
15                    library to develop applications with very powerful image \
16                    loading capabilities, yet is easy for a developer to \
17                    learn and use. Ultimate control of images is left to the \
18                    developer, so unnecessary conversions, etc. are not \
19                    performed. DevIL utilizes a simple, yet powerful, \
20                    syntax. DevIL can load, save, convert, manipulate, \
21                    filter and display a wide variety of image formats. \
22                    Formerly known as OpenIL, but the name was changed due \
23                    to SGI's request. \
24                    NOTE: changes by daftalx (Revision 3): \
25                     - patched il_png.c to handle libpng 1.4+
26
27homepage            http://openil.sourceforge.net/
28master_sites        sourceforge:openil
29distname            DevIL-${version}
30checksums           md5     7918f215524589435e5ec2e8736d5e1d \
31                    sha1    bc27e3e830ba666a3af03548789700d10561fcb1 \
32                    rmd160  a3cdb14fcca5e75ada240a53cbdc3e749a759da5
33worksrcdir          devil-${version}
34
35depends_lib         port:lcms \
36                    port:libmng \
37                    port:libpng \
38                    port:jasper \
39                    port:xrender \
40                    port:mesa
41
42patchfiles          patch-ilur.c \
43                    patch-devil_internal_exports.h.diff \
44                    patch-src_IL-src-il_png.c.diff \
45                    patch-src_IL-src-il_icon.c.diff
46
47configure.args      --enable-ILU \
48                    --enable-ILUT \
49                    --enable-x11 \
50                    --enable-render \
51                    --enable-shm \
52                    --disable-allegro \
53                    --disable-exr \
54                    --disable-sdl \
55                    --disable-xpm
56if {![variant_isset universal]} {
57    if {${configure.build_arch} == "i386"} {
58        configure.args-append   --enable-x86
59    } elseif {${configure.build_arch} == "x86_64"} {
60        configure.args-append   --enable-x86_64
61    } else {
62        configure.args-append   --enable-ppc
63    }
64}
65set merger_configure_args(i386) --enable-x86
66set merger_configure_args(x86_64) --enable-x86_64
67set merger_configure_args(ppc) --enable-ppc
68set merger_configure_args(ppc64) --enable-ppc
69
70post-destroot {
71    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
72    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING CREDITS ChangeLog \
73        NEWS README TODO ${destroot}${prefix}/share/doc/${name}
74    file copy ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}
75}
76
77variant sdl description {Enable libSDL renderer} {
78    depends_lib-append port:libsdl
79    configure.args-delete --disable-sdl
80}
81
82livecheck.type      regex
83livecheck.url       http://sourceforge.net/project/showfiles.php?group_id=4470&package_id=24273
84livecheck.regex     "DevIL-(.+?).tar.gz"