# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name libtheora epoch 1 version 1.0 categories multimedia platforms darwin maintainers nomaintainer description Xiph.org Foundation's open video codec long_description \ Theora is an open video codec being developed by the \ Xiph.org Foundation as part of their Ogg project (It is \ a project that aims to integrate On2's VP3 video codec, \ Ogg Vorbis audio codec and Ogg multimedia container \ formats into a multimedia solution that can compete \ with MPEG-4 format). homepage http://www.theora.org/ master_sites http://downloads.xiph.org/releases/theora/ use_bzip2 yes checksums md5 c963937053f45a7878954bed37ceb182 \ sha1 02717773001b44f95bc6c23111a89493a4a93f87 \ rmd160 f72d0a2ce8475a888ab67fd77b7126d66d537c9b post-patch { if {! [variant_isset doc]} { reinplace -E "s/^(all|install):.*/\\1:/" \ ${worksrcpath}/doc/Makefile.in } } depends_build port:pkgconfig depends_lib port:libvorbis \ port:libogg configure.env SDL_CONFIG=/dev/null configure.args --disable-oggtest \ --disable-vorbistest \ --disable-examples \ --disable-asm pre-extract { if {"darwin" == ${os.platform} && 8 == ${os.major}} { set minimum_xcodeversion 2.5 set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString] if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} { ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}." return -code error "incompatible Xcode version" } } } post-destroot { set docdir ${prefix}/share/doc/${name}-${version} if {! [variant_isset doc]} { xinstall -d ${destroot}${docdir} } xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING LICENSE README \ ${destroot}${docdir} } test.run yes test.target check variant doc description {Install extra documentation} {} platform darwin powerpc { # http://trac.macports.org/ticket/13033 # http://trac.macports.org/ticket/20141 configure.args-delete --disable-asm } livecheck.check regex livecheck.url ${master_sites}?C=M&O=D livecheck.regex ${name}-(\\d+(?:\\.\\d+)*(?:\\w+\\d*)?)