source: trunk/dports/aqua/fltk/Portfile @ 75876

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

fltk: ensure supported_archs are obeyed, by moving the definition above the first time variables that use architectures are used; see #28367

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 75876 2011-02-11 19:54:18Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            fltk
7conflicts       fltk-devel
8version         1.1.10
9revision        3
10categories      aqua devel
11platforms       macosx
12maintainers     nomaintainer
13description     Fast Light Tool Kit
14
15long_description \
16    FLTK (pronounced fulltick) \
17    is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \
18    Microsoft Windows, and Mac OS X. \
19    FLTK provides modern GUI functionality without the bloat \
20    and supports 3D graphics via OpenGL and \
21    its built-in GLUT emulation. \
22    \
23    FLTK is designed to be small and modular enough to be \
24    statically linked, but works fine as a shared library. \
25    FLTK also includes an excellent UI builder called FLUID \
26    that can be used to create applications in minutes.
27
28homepage        http://www.fltk.org/
29master_sites    http://ftp.easysw.com/pub/fltk/${version}/
30worksrcdir      ${name}-${version}
31distname        ${worksrcdir}-source
32use_bzip2       yes
33
34checksums       md5     a1765594bc427ff892e36089fe1fa672 \
35                sha1    0d2b34fede91fa78eeaefb893dd70282f73908a8 \
36                rmd160  f8fc4371811efcc0d6fc73edd0525d8ff87a4faa
37
38depends_lib     port:jpeg \
39                port:libpng \
40                port:zlib
41
42use_parallel_build  yes
43
44# Force 32-bit (#21054)
45supported_archs i386 ppc
46universal_variant no
47
48post-patch {
49    reinplace "s|/Applications|${applications_dir}/${name}|g" \
50        ${worksrcpath}/fluid/Makefile \
51        ${worksrcpath}/test/Makefile
52}
53
54configure.cflags
55configure.cppflags
56configure.cxxflags
57configure.ldflags
58configure.env         DSOFLAGS=\"${configure.ld_archflags}\"
59configure.args  --enable-threads \
60                --enable-shared \
61                --mandir=${prefix}/share/man \
62                --with-archflags=\"${configure.cc_archflags}\"
63
64destroot.target install \
65                install-desktop
66
67livecheck.type  regexm
68livecheck.url   ${homepage}
69livecheck.regex "Stable Release.*?\n.*?VERSION=(\\d+(\\.\\d+)*)'"
Note: See TracBrowser for help on using the repository browser.