Ticket #17001: Portfile

File Portfile, 1.7 KB (added by drakedowsett@…, 16 years ago)
Line 
1# $Id: Portfile 38907 2008-08-02 09:22:34Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            fltk
6version         1.1.9
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/${version}/
27worksrcdir      ${name}-${version}
28distname        ${worksrcdir}-source
29use_bzip2       yes
30
31checksums       md5 e146fd264e1001b1313acfd41ef75552 \
32                sha1 6f21903dc53c829ec71e8e49655eb19e624c8247
33
34depends_lib     port:jpeg \
35                port:libpng \
36                port:zlib
37
38# Can be removed once MacPorts 1.7.0 is released
39if {![info exists applications_dir]} {
40    set applications_dir /Applications/MacPorts
41}
42
43post-patch {
44    reinplace "s|/Applications|${applications_dir}/${name}|g" \
45        ${worksrcpath}/fluid/Makefile \
46        ${worksrcpath}/test/Makefile
47}
48
49configure.args  --enable-threads \
50                --mandir=${prefix}/share/man
51
52use_parallel_build  yes
53
54destroot.target install \
55                install-desktop
56
57post-activate {
58    system "${prefix}/bin/fltk-config --post fluid"
59}
60