[76916] trunk/dports/multimedia/libvpx

ryandesign at macports.org ryandesign at macports.org
Sat Mar 12 13:02:50 PST 2011


Revision: 76916
          http://trac.macports.org/changeset/76916
Author:   ryandesign at macports.org
Date:     2011-03-12 13:02:50 -0800 (Sat, 12 Mar 2011)
Log Message:
-----------
libvpx: allow non-standard developer_dir; see #28752

Modified Paths:
--------------
    trunk/dports/multimedia/libvpx/Portfile
    trunk/dports/multimedia/libvpx/files/patch-build-make-configure.sh.diff

Modified: trunk/dports/multimedia/libvpx/Portfile
===================================================================
--- trunk/dports/multimedia/libvpx/Portfile	2011-03-12 20:59:13 UTC (rev 76915)
+++ trunk/dports/multimedia/libvpx/Portfile	2011-03-12 21:02:50 UTC (rev 76916)
@@ -29,6 +29,10 @@
 patchfiles      patch-build-make-configure.sh.diff \
                 patch-configure.diff
 
+post-patch {
+    reinplace "s|@DEVELOPER_DIR@|${developer_dir}|g" ${worksrcpath}/build/make/configure.sh
+}
+
 # As of 0.9.1: doesn't handle shared libraries or debug properly on darwin;
 # doesn't install docs or examples correctly, so disable them.
 configure.args  --enable-vp8 \

Modified: trunk/dports/multimedia/libvpx/files/patch-build-make-configure.sh.diff
===================================================================
--- trunk/dports/multimedia/libvpx/files/patch-build-make-configure.sh.diff	2011-03-12 20:59:13 UTC (rev 76915)
+++ trunk/dports/multimedia/libvpx/files/patch-build-make-configure.sh.diff	2011-03-12 21:02:50 UTC (rev 76916)
@@ -1,5 +1,5 @@
 --- build/make/configure.sh.orig	2011-03-04 14:40:37.000000000 -0600
-+++ build/make/configure.sh	2011-03-12 14:44:34.000000000 -0600
++++ build/make/configure.sh	2011-03-12 15:00:19.000000000 -0600
 @@ -392,10 +392,10 @@
  EOF
  
@@ -13,3 +13,31 @@
  EOF
      fi
  
+@@ -603,21 +603,21 @@
+     # Handle darwin variants
+     case ${toolchain} in
+         *-darwin8-*)
+-            add_cflags  "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
++            add_cflags  "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.4u.sdk"
+             add_cflags  "-mmacosx-version-min=10.4"
+-            add_ldflags "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
++            add_ldflags "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.4u.sdk"
+             add_ldflags "-mmacosx-version-min=10.4"
+             ;;
+         *-darwin9-*)
+-            add_cflags  "-isysroot /Developer/SDKs/MacOSX10.5.sdk"
++            add_cflags  "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.5.sdk"
+             add_cflags  "-mmacosx-version-min=10.5"
+-            add_ldflags "-isysroot /Developer/SDKs/MacOSX10.5.sdk"
++            add_ldflags "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.5.sdk"
+             add_ldflags "-mmacosx-version-min=10.5"
+             ;;
+         *-darwin10-*)
+-            add_cflags  "-isysroot /Developer/SDKs/MacOSX10.6.sdk"
++            add_cflags  "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.6.sdk"
+             add_cflags  "-mmacosx-version-min=10.6"
+-            add_ldflags "-isysroot /Developer/SDKs/MacOSX10.6.sdk"
++            add_ldflags "-isysroot @DEVELOPER_DIR@/SDKs/MacOSX10.6.sdk"
+             add_ldflags "-mmacosx-version-min=10.6"
+             ;;
+     esac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110312/c6ca508d/attachment.html>


More information about the macports-changes mailing list