# $Id: Portfile 54700 2009-07-31 21:15:47Z ryandesign@macports.org $

PortSystem 1.0

name			pearpc
version			0.4
revision                1
categories		emulators
platforms		darwin
maintainers		nomaintainer
description		PowerPC Emulator
long_description	PearPC is a PowerPC emulator which emulates a base set of \
				hardware you might have on an older Macintosh system. As it \
				currently emulates a processor rather than using \
				virtualization, it is very slow on a PowerPC based system.
homepage		http://pearpc.sourceforge.net/
master_sites		sourceforge
patchfiles             patch-sysx11.cc
checksums               md5 cc317b19d61a49987f2265e885fa6301
use_bzip2               yes

depends_lib		port:xorg-libX11

#fetch.type		cvs
#cvs.root		:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pearpc
#cvs.module		pearpc
#cvs.password	""
#cvs.args		-D20050106
#worksrcdir		${cvs.module}
#pre-configure	{ system "cd ${worksrcpath} && sh ./autogen.sh" }

configure.args	--mandir=\\\${prefix}/share/man

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

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/etc/pearpc
	xinstall -m 755 ${worksrcpath}/ppccfg.example \
		${destroot}${prefix}/share/pearpc
	xinstall -m 755 ${worksrcpath}/README \
                ${destroot}${prefix}/share/pearpc
}

post-activate {
	ui_msg "\n
See sample config file ${prefix}/share/pearpc/ppccfg.example.

You will need to make a .img disk image or download one from
http://pearpc.sourceforge.net/downloads.html.
\n"
}
