Ticket #20808: mplayer-devel-10.6.diff

File mplayer-devel-10.6.diff, 1.6 KB (added by acho@…, 15 years ago)

Based on patch by johnrosshunt@…

Line 
1--- /Users/tw/Projects/macports-trunk/dports/multimedia/mplayer-devel/Portfile
22009-10-13 16:08:55.000000000 -0400
3+++ Portfile    2009-10-14 10:34:33.000000000 -0400
4@@ -5,14 +5,14 @@
5 PortSystem          1.0
6
7 name                mplayer-devel
8-version             29418
9-revision            1
10+version             29701
11+revision            0
12 categories          multimedia
13 maintainers         acho openmaintainer
14 platforms           darwin
15
16-set dvdnav_ver      1174
17-set ffmpeg_ver      19425
18+set dvdnav_ver      1181
19+set ffmpeg_ver      19964
20
21 description         The MPlayer movie player built from SVN.
22 long_description    ${description} It plays most MPEG/VOB, AVI, Ogg/OGM, \
23@@ -51,6 +51,8 @@
24 configure.cppflags  {}
25 configure.cxxflags  {}
26 configure.ldflags   {}
27+configure.cc_archflags  {}
28+configure.cxx_archflags {}
29
30 # Do not use pipes, otherwise the build phase will fail.
31 configure.pipe      no
32@@ -326,3 +328,18 @@
33     # bits of libstdc++ are needed during linking
34     build.env           LD=${configure.cxx}
35 }
36+
37+platform darwin 9 {
38+    configure.args-delete   --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include"
39+    configure.args-append   --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include"
40+}
41+
42+platform darwin 10 {
43+    if { ${configure.build_arch} == "x86_64" } {
44+        configure.args-append   --target=x86_64-Darwin
45+    } elseif { ${configure.build_arch} == "i386" } {
46+        configure.args-append   --target=i386-Darwin
47+    }
48+    configure.args-append   --disable-qtx
49+    configure.args-delete   --enable-macosx-bundle --enable-qtx
50+}