the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: cd-discid
Version: 0.9
Revision: 3
Description: Calculates CDDB DiscIDs
DescDetail: <<
cd-discid is a backend utility to get CDDB discid information from a disc.
<<
License: GPL
Maintainer: None
Source: http://lly.org/~rcw/cd-discid/%n_%v.orig.tar.gz
SourceDirectory: %n-%v
Source-MD5: 64677b8b63d1db0db015043f5455171a
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: 1cf6c6389ba3010906c66dac136f688e
CompileScript: make
DocFiles: COPYING README changelog
Homepage: http://lly.org/~rcw/cd-discid/
DescPort: <<
The patch removes the '-o 0' option from install in order to work when
building as nobody.
Additional i386 patching courtesy of Robert Woodcock via Mario Frasca.
<<
diff -urN cd-discid-0.9.orig/Makefile cd-discid-0.9/Makefile
--- cd-discid-0.9.orig/Makefile Tue Jun 14 12:24:15 2005
+++ cd-discid-0.9/Makefile Tue Jun 14 12:24:39 2005
@@ -32,9 +32,9 @@
install: cd-discid
$(INSTALL) -d -m 755 $(bindir)
- $(INSTALL) -s -m 755 -o 0 cd-discid $(bindir)
+ $(INSTALL) -s -m 755 cd-discid $(bindir)
$(INSTALL) -d -m 755 $(mandir)
- $(INSTALL) -m 644 -o 0 cd-discid.1 $(mandir)
+ $(INSTALL) -m 644 cd-discid.1 $(mandir)
tarball:
@cd .. && tar czvf cd-discid_$(VERSION).orig.tar.gz \
--- cd-discid-0.9.orig/cd-discid.c 2009/04/28 12:18:37 1.1
+++ cd-discid-0.9/cd-discid.c 2009/04/28 12:19:03
@@ -188,6 +188,11 @@
fprintf(stderr, "cd-discid: %s: ", argv[1]);
perror("DKIOCCDREADTRACKINFO");
}
+#if defined(__LITTLE_ENDIAN__)
+ /* endian fixups for Intel Macs */
+ TocEntry[i].trackStartAddress = ntohl(TocEntry[i].trackStartAddress);
+ TocEntry[i].trackSize = ntohl(TocEntry[i].trackSize);
+#endif
}
/* MacOS X on G5-based systems does not report valid info for