# -*- 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 # $Id: Portfile 97609 2012-09-09 21:59:38Z ryandesign@macports.org $ PortSystem 1.0 name fltk-devel conflicts fltk version 1.3.x-r9678 categories aqua devel license LGPL platforms macosx maintainers nomaintainer description Fast Light Tool Kit long_description \ FLTK (pronounced fulltick) \ is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \ Microsoft Windows, and Mac OS X. \ FLTK provides modern GUI functionality without the bloat \ and supports 3D graphics via OpenGL and \ its built-in GLUT emulation. \ \ FLTK is designed to be small and modular enough to be \ statically linked, but works fine as a shared library. \ FLTK also includes an excellent UI builder called FLUID \ that can be used to create applications in minutes. homepage http://www.fltk.org/ master_sites http://ftp.easysw.com/pub/fltk/snapshots/ distname fltk-${version} use_bzip2 yes checksums rmd160 b7f72e7b3ecf9483e212ced1a71be93ffae3b8d0 \ sha256 bf40e47ee986691ee5044eb001803c9e4419e2d7d26d2d316db4884f4626e6ed depends_lib port:jpeg \ port:libpng \ port:zlib use_parallel_build yes patchfiles patch-fluid-Makefile.diff \ patch-src-Makefile.diff post-patch { reinplace "s|/Applications|${applications_dir}/fltk|g" \ ${worksrcpath}/fluid/Makefile \ ${worksrcpath}/test/Makefile # Disable silent rules reinplace "/^\\.SILENT:$/d" ${worksrcpath}/makeinclude.in } variant universal {} configure.args --enable-shared \ --disable-localjpeg \ --disable-localzlib \ --disable-localpng \ --with-archflags="[get_canonical_archflags]" post-configure { reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/fltk-config } destroot.target install \ install-desktop livecheck.type regexm livecheck.url ${homepage} livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"