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

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

fltk-devel: remove unnecessary worksrcdir directives

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 78487 2011-05-09 12:19:41Z ryandesign@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/
29distname        fltk-${version}
30use_bzip2       yes
31
32checksums       md5     b27b9d75effbd88505ed22851e9babf3 \
33                sha1    8258df43f9a60ebe1b4560075a0a8fd85b9127ec \
34                rmd160  7b672d5adb99ffef6cedbdbb4a76b12f5313b82c
35
36depends_lib     port:jpeg \
37                port:libpng \
38                port:zlib
39
40use_parallel_build  yes
41
42post-patch {
43    # set .app directory
44    reinplace "s|/Applications|${applications_dir}/fltk|g" \
45        ${worksrcpath}/fluid/Makefile \
46        ${worksrcpath}/test/Makefile
47}
48
49pre-configure {
50    if {[variant_isset universal]} {
51        set archflags ${configure.universal_cflags}
52    } else {
53        set archflags ${configure.cc_archflags}
54    }
55    configure.args-append --with-archflags=\"${archflags}\"
56
57    configure.universal_cflags ${configure.cflags}
58    configure.universal_cppflags ${configure.cppflags}
59    configure.universal_cxxflags ${configure.cxxflags}
60    configure.universal_ldflags ${configure.ldflags}
61}
62
63configure.cppflags
64configure.ldflags
65
66configure.args-append   \
67    --enable-shared     \
68    --disable-localjpeg \
69    --disable-localzlib \
70    --disable-localpng
71
72destroot.target install \
73                install-desktop
74
75livecheck.type  regexm
76livecheck.url   ${homepage}
77livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"
Note: See TracBrowser for help on using the repository browser.