[88643] users/cal/ports/aqua/x2goclient/Portfile

cal at macports.org cal at macports.org
Fri Jan 6 06:42:07 PST 2012


Revision: 88643
          http://trac.macports.org/changeset/88643
Author:   cal at macports.org
Date:     2012-01-06 06:42:05 -0800 (Fri, 06 Jan 2012)
Log Message:
-----------
x2goclient: Build fixes, added livecheck

Note: This will still not work on OS X, because it crashes in libssh.

Modified Paths:
--------------
    users/cal/ports/aqua/x2goclient/Portfile

Modified: users/cal/ports/aqua/x2goclient/Portfile
===================================================================
--- users/cal/ports/aqua/x2goclient/Portfile	2012-01-06 14:26:11 UTC (rev 88642)
+++ users/cal/ports/aqua/x2goclient/Portfile	2012-01-06 14:42:05 UTC (rev 88643)
@@ -7,6 +7,9 @@
 name                    x2goclient
 version                 3.0.1.18
 
+livecheck.url           http://code.x2go.org/releases/source/x2goclient/
+livecheck.regex         ${name}_(\\d+(?:\\.\\d+)*)\\.tar.gz
+
 categories              aqua net
 platforms               macosx
 license                 GPL-2+
@@ -32,25 +35,20 @@
                         port:nxproxy \
                         port:libssh
 
+# building with clang calls the linker with -lstdc++ in the end, which fails
+# because there's only libstdc++.6.dylib in /Developer/SDKs/MacOSX10.6sdk/lib
+if {${configure.compiler} == "clang"} {
+    configure.compiler  llvm-gcc-4.2
+}
+
 configure.cmd           ${qt_qmake_cmd}
 configure.pre_args      PREFIX=${prefix}
 
-if {[variant_isset universal]} {
-    configure.args-append   QMAKE_LFLAGS+="${configure.universal_ldflags}" \
-                            QMAKE_CXXFLAGS+="${configure.universal_cxxflags}"
-} else {
-    configure.args-append   QMAKE_LFLAGS+="${configure.ld_archflags}" \
-                            QMAKE_CXXFLAGS+="${configure.cxx_archflags}"
-}
+configure.args-append   QMAKE_CC="${configure.cc}" \
+                        QMAKE_CXX="${configure.cxx}" \
+                        QMAKE_LINK="${configure.cxx}" \
+                        CONFIG+="${qt_arch_types}"
 
-# how can this be used to build universal?
-#configure.args-append   CONFIG+="${qt_arch_types}"
-
-configure.universal_args-delete \
-                        --disable-dependency-tracking
-configure.env-append    QMAKESPEC=${qt_mkspecs_dir}/macx-g++
-build.env-append        QMAKESPEC=${qt_mkspecs_dir}/macx-g++
-
 pre-configure {
     ln -s ${name}/xsettingsui.ui ${worksrcpath}
     ln -s ${name}/xsettingswidget.cpp ${worksrcpath}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120106/0440bb7b/attachment.html>


More information about the macports-changes mailing list