view darwinfixlib.sh @ 8609:1d98280b9ad1

The following patch allows the MPlayer "cdparanoia" support to work on NetBSD-1.6_STABLE, both "cdda://NN" and "cddb://NN" URI's. The CDROM ioctl's are actually more like OpenBSD's than FreeBSD's. I went with the "/dev/cdrom" symlink as the default device, though, as it otherwise gets messy fast... The first CDROM is "/dev/rcd0d" on NetBSD/i386, but "/dev/rcd0c" on all other NetBSD ports, and only the cdda_identify_scsi() form seems to work on NetBSD. (I searched the web in vain for the Paranoia API, so I'm left to hacking. ;-)) Frederick Bruckman <fredb@immanent.net>
author arpi
date Sat, 28 Dec 2002 14:04:54 +0000
parents 184f37880f90
children
line wrap: on
line source

#!/bin/sh
if [ `uname -s` = 'Darwin' ]; then
  echo "Fixing libs with ranlib for Darwin (MacOSX)"
  for i in $* ; do
    if (echo $i | grep \\.a) >/dev/null 2>&1; then
      echo "ranlib $i"
      (ranlib $i) >/dev/null 2>&1
    fi
  done
fi
exit 0