[60613] trunk/dports/multimedia
jmr at macports.org
jmr at macports.org
Mon Nov 16 12:39:51 PST 2009
Revision: 60613
http://trac.macports.org/changeset/60613
Author: jmr at macports.org
Date: 2009-11-16 12:39:49 -0800 (Mon, 16 Nov 2009)
Log Message:
-----------
ffmpeg, ffmpeg-devel: use xcodeversion portgroup
Modified Paths:
--------------
trunk/dports/multimedia/ffmpeg/Portfile
trunk/dports/multimedia/ffmpeg-devel/Portfile
Modified: trunk/dports/multimedia/ffmpeg/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg/Portfile 2009-11-16 20:35:17 UTC (rev 60612)
+++ trunk/dports/multimedia/ffmpeg/Portfile 2009-11-16 20:39:49 UTC (rev 60613)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup xcodeversion 1.0
name ffmpeg
conflicts ffmpeg-devel
@@ -79,18 +80,8 @@
# enable auto configure of mmx and related Intel optimizations by default
# requires Xcode 3.1 or better on Leopard
#
+minimum_xcodeversions {9 3.1}
-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.cflags-append -DHAVE_LRINTF ${configure.cppflags}
configure.args \
--disable-vhook \
Modified: trunk/dports/multimedia/ffmpeg-devel/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg-devel/Portfile 2009-11-16 20:35:17 UTC (rev 60612)
+++ trunk/dports/multimedia/ffmpeg-devel/Portfile 2009-11-16 20:39:49 UTC (rev 60613)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup xcodeversion 1.0
name ffmpeg-devel
conflicts ffmpeg
@@ -77,18 +78,8 @@
# enable auto configure of mmx and related Intel optimizations by default
# requires Xcode 3.1 or better on Leopard
#
+minimum_xcodeversions {9 3.1}
-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"
- }
- }
-}
-
extract {
file copy ${distpath}/${svn_rev}/trunk ${worksrcpath}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091116/b5a5eba6/attachment.html>
More information about the macports-changes
mailing list