1 | # $Id: Portfile 38907 2008-08-02 09:22:34Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name fltk |
---|
6 | version 1.1.9 |
---|
7 | categories aqua devel |
---|
8 | platforms macosx |
---|
9 | maintainers nomaintainer |
---|
10 | description Fast Light Tool Kit |
---|
11 | |
---|
12 | long_description \ |
---|
13 | FLTK (pronounced fulltick) \ |
---|
14 | is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \ |
---|
15 | Microsoft Windows, and Mac OS X. \ |
---|
16 | FLTK provides modern GUI functionality without the bloat \ |
---|
17 | and supports 3D graphics via OpenGL and \ |
---|
18 | its built-in GLUT emulation. \ |
---|
19 | \ |
---|
20 | FLTK is designed to be small and modular enough to be \ |
---|
21 | statically linked, but works fine as a shared library. \ |
---|
22 | FLTK also includes an excellent UI builder called FLUID \ |
---|
23 | that can be used to create applications in minutes. |
---|
24 | |
---|
25 | homepage http://www.fltk.org/ |
---|
26 | master_sites http://ftp.easysw.com/pub/fltk/${version}/ |
---|
27 | worksrcdir ${name}-${version} |
---|
28 | distname ${worksrcdir}-source |
---|
29 | use_bzip2 yes |
---|
30 | |
---|
31 | checksums md5 e146fd264e1001b1313acfd41ef75552 \ |
---|
32 | sha1 6f21903dc53c829ec71e8e49655eb19e624c8247 |
---|
33 | |
---|
34 | depends_lib port:jpeg \ |
---|
35 | port:libpng \ |
---|
36 | port:zlib |
---|
37 | |
---|
38 | # Can be removed once MacPorts 1.7.0 is released |
---|
39 | if {![info exists applications_dir]} { |
---|
40 | set applications_dir /Applications/MacPorts |
---|
41 | } |
---|
42 | |
---|
43 | post-patch { |
---|
44 | reinplace "s|/Applications|${applications_dir}/${name}|g" \ |
---|
45 | ${worksrcpath}/fluid/Makefile \ |
---|
46 | ${worksrcpath}/test/Makefile |
---|
47 | } |
---|
48 | |
---|
49 | configure.args --enable-threads \ |
---|
50 | --mandir=${prefix}/share/man |
---|
51 | |
---|
52 | use_parallel_build yes |
---|
53 | |
---|
54 | destroot.target install \ |
---|
55 | install-desktop |
---|
56 | |
---|
57 | post-activate { |
---|
58 | system "${prefix}/bin/fltk-config --post fluid" |
---|
59 | } |
---|
60 | |
---|