From 9ec0e0238daa9434fc213159ae5f45281e3552e9 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Sun, 20 Jun 2004 19:33:19 +0000 Subject: Initial import of pearpc-0.2.0 from pkgsrc-wip. PearPC is an architecture independent PowerPC platform emulator capable of running most PowerPC operating systems. --- emulators/pearpc/DESCR | 2 ++ emulators/pearpc/Makefile | 51 ++++++++++++++++++++++++++++++++++++++++ emulators/pearpc/PLIST | 7 ++++++ emulators/pearpc/distinfo | 5 ++++ emulators/pearpc/files/pearpc.sh | 6 +++++ 5 files changed, 71 insertions(+) create mode 100644 emulators/pearpc/DESCR create mode 100644 emulators/pearpc/Makefile create mode 100644 emulators/pearpc/PLIST create mode 100644 emulators/pearpc/distinfo create mode 100644 emulators/pearpc/files/pearpc.sh (limited to 'emulators/pearpc') diff --git a/emulators/pearpc/DESCR b/emulators/pearpc/DESCR new file mode 100644 index 00000000000..ff7b5da7038 --- /dev/null +++ b/emulators/pearpc/DESCR @@ -0,0 +1,2 @@ +PearPC is an architecture independent PowerPC platform emulator capable of +running most PowerPC operating systems. diff --git a/emulators/pearpc/Makefile b/emulators/pearpc/Makefile new file mode 100644 index 00000000000..461965ba95d --- /dev/null +++ b/emulators/pearpc/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/06/20 19:33:20 xtraeme Exp $ +# + +DISTNAME= pearpc-0.2.0 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pearpc/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= dotz@irc.pl +HOMEPAGE= http://pearpc.sourceforge.net/ +COMMENT= PowerPC emulator + +GNU_CONFIGURE= yes +USE_BUILDLINK3= yes +USE_PKGINSTALL= yes +USE_X11= yes + +LIBS+= ${PTHREAD_LDFLAGS} + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/ppccfg.example ${PKG_SYSCONFDIR}/ppccfg.conf + +.include "../../mk/bsd.prefs.mk" + +.if !empty(MACHINE_ARCH:Mi386) +BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm +CONFIGURE_ARGS+= --enable-cpu=jitc_x86 +.endif + +CONFIGURE_ARGS+= --disable-debug + +INSTALLATION_DIRS= share/${PKGBASE} bin + +do-install: + ${SED} -e "s,@PREFIX@,${PREFIX}," \ + -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR}," \ + ${FILESDIR}/pearpc.sh > ${WRKSRC}/pearpc.sh + ${INSTALL_SCRIPT} ${WRKSRC}/pearpc.sh ${PREFIX}/bin/pearpc + ${INSTALL_PROGRAM} ${WRKSRC}/src/ppc ${PREFIX}/share/${PKGBASE} + ${INSTALL_DATA} ${WRKSRC}/video.x ${PREFIX}/share/${PKGBASE} + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${EGDIR} + +SUBST_CLASSES= conf +SUBST_STAGE.conf= post-patch +SUBST_FILES.conf= ppccfg.example +SUBST_SED.conf= -e "s|\"nvram\"|\"/tmp/nvram\"|" +SUBST_MESSAGE.conf= "Fixing configuration file." + +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/pearpc/PLIST b/emulators/pearpc/PLIST new file mode 100644 index 00000000000..6f86fc0fdea --- /dev/null +++ b/emulators/pearpc/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/20 19:33:19 xtraeme Exp $ +bin/pearpc +share/pearpc/ppc +share/pearpc/video.x +share/examples/pearpc/ppccfg.example +@dirrm share/examples/pearpc +@dirrm share/pearpc diff --git a/emulators/pearpc/distinfo b/emulators/pearpc/distinfo new file mode 100644 index 00000000000..ad92da71cb1 --- /dev/null +++ b/emulators/pearpc/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/06/20 19:33:19 xtraeme Exp $ + +SHA1 (pearpc-0.2.0.tar.bz2) = b83a3cea723c077d8037e7a78015c4c325748dfc +Size (pearpc-0.2.0.tar.bz2) = 547558 bytes +SHA1 (patch-aa) = 2eaf48a1303bc07f26d4413ac2a915d3e75194c3 diff --git a/emulators/pearpc/files/pearpc.sh b/emulators/pearpc/files/pearpc.sh new file mode 100644 index 00000000000..a5022cb9d5d --- /dev/null +++ b/emulators/pearpc/files/pearpc.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $NetBSD: pearpc.sh,v 1.1.1.1 2004/06/20 19:33:20 xtraeme Exp $ + +cd @PREFIX@/share/pearpc && exec ./ppc "$@" @PKG_SYSCONFDIR@/ppccfg.conf +exit 0 -- cgit v1.2.3