Ticket #32594: Portfile2.diff

File Portfile2.diff, 4.7 KB (added by ranauei@…, 12 years ago)

New w/ minimum changes and sha256 hash

  • Portfile

    old new  
    77
    88name            ffmpeg
    99conflicts       ffmpeg-devel
    10 epoch           1
    11 version         0.7.8
     10version         0.9
    1211set branch      [join [lrange [split ${version} .] 0 1] .]
    1312license         GPL-2+
    1413categories      multimedia
     
    2726                        file format to another. It also supports grabbing and \
    2827                        encoding in real time from a TV card. \
    2928                        \
    30                         ffserver is an HTTP (RTSP is being developped) \
     29                        ffserver is an HTTP (RTSP is being developed) \
    3130                        multimedia streaming server for live broadcasts. Time \
    3231                        shifting of live broadcast is also supported. \
    3332                        \
     
    5150
    5251use_bzip2       yes
    5352
    54 checksums       sha1    df4983c028a61d4bf3baceab3bae535b91b8928a \
    55                 rmd160  8f69a6bc5caaba4e3d440c2d5dc96a946454a52c
     53checksums       sha256 2a9eb7795e6c1ad746aa2cc0fce9f71ec3763f610e362530ab277c6bc327d705 \
     54                rmd160 56e1e240363d4f1bc09390f5a3893a1b6b362908
    5655
    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
     56depends_build   port:pkgconfig
     57depends_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
    7571
    7672patchfiles      patch-configure.diff
    7773
    78 build.cmd       ${prefix}/bin/gmake
    79 build.env-append V=1
    80 
    8174#
    8275# enable auto configure of mmx and related Intel optimizations by default
    8376# requires Xcode 3.1 or better on Leopard
    8477#
    8578minimum_xcodeversions {9 3.1}
    8679
    87 # Under some conditions, llvm-gcc-4.2 drops some "unused" code even though it is used
    88 # fixed in llvm-gcc trunk, but not in Apple's shipped llvm-gccs.
    89 #
    90 # similarly clang fails to build on i386 platforms
    91 #
    92 # use code provided by jeremyhu here to use gcc-4.2 instead
    93 #
    94 # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html
    95 #
    96 
    97 if {${configure.compiler} == "clang" ||
    98     ${configure.compiler} == "llvm-gcc-4.2"} {
    99     configure.compiler gcc-4.2
    100     if {![file executable ${configure.cc}]} {
    101         depends_build-append port:apple-gcc42
    102         configure.compiler apple-gcc-4.2
    103     }
    104 }
    105 
    10680configure.cflags-append    -DHAVE_LRINTF ${configure.cppflags}
    10781configure.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 \
    11188        --enable-libmp3lame \
    11289        --enable-libvorbis \
    11390        --enable-libtheora \
    114         --enable-libdirac --enable-libschroedinger \
     91        --enable-libdirac \
     92        --enable-libschroedinger \
    11593        --enable-libopenjpeg \
    11694        --enable-libxvid \
    11795        --enable-libx264 \
    11896        --enable-libvpx \
    11997        --enable-libspeex \
    120         --mandir=${prefix}/share/man \
    121         --enable-shared --enable-pthreads \
    122         --cc=${configure.cc}
     98        --enable-shared \
     99        --cc=${configure.cc}
    123100
    124101test.run        yes
    125102
     
    128105#
    129106
    130107post-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        }
    137116}
    138117
    139118platform powerpc {
     
    190169    license-append          Restrictive
    191170}
    192171
     172variant doc description {install documentation files} {
     173        configure.args-delete   --disable-doc
     174        depends_build-append    port:texi2html
     175}
     176
    193177if {[variant_isset nonfree]} {
    194178notes "
    195179*******