Ticket #32594: Portfile2.diff
File Portfile2.diff, 4.7 KB (added by ranauei@…, 13 years ago) |
---|
-
Portfile
old new 7 7 8 8 name ffmpeg 9 9 conflicts ffmpeg-devel 10 epoch 1 11 version 0.7.8 10 version 0.9 12 11 set branch [join [lrange [split ${version} .] 0 1] .] 13 12 license GPL-2+ 14 13 categories multimedia … … 27 26 file format to another. It also supports grabbing and \ 28 27 encoding in real time from a TV card. \ 29 28 \ 30 ffserver is an HTTP (RTSP is being develop ped) \29 ffserver is an HTTP (RTSP is being developed) \ 31 30 multimedia streaming server for live broadcasts. Time \ 32 31 shifting of live broadcast is also supported. \ 33 32 \ … … 51 50 52 51 use_bzip2 yes 53 52 54 checksums sha1 df4983c028a61d4bf3baceab3bae535b91b8928a\55 rmd160 8f69a6bc5caaba4e3d440c2d5dc96a946454a52c 53 checksums sha256 2a9eb7795e6c1ad746aa2cc0fce9f71ec3763f610e362530ab277c6bc327d705 \ 54 rmd160 56e1e240363d4f1bc09390f5a3893a1b6b362908 56 55 57 depends_build port:pkgconfig \ 58 port:gmake \ 59 port:texi2html 60 61 depends_lib port:lame \ 62 port:libvorbis \ 63 port:libogg \ 64 port:libtheora \ 65 port:dirac \ 66 port:schroedinger \ 67 port:openjpeg \ 68 path:lib/libspeex.dylib:speex \ 69 port:XviD \ 70 port:x264 \ 71 port:libvpx \ 72 path:lib/pkgconfig/sdl.pc:libsdl \ 73 port:bzip2 \ 74 port:zlib 56 depends_build port:pkgconfig 57 depends_lib port:lame \ 58 port:libvorbis \ 59 port:libogg \ 60 port:libtheora \ 61 port:dirac \ 62 port:schroedinger \ 63 port:openjpeg \ 64 port:speex \ 65 port:XviD \ 66 port:x264 \ 67 port:libvpx \ 68 port:libsdl \ 69 port:bzip2 \ 70 port:zlib 75 71 76 72 patchfiles patch-configure.diff 77 73 78 build.cmd ${prefix}/bin/gmake79 build.env-append V=180 81 74 # 82 75 # enable auto configure of mmx and related Intel optimizations by default 83 76 # requires Xcode 3.1 or better on Leopard 84 77 # 85 78 minimum_xcodeversions {9 3.1} 86 79 87 # Under some conditions, llvm-gcc-4.2 drops some "unused" code even though it is used88 # fixed in llvm-gcc trunk, but not in Apple's shipped llvm-gccs.89 #90 # similarly clang fails to build on i386 platforms91 #92 # use code provided by jeremyhu here to use gcc-4.2 instead93 #94 # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html95 #96 97 if {${configure.compiler} == "clang" ||98 ${configure.compiler} == "llvm-gcc-4.2"} {99 configure.compiler gcc-4.2100 if {![file executable ${configure.cc}]} {101 depends_build-append port:apple-gcc42102 configure.compiler apple-gcc-4.2103 }104 }105 106 80 configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} 107 81 configure.args \ 108 --enable-gpl \ 109 --enable-postproc \ 110 --enable-swscale --enable-avfilter \ 82 --disable-doc \ 83 --disable-debug \ 84 --enable-gpl \ 85 --enable-postproc \ 86 --enable-swscale \ 87 --enable-avfilter \ 111 88 --enable-libmp3lame \ 112 89 --enable-libvorbis \ 113 90 --enable-libtheora \ 114 --enable-libdirac --enable-libschroedinger \ 91 --enable-libdirac \ 92 --enable-libschroedinger \ 115 93 --enable-libopenjpeg \ 116 94 --enable-libxvid \ 117 95 --enable-libx264 \ 118 96 --enable-libvpx \ 119 97 --enable-libspeex \ 120 --mandir=${prefix}/share/man \ 121 --enable-shared --enable-pthreads \ 122 --cc=${configure.cc} 98 --enable-shared \ 99 --cc=${configure.cc} 123 100 124 101 test.run yes 125 102 … … 128 105 # 129 106 130 107 post-destroot { 131 file mkdir ${destroot}${prefix}/share/doc/ffmpeg 132 file copy ${worksrcpath}/doc/APIchanges ${destroot}${prefix}/share/doc/ffmpeg 133 file copy ${worksrcpath}/doc/RELEASE_NOTES ${destroot}${prefix}/share/doc/ffmpeg 134 foreach f [glob ${worksrcpath}/doc/*.txt] { 135 file copy $f ${destroot}${prefix}/share/doc/ffmpeg 136 } 108 if {[variant_isset doc]} { 109 file mkdir ${destroot}${prefix}/share/doc/ffmpeg 110 file copy ${worksrcpath}/doc/APIchanges ${destroot}${prefix}/share/doc/ffmpeg 111 file copy ${worksrcpath}/doc/RELEASE_NOTES ${destroot}${prefix}/share/doc/ffmpeg 112 foreach f [glob ${worksrcpath}/doc/*.txt] { 113 file copy $f ${destroot}${prefix}/share/doc/ffmpeg 114 } 115 } 137 116 } 138 117 139 118 platform powerpc { … … 190 169 license-append Restrictive 191 170 } 192 171 172 variant doc description {install documentation files} { 173 configure.args-delete --disable-doc 174 depends_build-append port:texi2html 175 } 176 193 177 if {[variant_isset nonfree]} { 194 178 notes " 195 179 *******