summaryrefslogtreecommitdiff
path: root/emulators/pearpc/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-06-20 19:33:19 +0000
committerxtraeme <xtraeme>2004-06-20 19:33:19 +0000
commitfc74d9b9fcc249435a90e7eeddbcf56f8b9bf5b8 (patch)
tree68bd6b47ba5210c9329b32a2d64692e44efa84be /emulators/pearpc/Makefile
parent52b9125664ff8bc49f0d97a652a06d7b96aecddf (diff)
downloadpkgsrc-fc74d9b9fcc249435a90e7eeddbcf56f8b9bf5b8.tar.gz
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.
Diffstat (limited to 'emulators/pearpc/Makefile')
-rw-r--r--emulators/pearpc/Makefile51
1 files changed, 51 insertions, 0 deletions
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"