[51911] trunk/dports/graphics/lprof/Portfile

toby at macports.org toby at macports.org
Sat Jun 6 01:57:40 PDT 2009


Revision: 51911
          http://trac.macports.org/changeset/51911
Author:   toby at macports.org
Date:     2009-06-06 01:57:40 -0700 (Sat, 06 Jun 2009)
Log Message:
-----------
protect against universal_sysroot removal

Modified Paths:
--------------
    trunk/dports/graphics/lprof/Portfile

Modified: trunk/dports/graphics/lprof/Portfile
===================================================================
--- trunk/dports/graphics/lprof/Portfile	2009-06-06 08:54:21 UTC (rev 51910)
+++ trunk/dports/graphics/lprof/Portfile	2009-06-06 08:57:40 UTC (rev 51911)
@@ -35,15 +35,19 @@
                     -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
                     -DCMAKE_INSTALL_PREFIX=${prefix} \
                     -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
-                    -DCMAKE_C_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
-                    -DCMAKE_CXX_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
-                    -DCMAKE_LD_FLAGS="-Wl,-syslibroot,${universal_sysroot}" \
                     -DCMAKE_INCLUDE_PATH=${prefix}/include \
                     -DCMAKE_LIBRARY_PATH=${prefix}/lib \
                     -DQT_QMAKE_EXECUTABLE=${prefix}/bin/qmake-mac \
                     -DQTTRANS_LRELEASE_EXECUTABLE=${prefix}/bin/lrelease-mac \
                     -Wno-dev .
 
+if {[info exists universal_sysroot]} {
+    configure.args-append \
+                    -DCMAKE_C_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
+                    -DCMAKE_CXX_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
+                    -DCMAKE_LD_FLAGS="-Wl,-syslibroot,${universal_sysroot}"
+}
+
 post-destroot {
   set appdir $destroot$applications_dir/LProf.app
   set appcdir $appdir/Contents
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090606/e4af3b85/attachment.html>


More information about the macports-changes mailing list