Ticket #14944: Portfile

File Portfile, 1.6 KB (added by alakazam@…, 16 years ago)
Line 
1# $Id: Portfile 32871 2008-01-14 09:29:56Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            fltk
6version         1.1.8
7categories      aqua devel
8platforms       macosx
9maintainers     nomaintainer
10description     Fast Light Tool Kit
11
12long_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
25homepage        http://www.fltk.org/
26master_sites    http://ftp.easysw.com/pub/fltk/1.1.8/
27worksrcdir      ${name}-${version}
28distname        ${worksrcdir}-source
29use_bzip2       yes
30
31checksums       md5 0f272d7299778e42fcbedf3c01741f4f \
32                sha1 ea2ba012025726f28f1b58451489f12c5bba42ac \
33                rmd160 7ae097f78111c6ab577f184ac292912ff14c8416
34
35depends_lib     port:jpeg \
36                port:libpng \
37                port:zlib
38
39post-patch {
40    reinplace "s|/Applications|/Applications/MacPorts/${name}|g" \
41        ${worksrcpath}/fluid/Makefile \
42        ${worksrcpath}/test/Makefile
43}
44
45configure.args  --enable-threads \
46                --mandir=${prefix}/share/man
47
48destroot.target install \
49                install-desktop
50
51post-activate {
52    system "${prefix}/bin/fltk-config --post fluid"
53}