1 | # $Id: Portfile,v 1.5 2004/06/03 21:30:06 mij Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name fltk |
---|
5 | version 1.1.6 |
---|
6 | categories x11 |
---|
7 | maintainers yves@opendarwin.org |
---|
8 | description Fast Light Tool Kit |
---|
9 | homepage http://www.fltk.org/ |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | long_description FLTK (pronounced fulltick) \ |
---|
13 | is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \ |
---|
14 | Microsoft Windows, and MacOS X. \ |
---|
15 | FLTK provides modern GUI functionality without the bloat \ |
---|
16 | and supports 3D graphics via OpenGL and \ |
---|
17 | its built-in GLUT emulation. \ |
---|
18 | \ |
---|
19 | FLTK is designed to be small and modular enough to be \ |
---|
20 | statically linked, but works fine as a shared library. \ |
---|
21 | FLTK also includes an excellent UI builder called FLUID \ |
---|
22 | that can be used to create applications in minutes. |
---|
23 | |
---|
24 | master_sites sourceforge |
---|
25 | |
---|
26 | use_bzip2 yes |
---|
27 | distfiles ${name}-${version}-source${extract.suffix} |
---|
28 | checksums md5 95d340977d13edea12e98d787a668b32 |
---|
29 | |
---|
30 | depends_lib lib:libX11.6:XFree86 port:jpeg \ |
---|
31 | port:libpng port:Xft2 port:zlib |
---|
32 | |
---|
33 | patchfiles patch-fltk-config.in patch-makeinclude.in |
---|
34 | post-patch { |
---|
35 | reinplace "s|Carbon.H|Carbon.h|g" \ |
---|
36 | ${worksrcpath}/src/Fl_Menu.cxx \ |
---|
37 | ${worksrcpath}/src/Fl_Preferences.cxx |
---|
38 | } |
---|
39 | |
---|
40 | configure.env LDFLAGS="-L${prefix}/lib" \ |
---|
41 | CFLAGS="-I${prefix}/include" \ |
---|
42 | CPPFLAGS="-I${prefix}/include" |
---|
43 | |
---|
44 | configure.args --enable-xft --enable-shared \ |
---|
45 | --mandir=${prefix}/share/man \ |
---|
46 | --with-x |
---|
47 | |
---|
48 | variant darwin { |
---|
49 | patchfiles-append patch-configure |
---|
50 | } |
---|
51 | |
---|
52 | variant macosx { |
---|
53 | patchfiles-append patch-fluid-Makefile |
---|
54 | post-install { |
---|
55 | ui_msg " |
---|
56 | ============================================================== |
---|
57 | You need to do |
---|
58 | 'sudo fltk-config --post /Applications/DarwinPorts/fltk/fluid' |
---|
59 | before using fluid |
---|
60 | ==============================================================" |
---|
61 | } |
---|
62 | } |
---|