# $Id: Portfile 57453 2009-09-11 08:17:15Z ryandesign@macports.org $

PortSystem			1.0
name				vcdimager
version				0.7.23
categories			multimedia
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.

platforms			darwin

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

checksums           md5     5e7d80fdbf0037ad20e438f2a9573253 \
                    sha1    6d1a3125fa8b7fa88a993e0c028cadcc03ac6304 \
					rmd160  c43ed14f0b81ada40c94b5954e9e689831cef2c2

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

use_autoreconf yes
autoreconf.args -fvi

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

configure.ldflags-append	"-framework CoreFoundation -framework IOKit"
configure.args		--infodir=${prefix}/share/info \
					--mandir=${prefix}/share/man \
					--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
}

