[70540] trunk/dports/kde/kipi-plugins/Portfile

michaelld at macports.org michaelld at macports.org
Thu Aug 12 12:42:38 PDT 2010


Revision: 70540
          http://trac.macports.org/changeset/70540
Author:   michaelld at macports.org
Date:     2010-08-12 12:42:38 -0700 (Thu, 12 Aug 2010)
Log Message:
-----------
Fixes ticket #26053.  When using Qt's Phonon, use #include
<phonon...>, not <Phonon...>.  Use PKG_CONFIG to find optional QCA
info (if installed), and let CMake figure it out.

Modified Paths:
--------------
    trunk/dports/kde/kipi-plugins/Portfile

Modified: trunk/dports/kde/kipi-plugins/Portfile
===================================================================
--- trunk/dports/kde/kipi-plugins/Portfile	2010-08-12 19:36:42 UTC (rev 70539)
+++ trunk/dports/kde/kipi-plugins/Portfile	2010-08-12 19:42:38 UTC (rev 70540)
@@ -33,3 +33,12 @@
                     port:gdk-pixbuf
 #port:opencv # This package does not build at the moment on Snow Leopard. If it is not installed, the removeRedEyes plugin will not get build automatically.
 configure.args-append ../${distname}
+configure.pkg_config_path-append ${qt_dir}/lib/pkgconfig
+
+post-extract {
+    # change #include <Phonon...> to <phonon...> in all files that
+    # contain that header.
+    foreach item [exec grep -lr "Phonon" ${workpath}/${distname}] {
+        reinplace "/#include/s at Phonon@phonon@" ${item}
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100812/20c70244/attachment.html>


More information about the macports-changes mailing list