[104812] trunk/dports/gnome/gstreamer1/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Apr 2 20:23:07 PDT 2013


Revision: 104812
          https://trac.macports.org/changeset/104812
Author:   jeremyhu at macports.org
Date:     2013-04-02 20:23:07 -0700 (Tue, 02 Apr 2013)
Log Message:
-----------
gstreamer1: Add support for gobject introspection

Modified Paths:
--------------
    trunk/dports/gnome/gstreamer1/Portfile

Modified: trunk/dports/gnome/gstreamer1/Portfile
===================================================================
--- trunk/dports/gnome/gstreamer1/Portfile	2013-04-03 03:13:29 UTC (rev 104811)
+++ trunk/dports/gnome/gstreamer1/Portfile	2013-04-03 03:23:07 UTC (rev 104812)
@@ -9,6 +9,7 @@
 name                gstreamer1
 set my_name         gstreamer
 version             1.0.5
+revision            1
 description \
     GStreamer is a library for constructing graphs of media-handling components.
 long_description \
@@ -53,15 +54,22 @@
     set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
     set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
 
-    configure.args-append --disable-introspection
+    # gobject-introspection uses g-ir-scanner, which uses $CC from env
+    foreach arch ${configure.universal_archs} {
+        lappend merger_build_args(${arch})  CC='${configure.cc} -arch ${arch}'
+    }
 } elseif {${build_arch} == "i386"} {
     configure.args-append \
         --host=i686-apple-${os.platform}${os.major} \
         --build=i686-apple-${os.platform}${os.major}
+    build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
 } elseif {${build_arch} == "x86_64"} {
     configure.args-append \
         --host=${build_arch}-apple-${os.platform}${os.major} \
         --build=${build_arch}-apple-${os.platform}${os.major}
+    build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
+} else {
+    build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
 }
 
 pre-build	{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130402/bd66bce5/attachment-0001.html>


More information about the macports-changes mailing list