[73422] trunk/dports/aqua

michaelld at macports.org michaelld at macports.org
Fri Nov 12 19:39:47 PST 2010


Revision: 73422
          http://trac.macports.org/changeset/73422
Author:   michaelld at macports.org
Date:     2010-11-12 19:39:42 -0800 (Fri, 12 Nov 2010)
Log Message:
-----------
fltk: corrected compiler arch type setting for linking
fltk-devel: initial checkin; can build as 64-bit and +universal

Modified Paths:
--------------
    trunk/dports/aqua/fltk/Portfile

Added Paths:
-----------
    trunk/dports/aqua/fltk-devel/
    trunk/dports/aqua/fltk-devel/Portfile

Modified: trunk/dports/aqua/fltk/Portfile
===================================================================
--- trunk/dports/aqua/fltk/Portfile	2010-11-13 02:51:19 UTC (rev 73421)
+++ trunk/dports/aqua/fltk/Portfile	2010-11-13 03:39:42 UTC (rev 73422)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem      1.0
@@ -3,6 +4,7 @@
 
 name            fltk
+conflicts       fltk-devel
 version         1.1.10
-revision        1
+revision        2
 categories      aqua devel
 platforms       macosx
@@ -37,7 +39,7 @@
                 port:libpng \
                 port:zlib
 
-universal_variant no
+use_parallel_build  yes
 
 post-patch {
     reinplace "s|/Applications|${applications_dir}/${name}|g" \
@@ -45,18 +47,31 @@
         ${worksrcpath}/test/Makefile
 }
 
+pre-configure {
+    set arches [join [get_canonical_archs] " -arch "]
+    configure.env         DSOFLAGS=\"-arch ${arches}\"
+    configure.args-append --with-archflags=\"-arch ${arches}\"
+}
+
+configure.cflags
+configure.cppflags
+configure.cxxflags
+configure.ldflags
+configure.universal_cflags
+configure.universal_cppflags
+configure.universal_cxxflags
+configure.universal_ldflags
 configure.args  --enable-threads \
+                --enable-shared \
                 --mandir=${prefix}/share/man
 
+destroot.target install \
+                install-desktop
+
 # Force 32-bit (#21054)
 supported_archs i386 ppc
-configure.args-append   --with-archflags="-arch ${configure.build_arch}"
+universal_variant no
 
-use_parallel_build  yes
-
-destroot.target install \
-                install-desktop
-
 livecheck.type  regexm
 livecheck.url   ${homepage}
 livecheck.regex "Stable Release.*?\n.*?VERSION=(\\d+(\\.\\d+)*)'"

Added: trunk/dports/aqua/fltk-devel/Portfile
===================================================================
--- trunk/dports/aqua/fltk-devel/Portfile	                        (rev 0)
+++ trunk/dports/aqua/fltk-devel/Portfile	2010-11-13 03:39:42 UTC (rev 73422)
@@ -0,0 +1,79 @@
+# -*- 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
+# $Id: $
+
+PortSystem      1.0
+
+name            fltk-devel
+conflicts       fltk
+version         1.3.x-r7794
+categories      aqua devel
+platforms       macosx
+maintainers     nomaintainer
+description     Fast Light Tool Kit
+
+long_description \
+    FLTK (pronounced fulltick) \
+    is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), \
+    Microsoft Windows, and Mac OS X. \
+    FLTK provides modern GUI functionality without the bloat \
+    and supports 3D graphics via OpenGL and \
+    its built-in GLUT emulation. \
+    \
+    FLTK is designed to be small and modular enough to be \
+    statically linked, but works fine as a shared library. \
+    FLTK also includes an excellent UI builder called FLUID \
+    that can be used to create applications in minutes.
+
+homepage        http://www.fltk.org/
+master_sites    http://ftp.easysw.com/pub/fltk/snapshots/
+worksrcdir      ${name}-${version}
+distname        fltk-${version}
+use_bzip2       yes
+
+checksums       md5     1500dacd85587b02aa6009090c661ccb \
+                sha1    cb6ed7681b81a5126dcec8be57ac4cb39aef0243 \
+                rmd160  668f3b5cad382d72495400e9dadb37b62147f2e4
+
+depends_lib     port:jpeg \
+                port:libpng \
+                port:zlib
+
+worksrcdir      ${distname}
+
+use_parallel_build  yes
+
+post-patch {
+    # set .app directory
+    reinplace "s|/Applications|${applications_dir}/fltk|g" \
+        ${worksrcpath}/fluid/Makefile \
+        ${worksrcpath}/test/Makefile
+
+    # allow for 64-bit installs
+    reinplace "s| -arch i386||g" ${worksrcpath}/configure
+}
+
+pre-configure {
+    set arches [join [get_canonical_archs] " -arch "]
+    configure.env         DSOFLAGS=\"-arch ${arches}\"
+    configure.args-append --with-archflags=\"-arch ${arches}\"
+}
+
+configure.cflags
+configure.cppflags
+configure.cxxflags
+configure.ldflags
+configure.universal_cflags
+configure.universal_cppflags
+configure.universal_cxxflags
+configure.universal_ldflags
+configure.args  --enable-shared \
+                --mandir=${prefix}/share/man
+
+destroot.target install \
+                install-desktop
+
+universal_variant   yes
+
+livecheck.type  regexm
+livecheck.url   ${homepage}
+livecheck.regex "Developmental Release.*?\n.*?VERSION=(\\d+(\\.\\d+)*)'"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101112/537732bb/attachment.html>


More information about the macports-changes mailing list