1 | # -*- 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 91761 2012-04-09 23:34:12Z macsforever2000@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fltk-devel |
---|
7 | conflicts fltk |
---|
8 | version 1.3.x-r9327 |
---|
9 | categories aqua devel |
---|
10 | platforms macosx |
---|
11 | maintainers nomaintainer |
---|
12 | description Fast Light Tool Kit |
---|
13 | license LPGL-2 |
---|
14 | |
---|
15 | long_description \ |
---|
16 | FLTK (pronounced fulltick) \ |
---|
17 | is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \ |
---|
18 | Microsoft Windows, and Mac OS X. \ |
---|
19 | FLTK provides modern GUI functionality without the bloat \ |
---|
20 | and supports 3D graphics via OpenGL and \ |
---|
21 | its built-in GLUT emulation. \ |
---|
22 | \ |
---|
23 | FLTK is designed to be small and modular enough to be \ |
---|
24 | statically linked, but works fine as a shared library. \ |
---|
25 | FLTK also includes an excellent UI builder called FLUID \ |
---|
26 | that can be used to create applications in minutes. |
---|
27 | |
---|
28 | homepage http://www.fltk.org/ |
---|
29 | master_sites http://ftp.easysw.com/pub/fltk/snapshots/ |
---|
30 | distname fltk-${version} |
---|
31 | use_bzip2 yes |
---|
32 | |
---|
33 | checksums rmd160 2e36d429588e2c4456a8546c240e94d46e5704b5 \ |
---|
34 | sha256 22ef47cd25c3f77e038dd4832ab5d3020baf123fa7e0b02fca8f9a39463b4684 |
---|
35 | |
---|
36 | depends_lib port:jpeg \ |
---|
37 | port:libpng \ |
---|
38 | port:zlib |
---|
39 | |
---|
40 | use_parallel_build yes |
---|
41 | |
---|
42 | post-patch { |
---|
43 | # set .app directory |
---|
44 | reinplace "s|/Applications|${applications_dir}/fltk|g" \ |
---|
45 | ${worksrcpath}/fluid/Makefile \ |
---|
46 | ${worksrcpath}/test/Makefile |
---|
47 | } |
---|
48 | |
---|
49 | post-configure { |
---|
50 | reinplace -E {s|-arch [a-z0-9_]+||g} \ |
---|
51 | ${worksrcpath}/fltk-config |
---|
52 | } |
---|
53 | |
---|
54 | # FIXME: Workaround a project bug |
---|
55 | # http://llvm.org/bugs/show_bug.cgi?id=10338 |
---|
56 | if {${configure.compiler}=="clang"} { |
---|
57 | configure.compiler llvm-gcc-4.2 |
---|
58 | } |
---|
59 | |
---|
60 | pre-configure { |
---|
61 | configure.args-append --with-archflags=\"[get_canonical_archflags]\" |
---|
62 | |
---|
63 | configure.universal_cflags ${configure.cflags} |
---|
64 | configure.universal_cppflags ${configure.cppflags} |
---|
65 | configure.universal_cxxflags ${configure.cxxflags} |
---|
66 | configure.universal_ldflags ${configure.ldflags} |
---|
67 | } |
---|
68 | |
---|
69 | configure.cppflags |
---|
70 | configure.ldflags |
---|
71 | |
---|
72 | configure.args-append \ |
---|
73 | --enable-shared \ |
---|
74 | --disable-localjpeg \ |
---|
75 | --disable-localzlib \ |
---|
76 | --disable-localpng |
---|
77 | |
---|
78 | destroot.target install \ |
---|
79 | install-desktop |
---|
80 | |
---|
81 | livecheck.type regexm |
---|
82 | livecheck.url ${homepage} |
---|
83 | livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'" |
---|