source: trunk/dports/aqua/fltk-devel/Portfile @ 76619

Last change on this file since 76619 was 76619, checked in by michaelld@…, 9 years ago

fltk-devel:

  • fixes ticket #28573 ;
  • bump to r8472 ;
  • fix livecheck ;
  • update configure.args ;
  • 64-bit works out-of-the-box now.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
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 76619 2011-03-02 21:00:27Z michaelld@macports.org $
3
4PortSystem      1.0
5
6name            fltk-devel
7conflicts       fltk
8version         1.3.x-r8472
9categories      aqua devel
10platforms       macosx
11maintainers     nomaintainer
12description     Fast Light Tool Kit
13
14long_description \
15    FLTK (pronounced fulltick) \
16    is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \
17    Microsoft Windows, and Mac OS X. \
18    FLTK provides modern GUI functionality without the bloat \
19    and supports 3D graphics via OpenGL and \
20    its built-in GLUT emulation. \
21    \
22    FLTK is designed to be small and modular enough to be \
23    statically linked, but works fine as a shared library. \
24    FLTK also includes an excellent UI builder called FLUID \
25    that can be used to create applications in minutes.
26
27homepage        http://www.fltk.org/
28master_sites    http://ftp.easysw.com/pub/fltk/snapshots/
29worksrcdir      ${name}-${version}
30distname        fltk-${version}
31use_bzip2       yes
32
33checksums       md5     b27b9d75effbd88505ed22851e9babf3 \
34                sha1    8258df43f9a60ebe1b4560075a0a8fd85b9127ec \
35                rmd160  7b672d5adb99ffef6cedbdbb4a76b12f5313b82c
36
37depends_lib     port:jpeg \
38                port:libpng \
39                port:zlib
40
41worksrcdir      ${distname}
42
43use_parallel_build  yes
44
45post-patch {
46    # set .app directory
47    reinplace "s|/Applications|${applications_dir}/fltk|g" \
48        ${worksrcpath}/fluid/Makefile \
49        ${worksrcpath}/test/Makefile
50}
51
52pre-configure {
53    if {[variant_isset universal]} {
54        set archflags ${configure.universal_cflags}
55    } else {
56        set archflags ${configure.cc_archflags}
57    }
58    configure.args-append --with-archflags=\"${archflags}\"
59
60    configure.universal_cflags ${configure.cflags}
61    configure.universal_cppflags ${configure.cppflags}
62    configure.universal_cxxflags ${configure.cxxflags}
63    configure.universal_ldflags ${configure.ldflags}
64}
65
66configure.cppflags
67configure.ldflags
68
69configure.args-append   \
70    --enable-shared     \
71    --disable-localjpeg \
72    --disable-localzlib \
73    --disable-localpng
74
75destroot.target install \
76                install-desktop
77
78livecheck.type  regexm
79livecheck.url   ${homepage}
80livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"
Note: See TracBrowser for help on using the repository browser.