# $Id: Portfile,v 1.6 2006/04/18 03:19:44 takanori Exp $

PortSystem	1.0
name		cdrdao
version		1.2.1
revision	2
description	Disk-At-Once Recording of Audio and Data  CD-Rs/CD-RWs
long_description	\
	Cdrdao records audio or data CD-Rs in disk-at-once (DAO) mode \
	based on a textual description of the CD contents (toc-file).

categories	sysutils
maintainers	darwinports@opendarwin.org
platforms	darwin
master_sites	freebsd sourceforge
checksums	sha1 530725bd0ed29eeda97eb5fcedbf7b4b44f4e863

depends_build	port:pccts bin:pkg-config:pkgconfig

post-patch {
	file copy -force /usr/share/libtool/config.guess /usr/share/libtool/config.sub "${worksrcpath}/scsilib/conf/"
	file copy "${worksrcpath}/scsilib/RULES/power-macintosh-darwin-cc.rul" "${worksrcpath}/scsilib/RULES/i386-darwin-cc.rul"
}

configure.args	--with-pcctsbin=${prefix}/bin --with-pcctsinc=${prefix}/include/pccts \
		--mandir=${prefix}/share/man \
		--without-lame --without-xdao --without-ogg-support --without-mp3-support --disable-dependency-tracking

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

variant lame {
	depends_lib-append	port:lame
	configure.args-delete	--without-lame
	configure.args-append	--with-lame-lib=${prefix}/lib --with-lame-include=${prefix}/include
}
