[57510] trunk/dports/multimedia/x264/Portfile
devans at macports.org
devans at macports.org
Fri Sep 11 17:35:15 PDT 2009
Revision: 57510
http://trac.macports.org/changeset/57510
Author: devans at macports.org
Date: 2009-09-11 17:35:11 -0700 (Fri, 11 Sep 2009)
Log Message:
-----------
x264: enable asm optimizations by default on snow leopard x86_64, closes #21070.
Modified Paths:
--------------
trunk/dports/multimedia/x264/Portfile
Modified: trunk/dports/multimedia/x264/Portfile
===================================================================
--- trunk/dports/multimedia/x264/Portfile 2009-09-11 23:53:37 UTC (rev 57509)
+++ trunk/dports/multimedia/x264/Portfile 2009-09-12 00:35:11 UTC (rev 57510)
@@ -6,7 +6,7 @@
name x264
version 20090810
-revision 1
+revision 2
categories multimedia
platforms darwin
maintainers devans openmaintainer
@@ -24,7 +24,6 @@
sha1 26abd8c1dc05dae04f99b33a689e4ee7debd9126 \
rmd160 f8297dcb4a43207f5c03165a2320425a640ff4d7
-
use_bzip2 yes
pre-extract {
@@ -38,9 +37,23 @@
}
}
-configure.args \
- --enable-pthread --enable-pic --enable-shared --disable-asm
+configure.args --enable-pthread \
+ --enable-pic \
+ --enable-shared \
+ --disable-asm
+
+# asm works with a 64-bit snow leopard build
+
+if {"darwin" == ${os.platform} && 10 == ${os.major} && [info exists build_arch] && "x86_64" == $build_arch} {
+ depends_build-append port:yasm
+ configure.args-delete --disable-asm
+ configure.args-append --host=x86_64-apple-darwin10
+} elseif { [variant_isset asm] } {
+ depends_build-append port:yasm
+ configure.args-delete --disable-asm
+}
+
configure.cflags-append -I. -fno-common -read_only_relocs suppress
destroot.args DIR_INSTALL=${destroot}${prefix}
@@ -52,9 +65,8 @@
# to exhibit problems in some cases (see #19835)
# disable by default but can be enabled using +asm variant for the adventurous
#
+
variant asm description {enable intel assembler optimizations (experimental)} {
- depends_build-append port:yasm
- configure.args-delete --disable-asm
}
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090911/0022f0d6/attachment-0001.html>
More information about the macports-changes
mailing list