summaryrefslogtreecommitdiff
path: root/emulators/pearpc
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2018-03-17 01:27:55 +0000
committerryoon <ryoon@pkgsrc.org>2018-03-17 01:27:55 +0000
commit51d7c0225ddc566b3a7d10bd9e01f2e02e062dec (patch)
tree29badd1c7ee2d63a1a5470c72d7b811fb3e0a833 /emulators/pearpc
parent61405a8990451bcfd70a945852a0d686449806ef (diff)
downloadpkgsrc-51d7c0225ddc566b3a7d10bd9e01f2e02e062dec.tar.gz
Update to 0.5
* Use c++03 to fix build. * ppc binary is not PaX MPROTECT safe. Changelog: version 0.5 (released 13. July 2011): - slightly better code for lmw/stmw opcodes - use "GNU as" instead of nasm - use -mdynamic-no-pic on *darwin - fixed some strict-aliasing problems - JITC: AMD64 support - compiles with gcc 4.3, 4.4, 4.5
Diffstat (limited to 'emulators/pearpc')
-rw-r--r--emulators/pearpc/Makefile11
-rw-r--r--emulators/pearpc/distinfo15
-rw-r--r--emulators/pearpc/patches/patch-ag8
-rw-r--r--emulators/pearpc/patches/patch-ah13
-rw-r--r--emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc17
-rw-r--r--emulators/pearpc/patches/patch-src_system_types.h13
6 files changed, 35 insertions, 42 deletions
diff --git a/emulators/pearpc/Makefile b/emulators/pearpc/Makefile
index 919e7522a07..541e6df4d85 100644
--- a/emulators/pearpc/Makefile
+++ b/emulators/pearpc/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2015/04/25 14:20:46 tnn Exp $
+# $NetBSD: Makefile,v 1.20 2018/03/17 01:27:55 ryoon Exp $
-DISTNAME= pearpc-0.4
-PKGREVISION= 3
+DISTNAME= pearpc-0.5
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pearpc/}
EXTRACT_SUFX= .tar.bz2
@@ -11,7 +10,9 @@ HOMEPAGE= http://pearpc.sourceforge.net/
COMMENT= PowerPC emulator
GNU_CONFIGURE= yes
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c c++03
+
+BUILDLINK_TRANSFORM+= rm:-Wall
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/ppccfg.example ${PKG_SYSCONFDIR}/ppccfg.conf
@@ -27,6 +28,8 @@ CONFIGURE_ARGS+= --disable-debug
INSTALLATION_DIRS= share/${PKGBASE} ${EGDIR} bin
+NOT_PAX_MPROTECT_SAFE+= share/pearpc/ppc
+
do-install:
${SED} -e "s,@PREFIX@,${PREFIX}," \
-e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR}," \
diff --git a/emulators/pearpc/distinfo b/emulators/pearpc/distinfo
index 340bbb40d22..8ca847eada1 100644
--- a/emulators/pearpc/distinfo
+++ b/emulators/pearpc/distinfo
@@ -1,16 +1,15 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 20:31:01 agc Exp $
+$NetBSD: distinfo,v 1.11 2018/03/17 01:27:55 ryoon Exp $
-SHA1 (pearpc-0.4.tar.bz2) = 1cfa4f19f9a1de73c209a38d8fda174c0ebe6ad5
-RMD160 (pearpc-0.4.tar.bz2) = 84c831b3ede69721d0fa48d71a30ee0e7ec512fc
-SHA512 (pearpc-0.4.tar.bz2) = 03b1c189ddeb16edbfa8cc5485543a329e2c34102701c8c9ac78ccb8b962f8cbb90e208939c6bf6b526970d77f3a07f16344d415a50d189612cf5f76d4ac6483
-Size (pearpc-0.4.tar.bz2) = 687776 bytes
+SHA1 (pearpc-0.5.tar.bz2) = 17c5ec69f0139d5a5ce02186a3c990040f45f343
+RMD160 (pearpc-0.5.tar.bz2) = 5f2cd819c21a2cd69465737cf873fc7f00c59188
+SHA512 (pearpc-0.5.tar.bz2) = 26fdc238e846bb52394c6a6e59c8b391b916c464a0e906bf0fb1007401eac3d278b5e4ca1f4f85238ea15f15b4ca731e0dcf5835c5ff189ac9307b98f3f3ab21
+Size (pearpc-0.5.tar.bz2) = 800380 bytes
SHA1 (patch-aa) = bfb350b83e10c8862b978ee0a1cb02db841576ea
SHA1 (patch-ab) = c8724e43d99476d5ccae8d8782dc8bf9705743ae
SHA1 (patch-ac) = e6b52cf368391fe6d09722a6ba99e5b3933c5b03
SHA1 (patch-ad) = 5932a40320c7783c8379d2af7f6d98a42707ff1b
SHA1 (patch-ae) = 53dfb9a705296085bc1cdf707b9c491b0a2a4030
SHA1 (patch-af) = dd2b1c23ab00313be04ca144fbceb3416b1d7d8f
-SHA1 (patch-ag) = 8ec459446fd666b99345d4a8963bcf47e35b0435
-SHA1 (patch-ah) = 0ba6c0f72f3fe382aa07bf2304813417ce2fd6f9
+SHA1 (patch-ag) = 2f7d50f5be1f72fb0902d1fd44c1fd0ff44439a8
+SHA1 (patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc) = 9827762237ea18a18d3e4105479db58c5638fe80
SHA1 (patch-src_cpu_mem.h) = cb21242ef53e72e0f75fc8ea6119ebad3d08b2e9
-SHA1 (patch-src_system_types.h) = 90cce88a9936616901e43a5c21cb5db11e9ce2da
diff --git a/emulators/pearpc/patches/patch-ag b/emulators/pearpc/patches/patch-ag
index 034ab04c0a8..319df286451 100644
--- a/emulators/pearpc/patches/patch-ag
+++ b/emulators/pearpc/patches/patch-ag
@@ -1,9 +1,9 @@
-$NetBSD: patch-ag,v 1.1 2006/01/12 20:57:25 joerg Exp $
+$NetBSD: patch-ag,v 1.2 2018/03/17 01:27:55 ryoon Exp $
---- configure.orig 2006-01-12 20:37:05.000000000 +0000
+--- configure.orig 2011-07-12 21:21:49.000000000 +0000
+++ configure
-@@ -1934,7 +1934,7 @@ linux* | gnu* | k*bsd*-gnu)
- echo "${ECHO_T}*** GNU, building POSIX version. we need pthread and rt." >&6
+@@ -3154,7 +3154,7 @@ $as_echo "*** GNU, building POSIX versio
+ PPC_CXXFLAGS="$PPC_CXXFLAGS -pthread"
PPC_LDADD="$PPC_LDADD -lpthread -lrt"
;;
-freebsd*)
diff --git a/emulators/pearpc/patches/patch-ah b/emulators/pearpc/patches/patch-ah
deleted file mode 100644
index f62cabb615a..00000000000
--- a/emulators/pearpc/patches/patch-ah
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2007/11/13 18:01:58 joerg Exp $
-
---- src/tools/crc32.cc.orig 2007-11-13 17:40:47.000000000 +0100
-+++ src/tools/crc32.cc
-@@ -106,7 +106,7 @@ uint32 ether_crc(size_t len, const byte
- uint32 crc = 0xffffffff; // preload shift register, per CRC-32 spec
-
- #ifdef RUN_FASTER
-- for (; (((uint32)p)&0x03)!=0 && len>0; len--)
-+ for (; (((uintptr_t)p)&0x03)!=0 && len>0; len--)
- DO_CRC(*p++); // will execute if *p is not dword aligned
- for (; len>=sizeof(uint32); p += sizeof(uint32), len -= sizeof(uint32)) {
- uint32 data = *(uint32*)p;
diff --git a/emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc b/emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc
new file mode 100644
index 00000000000..18a747f7056
--- /dev/null
+++ b/emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc,v 1.1 2018/03/17 01:27:55 ryoon Exp $
+
+* Support platforms that does not define MAP_32BIT, for example NetBSD.
+
+--- src/cpu/cpu_jitc_x86_64/ppc_mmu.cc.orig 2011-07-12 20:57:24.000000000 +0000
++++ src/cpu/cpu_jitc_x86_64/ppc_mmu.cc
+@@ -37,6 +37,10 @@
+ byte *gMemory = NULL;
+ uint32 gMemorySize;
+
++#ifndef MAP_32BIT
++#define MAP_32BIT 0
++#endif
++
+ #undef TLB
+
+ static int ppc_pte_protection[] = {
diff --git a/emulators/pearpc/patches/patch-src_system_types.h b/emulators/pearpc/patches/patch-src_system_types.h
deleted file mode 100644
index 677cad05abb..00000000000
--- a/emulators/pearpc/patches/patch-src_system_types.h
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_system_types.h,v 1.1 2015/03/31 15:25:22 joerg Exp $
-
---- src/system/types.h.orig 2015-03-26 10:25:25.000000000 +0000
-+++ src/system/types.h
-@@ -42,7 +42,7 @@
- #ifdef __GNUC__
-
- // FIXME: configure
--# ifndef __ppc__
-+# ifdef __i386__
- # define FASTCALL __attribute__((regparm (3)))
- # else
- # define FASTCALL