Ignore:
Timestamp:
Mar 13, 2009, 3:10:52 PM (11 years ago)
Author:
devans@…
Message:

ffmpeg: update to new release version 0.5 (maintainer timeout). See #18793 for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/ffmpeg/Portfile

    r47772 r48055  
    44PortSystem 1.0
    55
    6 name            ffmpeg
    7 version         15261
    8 revision        5
    9 categories      multimedia
    10 maintainers     acho@macports.org openmaintainer
    11 description     Digital VCR and streaming server
    12 long_description        FFmpeg is a complete solution to record, convert and \
    13                         stream audio and video. It includes libavcodec, the \
    14                         leading audio/video codec library. \
    15                         \
    16                         The project is made of several components: \
    17                         \
    18                         ffmpeg is a command line tool to convert one video \
    19                         file format to another. It also supports grabbing and \
    20                         encoding in real time from a TV card. \
    21                         \
    22                         ffserver is an HTTP (RTSP is being developped) \
    23                         multimedia streaming server for live broadcasts. Time \
    24                         shifting of live broadcast is also supported. \
    25                         \
    26                         ffplay is a simple media player based on SDL and on \
    27                         the ffmpeg libraries. \
    28                         \
    29                         libavcodec is a library containing all the ffmpeg \
    30                         audio/video encoders and decoders. Most codecs were \
    31                         developped from scratch to ensure best performances \
    32                         and high code reusability. \
    33                         \
    34                         libavformat is a library containing parsers and \
    35                         generators for all common audio/video formats.
     6name            ffmpeg
     7version         0.5
     8epoch           1
     9categories      multimedia
     10maintainers     acho openmaintainer
     11
     12description     FFmpeg is a complete solution to play, record, convert and \
     13                stream audio and video.
     14
     15long_description        FFmpeg is a complete solution to record, convert and \
     16                        stream audio and video. It includes libavcodec, the \
     17                        leading audio/video codec library. \
     18                        \
     19                        The project is made of several components: \
     20                        \
     21                        ffmpeg is a command line tool to convert one video \
     22                        file format to another. It also supports grabbing and \
     23                        encoding in real time from a TV card. \
     24                        \
     25                        ffserver is an HTTP (RTSP is being developped) \
     26                        multimedia streaming server for live broadcasts. Time \
     27                        shifting of live broadcast is also supported. \
     28                        \
     29                        ffplay is a simple media player based on SDL and on \
     30                        the ffmpeg libraries. \
     31                        \
     32                        libavcodec is a library containing all the ffmpeg \
     33                        audio/video encoders and decoders. Most codecs were \
     34                        developped from scratch to ensure best performances \
     35                        and high code reusability. \
     36                        \
     37                        libavformat is a library containing parsers and \
     38                        generators for all common audio/video formats.
     39
     40platforms       darwin
    3641homepage        http://www.ffmpeg.org/
    37 master_sites
    38 distfiles
    39 patchfiles      patch-libavcodec_ppc_check_altivec.c.diff \
    40                 patch-libavcodec_libx264.c.diff \
    41                 patch-libavfilter-avfilter.h.diff \
     42master_sites    http://www.ffmpeg.org/releases/
     43
     44use_bzip2       yes
     45
     46checksums       md5     be8503f15c3b81ba00eb8379ca8dcf33 \
     47                sha1    f930971bc0ac3d11a4ffbb1af439425c24f6f5b1 \
     48                rmd160  23b4a591c422f98b634eba0ba82817ad27a4ff07
     49
     50patchfiles      patch-libavfilter-avfilter.h.diff \
    4251                patch-libswscale-Makefile.diff \
    4352                patch-libswscale-swscale.h.diff
    4453
    45 use_parallel_build  yes
    46 worksrcdir     trunk
    47 
    48 depends_build   bin:svn:subversion \
    49                 port:gmake
     54
     55use_parallel_build yes
     56
     57depends_build   port:gmake
    5058
    5159depends_lib     port:lame \
     
    5361                port:libogg \
    5462                port:libtheora \
    55                 port:x264 \
    5663                port:dirac \
    5764                port:schroedinger \
     
    5966                port:faad2 \
    6067                port:XviD \
     68                port:x264 \
    6169                port:libsdl \
    6270                port:bzip2 \
    6371                port:zlib
    6472
    65 build.cmd      gmake
    66 configure.compiler      gcc-4.0
    67 
    68 set svn_rev ${version}
    69 set libswscale_rev 27728
    70 
    71 pre-fetch {
    72     if {[file isdirectory ${distpath}/${svn_rev}]} {
    73         if {![file isdirectory ${distpath}/${svn_rev}/trunk/.svn] || ![file exists ${distpath}/${svn_rev}/trunk/.complete]} {
    74              file delete -force ${distpath}/${svn_rev}
    75         }
    76     }
    77 }
    78 
    79 fetch {
    80     if {![file isdirectory ${distpath}/${svn_rev}]} {
    81         file mkdir ${distpath}/${svn_rev}
    82         system "svn co -r${svn_rev} --ignore-externals svn://svn.ffmpeg.org/ffmpeg/trunk ${distpath}/${svn_rev}/trunk"
    83         system "svn co -r${libswscale_rev} svn://svn.ffmpeg.org/mplayer/trunk/libswscale ${distpath}/${svn_rev}/trunk/libswscale"
    84         system "touch ${distpath}/${svn_rev}/trunk/.complete"
    85     }
    86 }
    87 
    88 extract {
    89     file copy ${distpath}/${svn_rev}/trunk ${worksrcpath}
    90 }
    91 
    92 platforms       darwin
    93 
    94 configure.cflags-append -DHAVE_LRINTF ${configure.cppflags}
     73build.cmd       gmake
     74configure.compiler gcc-4.0
     75
     76configure.cflags-append    -DHAVE_LRINTF ${configure.cppflags}
    9577configure.args \
    96                 --disable-vhook \
    97                 --enable-gpl \
    98                 --enable-swscale --enable-avfilter --enable-avfilter-lavf \
    99                 --enable-postproc \
    100                 --enable-libmp3lame \
    101                 --enable-libvorbis \
    102                 --enable-libtheora \
    103                 --enable-libdirac --enable-libschroedinger \
    104                 --enable-libfaac \
    105                 --enable-libfaad \
    106                 --enable-libx264 \
    107                 --enable-libxvid \
    108                 --mandir=${prefix}/share/man \
    109                 --enable-shared --enable-pthreads \
    110                 --disable-mmx \
    111                 --cc=gcc-4.0
     78        --disable-vhook \
     79        --enable-gpl \
     80        --enable-postproc \
     81        --enable-swscale --enable-avfilter --enable-avfilter-lavf \
     82        --enable-libmp3lame \
     83        --enable-libvorbis \
     84        --enable-libtheora \
     85        --enable-libdirac --enable-libschroedinger \
     86        --enable-libfaac \
     87        --enable-libfaad \
     88        --enable-libxvid \
     89        --enable-libx264 \
     90        --mandir=${prefix}/share/man \
     91        --enable-shared --enable-pthreads \
     92        --disable-mmx \
     93        --cc=gcc-4.0
     94
     95#add --enable-libopenjpeg when problems with openjpeg.h are resolved
    11296
    11397test.run        yes
    11498
    115 default_variants +a52
    116 
     99#
    117100# configure isn't autoconf and they do use a dep cache
     101#
     102
    118103universal_variant no
    119104
    120105post-destroot {
    121         file mkdir ${destroot}${prefix}/share/doc/${name}
    122         file copy ${worksrcpath}/doc/TODO ${destroot}${prefix}/share/doc/${name}
    123         foreach f [glob ${worksrcpath}/doc/*.txt ${worksrcpath}/doc/*.html] {
    124                 file copy $f ${destroot}${prefix}/share/doc/${name}
    125         }
     106    file mkdir ${destroot}${prefix}/share/doc/${name}
     107    file copy ${worksrcpath}/doc/TODO ${destroot}${prefix}/share/doc/${name}
     108    foreach f [glob ${worksrcpath}/doc/*.txt ${worksrcpath}/doc/*.html] {
     109        file copy $f ${destroot}${prefix}/share/doc/${name}
     110    }
    126111}
    127112
    128113platform darwin i386 {
    129         post-patch {
    130                 reinplace "s|defined\(ARCH_X86\) \&\& defined\(CONFIG_GPL\)|defined\(ARCH_X86\) \\\&\\\& defined\(CONFIG_GPL\) \\\&\\\& \\\!defined\(__APPLE__\)|g" ${worksrcpath}/libswscale/rgb2rgb.c
    131         }
    132 }
    133 
    134 variant mmx description {enable mmx support, experimental; does not build in gcc-4.2 or xcode 3.0 gcc-4.0} {
     114    post-patch {
     115        reinplace "s|defined\(ARCH_X86\) \&\& defined\(CONFIG_GPL\)|defined\(ARCH_X86\) \\\&\\\& defined\(CONFIG_GPL\) \\\&\\\& \\\!defined\(__APPLE__\)|g" ${worksrcpath}/libswscale/rgb2rgb.c
     116    }
     117}
     118
     119#
     120# comments concerning mmx problems may be out of date
     121# needs testing on i386 platform to verify
     122#
     123
     124variant mmx description {enable mmx optimizations ; may not build in gcc-4.2 or xcode 3.0 gcc-4.0} {
    135125# make no-mmx default and allow mmx enabling for the brave.
    136         configure.args-delete --disable-mmx
    137 # Fix Leopard problems by disabling the cavs decoder for now
    138         configure.args-append --disable-decoder=cavs
    139 }
    140 
    141 variant a52 description {enable GPLed liba52 support} {
    142         depends_lib-append port:a52dec
    143         configure.args-append --enable-liba52
    144         post-destroot {
    145                 file mkdir ${destroot}${prefix}/include/ffmpeg
    146                 foreach f [glob ${destroot}${prefix}/include/libavcodec/*.h ${destroot}${prefix}/include/libavformat/*.h ${destroot}${prefix}/include/libavutil/*.h] {
    147         regsub -all $destroot ${f} "" srclink
    148         ln -s ${srclink} ${destroot}${prefix}/include/ffmpeg/[lindex [split ${f} /] end]
    149                 }
    150                
    151         }
    152 }
    153 
    154 variant no_gpl conflicts a52 description {disallow use of GPL code, license will be LGPL} {
     126    configure.args-delete --disable-mmx
     127# Fix Leopard problems by disabling the cavs decoder for now (is this still required?)
     128    configure.args-append --disable-decoder=cavs
     129}
     130
     131variant no_gpl description {disallow use of GPL code, license will be LGPL if +no_nonfree is selected} {
    155132    configure.args-delete   --enable-gpl
    156133    configure.args-delete   --enable-postproc
     
    158135    configure.args-delete   --enable-libfaad
    159136    depends_lib-delete      port:faad2
     137    configure.args-delete   --enable-libx264
     138    depends_build-delete      port:x264
    160139    configure.args-delete   --enable-libxvid
    161140    depends_lib-delete      port:XviD
     141}
     142
     143#
     144# make speex a variant since it requires speex version 1.2
     145# which is currently only available via port speex-devel
     146# remove variant and make default when 1.2 is available in speex
     147#
     148
     149variant speex description {enable Speex decoding via libspeex} {
     150    configure.args-append   --enable-libspeex
     151    depends_lib-append      path:lib/libspeex.dylib:speex-devel
     152}
     153
     154pre-configure {
     155    if {[variant_isset speex]} {
     156        if {![file exists ${prefix}/lib/libspeexdsp.dylib]} {
     157            error "
     158*******
     159******* Variant speex requires port speex-devel but
     160******* port speex is active.  Please deactivate port speex
     161******* and install/activate port speex-devel then try
     162******* again.
     163*******
     164"
     165        }
     166    }
    162167}
    163168
     
    173178*******      postproc
    174179*******      swscale
    175 *******      liba52
    176180*******      libfaad
    177181*******      libx264
    178182*******      libxvid
    179183*******
    180 ******* To include only LGPLed code use variants +no_gpl -a52
     184******* To include only LGPLed code use variant +no_gpl
    181185*******
    182186"
     
    190194    }
    191195}
    192 
    193196#
    194197#disable livecheck
    195198#
    196199
    197 livecheck.check none
     200livecheck.check regex
     201livecheck.url   ${master_sites}
     202livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracChangeset for help on using the changeset viewer.