[70736] trunk/dports/comms/farsight2

devans at macports.org devans at macports.org
Thu Aug 19 14:39:15 PDT 2010


Revision: 70736
          http://trac.macports.org/changeset/70736
Author:   devans at macports.org
Date:     2010-08-19 14:39:14 -0700 (Thu, 19 Aug 2010)
Log Message:
-----------
farsight2: update to version 0.0.21. add +python variant to enable python bindings.

Modified Paths:
--------------
    trunk/dports/comms/farsight2/Portfile

Added Paths:
-----------
    trunk/dports/comms/farsight2/files/
    trunk/dports/comms/farsight2/files/patch-configure.diff
    trunk/dports/comms/farsight2/files/patch-python-pyfarsightmodule.c.diff

Modified: trunk/dports/comms/farsight2/Portfile
===================================================================
--- trunk/dports/comms/farsight2/Portfile	2010-08-19 21:34:35 UTC (rev 70735)
+++ trunk/dports/comms/farsight2/Portfile	2010-08-19 21:39:14 UTC (rev 70736)
@@ -4,7 +4,7 @@
 PortSystem 1.0
 
 name            farsight2
-version         0.0.16
+version         0.0.21
 description     Farsight - Audio/Video Communications Framework
 long_description \
                 The Farsight project is an effort to create a framework \
@@ -18,24 +18,42 @@
 homepage        http://farsight.freedesktop.org/wiki/
 master_sites    http://farsight.freedesktop.org/releases/${name}/
 
-checksums       md5     ca6261e19cfcfe8a6e5e51b8c2f5ad16 \
-                sha1    dd25428cb38cc54169db6e8022ed49bc7d609d5b \
-                rmd160  20b7e7f81365aac8147a331a6c49baaadf6f46a9
+checksums       md5     5898612c389f3538a4160e677c03087a \
+                sha1    baf51f52eeeb81214b376ce1b9f33a22ccac7298 \
+                rmd160  198feb04be765cae836c09cc3492842e1788e56b
 
 depends_build   port:pkgconfig \
-                port:gtk-doc \
-                port:python25
+                port:gtk-doc
 
-depends_lib     port:gst-plugins-base \
-                port:gst-plugins-farsight \
-                port:libnice
+depends_lib     port:libnice
 
-configure.python ${prefix}/bin/python2.5
+#
+# libnice is not universal
+#
+universal_variant   no
 
+patchfiles      patch-python-pyfarsightmodule.c.diff \
+                patch-configure.diff
+
+post-patch      {
+                    reinplace "s|__MP_PYTHON_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
+                }
+
+configure.python ${prefix}/bin/python2.6
+
 configure.args  --disable-gupnp \
                 --disable-python \
-                --disable-shave
+                --disable-silent-rules \
+                --disable-valgrind
 
+variant python description {Enable bulding of Python bindings} {
+                configure.args-delete       --disable-python
+                depends_lib-append          port:py26-gst-python
+                set python_pkg_config_path  ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig
+                configure.args-append       --with-pkg-config-path=${python_pkg_config_path}
+                build.env-append            PKG_CONFIG_PATH=${python_pkg_config_path}
+}
+
 livecheck.type  regex
 livecheck.url   ${master_sites}
 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/comms/farsight2/files/patch-configure.diff
===================================================================
--- trunk/dports/comms/farsight2/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/comms/farsight2/files/patch-configure.diff	2010-08-19 21:39:14 UTC (rev 70736)
@@ -0,0 +1,14 @@
+--- configure.orig	2010-08-19 13:08:11.000000000 -0700
++++ configure	2010-08-19 13:10:18.000000000 -0700
+@@ -13067,9 +13067,9 @@
+ 
+ 
+ 
+-  PYTHON_PREFIX='${prefix}'
++  PYTHON_PREFIX='__MP_PYTHON_PREFIX__'
+ 
+-  PYTHON_EXEC_PREFIX='${exec_prefix}'
++  PYTHON_EXEC_PREFIX='__MP_PYTHON_PREFIX__'
+ 
+ 
+ 

Added: trunk/dports/comms/farsight2/files/patch-python-pyfarsightmodule.c.diff
===================================================================
--- trunk/dports/comms/farsight2/files/patch-python-pyfarsightmodule.c.diff	                        (rev 0)
+++ trunk/dports/comms/farsight2/files/patch-python-pyfarsightmodule.c.diff	2010-08-19 21:39:14 UTC (rev 70736)
@@ -0,0 +1,7 @@
+--- python/pyfarsightmodule.c.orig	2010-08-17 16:35:59.000000000 -0700
++++ python/pyfarsightmodule.c	2010-08-17 16:36:25.000000000 -0700
+@@ -1,3 +1,4 @@
++#define NO_IMPORT_PYGOBJECT
+ #include <pygobject.h>
+ #include <gst/farsight/fs-codec.h>
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100819/4749a5e9/attachment-0001.html>


More information about the macports-changes mailing list