# $Id: Portfile 52882 2009-06-25 05:46:05Z ryandesign@macports.org $

PortSystem 1.0

name			cd-discid
version			0.9
revision		1
categories		audio
platforms		darwin
maintainers		nomaintainer
description		read CD and get CDDB discid information
long_description	\
	In order to do CDDB queries over the Internet, you must know the DiscID \
	of the CD you are querying. cd-discid provides you with that information. \
	It outputs the discid, the number of tracks, the frame offset of all of \
	the tracks, and the total length of the CD in seconds, on one line in a \
	space-delimited format. cd-discid was designed as a backend tool for \
	cdgrab (now abcde) but will work independantly of it.

homepage		http://www.hispalinux.es/~data/abcde.php

master_sites	http://www.hispalinux.es/~data/files/cd-discid/ \
				http://lly.org/~rcw/cd-discid/
distname		${name}_${version}.orig
checksums		md5 64677b8b63d1db0db015043f5455171a
patchfiles		patch-Makefile

worksrcdir		${name}-${version}

use_configure   no

build.env		CC=${configure.cc}

destroot.destdir	prefix=${destroot}${prefix}

universal_variant   no

platform macosx {
   patchfiles-append   patch-cd-discid.c.diff
}

