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

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

fltk-devel: upgrade to r9204.

  • 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 87911 2011-12-12 01:44:17Z michaelld@macports.org $
3
4PortSystem      1.0
5
6name            fltk-devel
7conflicts       fltk
8version         1.3.x-r9204
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/
29distname        fltk-${version}
30use_bzip2       yes
31
32checksums       sha1    d81e1e1ad5a382b80be438072f4aab21acce95b5 \
33                rmd160  92da28c08f8cd6cfe67230ba661324e23fda5508
34
35depends_lib     port:jpeg \
36                port:libpng \
37                port:zlib
38
39use_parallel_build  yes
40
41post-patch {
42    # set .app directory
43    reinplace "s|/Applications|${applications_dir}/fltk|g" \
44        ${worksrcpath}/fluid/Makefile \
45        ${worksrcpath}/test/Makefile
46}
47
48if {${configure.compiler}=="clang"} {
49    configure.compiler  llvm-gcc-4.2
50}
51
52pre-configure {
53    configure.args-append --with-archflags=\"[get_canonical_archflags]\"
54
55    configure.universal_cflags ${configure.cflags}
56    configure.universal_cppflags ${configure.cppflags}
57    configure.universal_cxxflags ${configure.cxxflags}
58    configure.universal_ldflags ${configure.ldflags}
59}
60
61configure.cppflags
62configure.ldflags
63
64configure.args-append   \
65    --enable-shared     \
66    --disable-localjpeg \
67    --disable-localzlib \
68    --disable-localpng
69
70destroot.target install \
71                install-desktop
72
73livecheck.type  regexm
74livecheck.url   ${homepage}
75livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"
Note: See TracBrowser for help on using the repository browser.