Ignore:
Timestamp:
Jul 29, 2010, 3:54:02 PM (9 years ago)
Author:
devans@…
Message:

ffmpeg: update to stable version 0.6

  • add license information
  • update variants to reflect changes in licensing
  • add speex support by default
  • disable broken jack indev
  • update long description
File:
1 edited

Legend:

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

    r66961 r70077  
    88conflicts       ffmpeg-devel
    99epoch           1
    10 version         0.5.1
    11 revision        2
     10version         0.6
     11license         nonfree GPLv2.1+ LGPLv2.1+
    1212categories      multimedia
    1313maintainers     devans openmaintainer
     
    3232                        ffplay is a simple media player based on SDL and on \
    3333                        the ffmpeg libraries. \
     34                        \
     35                        ffprobe gathers information from multimedia streams and \
     36                        prints it in human- and machine-readable fashion. \
    3437                        \
    3538                        libavcodec is a library containing all the ffmpeg \
     
    4750use_bzip2       yes
    4851
    49 checksums           md5     c7b0e1729f7aafb10496d79bb963bb26 \
    50                     sha1    ab29dbfc7510e34e47b491279533d2f8c18efc38 \
    51                     rmd160  9765798cabbf937f97ca7137b4ab398df5a4ec47
    52 
    53 patchfiles      patch-libavfilter-avfilter.h.diff \
    54                 patch-libswscale-Makefile.diff \
     52checksums       md5     d6142a9a5821d6a6262a6edb903faa24 \
     53                sha1    c130e3bc368251b9130ce6eafb44fe8c3993ff5c \
     54                rmd160  1ff6a8f419239a03d84f67cc954f60f73632432a
     55
     56patchfiles      patch-libswscale-Makefile.diff \
    5557                patch-libswscale-swscale.h.diff
    56 
    5758
    5859use_parallel_build yes
     
    6869                port:faac \
    6970                port:faad2 \
     71                port:speex \
    7072                port:XviD \
    7173                port:x264 \
     
    8486configure.cflags-append    -DHAVE_LRINTF ${configure.cppflags}
    8587configure.args \
    86         --disable-vhook \
    8788        --enable-gpl \
    8889        --enable-postproc \
     
    9697        --enable-libxvid \
    9798        --enable-libx264 \
     99        --enable-libspeex \
    98100        --enable-nonfree \
    99101        --mandir=${prefix}/share/man \
    100102        --enable-shared --enable-pthreads \
     103        --disable-indevs \
    101104        --cc=${configure.cc}
    102105
     
    126129    # ticket #20938 -- disable mmx for 32 bit intel only
    127130    if { $build_arch == "i386" } {
    128         if { ![variant_isset no_gpl] } {
    129             configure.args-delete --enable-swscale
    130         }
     131        # swscale is no longer GPL only
     132        configure.args-delete --enable-swscale
    131133        if { ![variant_isset no_mmx] } {
    132134            configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext
     
    149151    configure.args-delete   --enable-gpl
    150152    configure.args-delete   --enable-postproc
    151     configure.args-delete   --enable-swscale
    152153    configure.args-delete   --enable-libfaad
    153154    depends_lib-delete      port:faad2
    154155    configure.args-delete   --enable-libx264
    155     depends_build-delete      port:x264
     156    depends_build-delete    port:x264
    156157    configure.args-delete   --enable-libxvid
    157158    depends_lib-delete      port:XviD
    158159}
    159160
    160 #
    161 # make speex a variant since it requires speex version 1.2
    162 # which is currently only available via port speex-devel
    163 # remove variant and make default when 1.2 is available in speex
    164 #
    165 
    166 variant speex description {enable Speex decoding via libspeex} {
    167     configure.args-append   --enable-libspeex
    168     depends_lib-append      path:lib/libspeex.dylib:speex-devel
    169 }
    170 
    171 pre-configure {
    172     if {[variant_isset speex]} {
    173         if {![file exists ${prefix}/lib/libspeexdsp.dylib]} {
    174             error "
    175 *******
    176 ******* Variant speex requires port speex-devel but
    177 ******* port speex is active.  Please deactivate port speex
    178 ******* and install/activate port speex-devel then try
    179 ******* again.
     161variant no_nonfree description {disallow use of nonfree code, libraries and binaries will be redistributable under GPL/LGPL} {
     162    configure.args-delete   --enable-nonfree
     163    configure.args-delete   --enable-libfaac
     164    depends_lib-delete      port:faac
     165}
     166
     167#
     168# jack indev support is currently broken
     169# since Darwin doesn't support memory based POSIX semaphores
     170# only named ones
     171#
     172
     173variant jack description {Enable jack input device support (currently broken)} {
     174    configure.args-delete --disable-indevs
     175    depends_lib-append port:jack
     176}
     177
     178post-activate {
     179    if {![variant_isset no_nonfree]} {
     180        ui_msg "
     181*******
     182******* This build of ${name} includes nonfree code as follows:
     183*******
     184*******     libfaac
     185*******
     186******* The following libraries and binaries may not be redistributed:
     187*******
     188*******     ffmpeg
     189*******     libavcodec
     190*******     libavdevice
     191*******     libavfilter
     192*******     libavformat
     193*******     libavutil
     194*******
     195******* To remove this restriction use variant +no_nonfree
    180196*******
    181197"
    182         }
    183     }
    184 }
    185 
    186 post-activate {
    187     if {![variant_isset no_gpl]} {
     198    } elseif {![variant_isset no_gpl]} {
    188199        ui_msg "
    189200*******
    190201******* This build of ${name} includes GPLed code and
    191 ******* is therefore licensed under GPL.
     202******* is therefore licensed under GPL v2.1 or later.
    192203*******
    193204******* The following modules are GPLed:
    194205*******
    195206*******      postproc
    196 *******      swscale
    197207*******      libfaad
    198208*******      libx264
    199209*******      libxvid
    200210*******
    201 ******* To include only LGPLed code use variant +no_gpl
     211******* To include only LGPLed code use variant +no_gpl +no_nonfree
    202212*******
    203213"
     
    205215        ui_msg "
    206216*******
    207 ******* This build of ${name} includes no GPLed
    208 ******* code and is therefore licensed under LGPL.
     217******* This build of ${name} includes no GPLed or nonfree
     218******* code and is therefore licensed under LGPL v2.1 or later.
    209219*******
    210220"
    211221    }
    212222}
    213 #
    214 #disable livecheck
    215 #
    216223
    217224livecheck.type  regex
Note: See TracChangeset for help on using the changeset viewer.