Ticket #34672: Portfile

File Portfile, 2.4 KB (added by jerome.lelong@…, 12 years ago)

Remove -arch flag form fltk-config

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 91761 2012-04-09 23:34:12Z macsforever2000@macports.org $
3
4PortSystem      1.0
5
6name            fltk-devel
7conflicts       fltk
8version         1.3.x-r9327
9categories      aqua devel
10platforms       macosx
11maintainers     nomaintainer
12description     Fast Light Tool Kit
13license         LPGL-2
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/snapshots/
30distname        fltk-${version}
31use_bzip2       yes
32
33checksums           rmd160  2e36d429588e2c4456a8546c240e94d46e5704b5 \
34                    sha256  22ef47cd25c3f77e038dd4832ab5d3020baf123fa7e0b02fca8f9a39463b4684
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
49post-configure {
50    reinplace -E {s|-arch [a-z0-9_]+||g} \
51        ${worksrcpath}/fltk-config
52}
53
54# FIXME: Workaround a project bug
55# http://llvm.org/bugs/show_bug.cgi?id=10338
56if {${configure.compiler}=="clang"} {
57    configure.compiler  llvm-gcc-4.2
58}
59
60pre-configure {
61    configure.args-append --with-archflags=\"[get_canonical_archflags]\"
62
63    configure.universal_cflags ${configure.cflags}
64    configure.universal_cppflags ${configure.cppflags}
65    configure.universal_cxxflags ${configure.cxxflags}
66    configure.universal_ldflags ${configure.ldflags}
67}
68
69configure.cppflags
70configure.ldflags
71
72configure.args-append   \
73    --enable-shared     \
74    --disable-localjpeg \
75    --disable-localzlib \
76    --disable-localpng
77
78destroot.target install \
79                install-desktop
80
81livecheck.type  regexm
82livecheck.url   ${homepage}
83livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"