# -*- 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                vcdimager
version             0.7.24
revision            2
categories          multimedia
# lib/sector.c is GPL-2 only, the rest is GPL-2+
license             GPL-2
platforms           darwin
maintainers         nomaintainer

description         Free software (Super) video CD authoring solution

long_description    The GNU (Super)VideoCD authoring solution for mastering, \
                    extracting and analyzing Video CDs and Super Video CDs.

homepage            http://www.vcdimager.org/
master_sites        gnu

checksums           rmd160  9e10c99d8f0315a775aca32ecb1f36db7b8086b0 \
                    sha256  075d7a67353ff3004745da781435698b6bc4a053838d0d4a3ce0516d7d974694

depends_build       port:pkgconfig

depends_lib         port:libcdio \
                    port:popt \
                    port:libxml2

post-patch {
    reinplace "s| -Wl,--version-script=libvcdinfo.la.ver||" \
        ${worksrcpath}/lib/Makefile.in
}

configure.args      --with-cli-frontend \
                    --with-xml-frontend \
                    --with-xml-prefix=${prefix}

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS COPYING FAQ HACKING \
        NEWS README THANKS TODO ${destroot}${prefix}/share/doc/${name}
    file delete -force ${destroot}${prefix}/share/info/dir
}