# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 57969 2009-09-19 19:04:23Z toby@macports.org $

PortSystem          1.0

name                XviD
version             1.2.2
categories          multimedia devel
platforms           darwin sunos
maintainers         nox openmaintainer
description         High performance and high quality MPEG-4 video library

long_description    The Xvid video codec implements MPEG-4 Simple Profile and Advanced \
                    Simple Profile standards. It permits compressing and decompressing \
                    digital video in order to reduce the required bandwidth of video \
                    data for transmission over computer networks or efficient storage on \
                    CDs or DVDs. Due to its unrivalled quality Xvid has gained great \
                    popularity and is used in many other GPLed applications, like e.g. \
                    Transcode, MEncoder, MPlayer, Xine and many more.

homepage            http://www.xvid.org/
master_sites        http://downloads.xvid.org/downloads/
distname            xvidcore-${version}
use_bzip2           yes

checksums           md5     6a3473a12c8a1fa7bdc2b5cb829fab58 \
                    sha1    d03270c803592f7655e7aa4181de587be25ba97f \
                    rmd160  5fbbc99a02d9eab7f2394220cec2c872957ff26f

worksrcdir          xvidcore

patch.dir           ${worksrcpath}
patchfiles          patch-build-generic-platform.inc.in-LDFLAGS.diff \
                    patch-src-xvid.c.diff

worksrcdir          xvidcore/build/generic

configure.args      --disable-assembly

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath}/../.. AUTHORS ChangeLog LICENSE TODO \
        ${destroot}${docdir}
}

use_parallel_build  no
