1 | # $Id: Portfile 79253 2011-06-07 02:23:54Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup muniversal 1.0 |
---|
5 | |
---|
6 | name libdevil |
---|
7 | version 1.7.8 |
---|
8 | revision 3 |
---|
9 | categories devel multimedia |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description Library to develop applications with powerful image \ |
---|
13 | loading capabilities |
---|
14 | long_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 | |
---|
27 | homepage http://openil.sourceforge.net/ |
---|
28 | master_sites sourceforge:openil |
---|
29 | distname DevIL-${version} |
---|
30 | checksums md5 7918f215524589435e5ec2e8736d5e1d \ |
---|
31 | sha1 bc27e3e830ba666a3af03548789700d10561fcb1 \ |
---|
32 | rmd160 a3cdb14fcca5e75ada240a53cbdc3e749a759da5 |
---|
33 | worksrcdir devil-${version} |
---|
34 | |
---|
35 | depends_lib port:lcms \ |
---|
36 | port:libmng \ |
---|
37 | port:libpng \ |
---|
38 | port:jasper \ |
---|
39 | port:xrender \ |
---|
40 | port:mesa |
---|
41 | |
---|
42 | patchfiles 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 | |
---|
47 | configure.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 |
---|
56 | if {![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 | } |
---|
65 | set merger_configure_args(i386) --enable-x86 |
---|
66 | set merger_configure_args(x86_64) --enable-x86_64 |
---|
67 | set merger_configure_args(ppc) --enable-ppc |
---|
68 | set merger_configure_args(ppc64) --enable-ppc |
---|
69 | |
---|
70 | post-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 | |
---|
77 | variant sdl description {Enable libSDL renderer} { |
---|
78 | depends_lib-append port:libsdl |
---|
79 | configure.args-delete --disable-sdl |
---|
80 | } |
---|
81 | |
---|
82 | livecheck.type regex |
---|
83 | livecheck.url http://sourceforge.net/project/showfiles.php?group_id=4470&package_id=24273 |
---|
84 | livecheck.regex "DevIL-(.+?).tar.gz" |
---|