Changeset 79745
- Timestamp:
- 06/24/11 13:14:42 (4 years ago)
- Location:
- trunk/dports/multimedia/mplayer-devel
- Files:
-
- 2 added
- 1 edited
-
Portfile (modified) (6 diffs)
-
files/configure.clang.patch (added)
-
files/llvm-gcc-workaround.patch (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/multimedia/mplayer-devel/Portfile
r79719 r79745 6 6 7 7 name mplayer-devel 8 version 337 148 version 33720 9 9 categories multimedia 10 10 maintainers acho openmaintainer … … 12 12 13 13 set dvdnav_ver 1228 14 set ffmpeg_ver ffc6c8a4305d25db8a5af72389a2453b17f4364614 set ffmpeg_ver 5aa8b270db2b88f136ef518b4bdf2b5dfff4a77b 15 15 16 16 description The MPlayer movie player built from SVN. … … 41 41 system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src ${worksrcpath}/libdvdnav/" 42 42 system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src ${worksrcpath}/libdvdread4/" 43 system "git clone --depth 1 git://git.videolan.org/ffmpeg.git ${worksrcpath}/ffmpeg" 43 44 # 1000 should be deep enough to find out checkout 45 system "git clone --depth 1000 git://git.videolan.org/ffmpeg.git ${worksrcpath}/ffmpeg" 44 46 system "cd ${worksrcpath}/ffmpeg && git checkout -f ${ffmpeg_ver}" 45 }46 47 platform darwin 11 {48 configure.compiler gcc-4.249 #post-patch {50 # # MPlayer does not play well with llvm-gcc's link time optimization51 # reinplace "s:-O4:-O4 -fno-lto:" ${worksrcpath}/configure52 #}53 47 } 54 48 … … 91 85 --disable-gif 92 86 93 patchfiles configure.x11.patch 87 # configure.clang.patch: http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1939 88 patchfiles configure.x11.patch configure.clang.patch 94 89 95 90 post-destroot { … … 270 265 variant debug description {Compile with debugging symbols} { 271 266 configure.args-append --enable-debug=gdb3 --disable-altivec 272 #post-patch { 273 # reinplace "s:-O2:-O0:g" ${worksrcpath}/configure 274 #} 267 } 268 269 platform darwin 9 { 270 configure.args-delete --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" 271 configure.args-append --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include" 272 } 273 274 platform darwin 11 { 275 # BUILD FIX TODO: 276 # clang fails to build due to some bad inline asm 277 # https://ffmpeg.org/trac/ffmpeg/ticket/303 278 # configure.compiler clang 279 280 # llvm-gcc-4.2 fails to build vf_fspp.c properly with -O2 and above 281 patchfiles-append llvm-gcc-workaround.patch 282 283 post-patch { 284 # link time optimization fails to find references for ff_mlp_firorder* 285 # For some reason -O4 -fno-lto doesn't work as well, so just use -O3 286 reinplace "s:-O4:-O3:" ${worksrcpath}/configure 287 } 275 288 } 276 289 … … 281 294 build.env LD=${configure.cc} 282 295 } 283 284 platform darwin 8 {285 # Need to force use of c++ for linking when Xcode 2.2 is used since some286 # bits of libstdc++ are needed during linking287 build.env LD=${configure.cxx}288 }289 290 platform darwin 9 {291 configure.args-delete --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include"292 configure.args-append --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include"293 }
Note: See TracChangeset
for help on using the changeset viewer.

