# $Id: Portfile,v 1.16 2006/03/17 03:51:50 markd Exp $

PortSystem 1.0
name	    	cdrtools	
version		2.01
revision	2
categories  	sysutils	
description     ISO 9660 filesystem and CD creation tools	
long_description	The cdrtools software includes programs to create \
		 	and/or extract ISO 9660 filesystems, verify their \
			integrity, and write them to a disc.
homepage	http://cdrecord.berlios.de/old/private/cdrecord.html
maintainers	darwinports@opendarwin.org
master_sites    ftp://ftp.berlios.de/pub/cdrecord/ \
		ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/
checksums	md5 6f58882dfba4c615e2ebd81a565f7cfa
patchfiles	patch-cdda2wav-cdda2wav.c

build.type      gnu

platform darwin {
	pre-patch {
		file copy -force /usr/share/libtool/config.guess /usr/share/libtool/config.sub "${worksrcpath}/conf/"
	}
}

post-patch	{
	file copy "${worksrcpath}/RULES/power-macintosh-darwin-cc.rul" "${worksrcpath}/RULES/x86-darwin-cc.rul"
	file copy "${worksrcpath}/RULES/power-macintosh-darwin-cc.rul" "${worksrcpath}/RULES/i386-darwin-cc.rul"
}

configure 	{ cd ${worksrcpath}
                  system "rm INSTALL" }

destroot.args    DEFINSUSR=root DEFINSGRP=wheel INS_BASE=${destroot}/${prefix}

