[49663] trunk/dports/multimedia/x264/Portfile

devans at macports.org devans at macports.org
Tue Apr 14 18:51:16 PDT 2009


Revision: 49663
          http://trac.macports.org/changeset/49663
Author:   devans at macports.org
Date:     2009-04-14 18:51:16 -0700 (Tue, 14 Apr 2009)
Log Message:
-----------
x264: upgrade to snapshot 20090408 core 67, add pre-extract check for required XCode >= 3.1 on Leopard.

Modified Paths:
--------------
    trunk/dports/multimedia/x264/Portfile

Modified: trunk/dports/multimedia/x264/Portfile
===================================================================
--- trunk/dports/multimedia/x264/Portfile	2009-04-15 00:53:04 UTC (rev 49662)
+++ trunk/dports/multimedia/x264/Portfile	2009-04-15 01:51:16 UTC (rev 49663)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name		x264
-version		20090311
-revision        1
+version		20090408
 categories	multimedia
 platforms	darwin
 maintainers	devans openmaintainer
@@ -17,11 +16,26 @@
 homepage	http://www.videolan.org/x264.html
 master_sites	ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
 distname	${name}-snapshot-${version}-2245
-checksums	sha1 f88c7b03331930185918b66ad17094da20e57066
+
+checksums       md5     d1c7323a052740b1c16f4aea917cb561 \
+                sha1    9dae6f86da058dc0a96b49102ff0dedb33c5a5a8 \
+                rmd160  98e2e0089be071165363324946c0eb296a6f002e
+
 use_bzip2	yes
 
 depends_build	port:yasm
 
+pre-extract {
+    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
+        set minimum_xcodeversion 3.1
+        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+            ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
+            return -code error "incompatible Xcode version"
+        }
+    }
+}
+
 configure.args \
 		--enable-pthread --enable-pic --enable-shared
 
@@ -45,6 +59,7 @@
 if {![info exists universal_archs]} {
     set universal_archs {i386 ppc}
 }
+
 set first_arch [lindex ${universal_archs} 0]
 
 set my_worksrcpaths ${worksrcpath}
@@ -64,6 +79,7 @@
       }
     }
   }
+
   configure {
     foreach arch ${universal_archs} {
       set my_arch_flag "-arch ${arch}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090414/b4226d65/attachment-0001.html>


More information about the macports-changes mailing list