On Dec 7, 2006, at 4:36 AM, Cédric Luthi wrote:
I have written a port for ophcrack, a windows password cracker. See http://trac.macports.org/projects/macports/ticket/11114
Ophcrack doesn't work on powerpc machines, I think it's because of endianness issues. I have written a post-main (see http:// trac.macports.org/projects/macports/attachment/ticket/11114/ Portfile) that checks for intel processor and exits with an error if it fails. Is it a good idea ? Is there a better/standard way to deal with port supporting only specific architectures ?
You can use the platform variants: platform powerpc { stuff that only gets run on PPC machines } platform i386 { stuff that only gets run on i386 machines } Macports (base) will automatically run the variant that matches the machine it's running on. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+