summaryrefslogtreecommitdiff
path: root/emulators/peace
diff options
context:
space:
mode:
authorkent <kent@pkgsrc.org>2008-12-07 16:23:45 +0000
committerkent <kent@pkgsrc.org>2008-12-07 16:23:45 +0000
commitf76304e4e9ef5a165f851a9480aac64731cdb02c (patch)
tree622f9d7795c1af984295a94838160a1d1f5b4cbb /emulators/peace
parentc33f0bfe670e6de304eb7440b0192cfd399ee6f9 (diff)
downloadpkgsrc-f76304e4e9ef5a165f851a9480aac64731cdb02c.tar.gz
Make this compilable on the recent NetBSD-4.
- support for KERN_OLDSYSVSHM patch provided by Sergey Svishchev - no support for NetBSD-5 because of /emul/pecoff
Diffstat (limited to 'emulators/peace')
-rw-r--r--emulators/peace/Makefile5
-rw-r--r--emulators/peace/distinfo3
-rw-r--r--emulators/peace/patches/patch-aa14
3 files changed, 19 insertions, 3 deletions
diff --git a/emulators/peace/Makefile b/emulators/peace/Makefile
index 30c5a007298..2e9223c22c5 100644
--- a/emulators/peace/Makefile
+++ b/emulators/peace/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2007/04/05 16:21:37 kent Exp $
+# $NetBSD: Makefile,v 1.27 2008/12/07 16:23:45 kent Exp $
#
PEACE_VERSION= 0.0.20060701
DISTNAME= peace-${PEACE_VERSION}
@@ -11,7 +11,8 @@ COMMENT= Support running Win32 executables
DISTFILES+= peace-${PEACE_VERSION}.tar.gz
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=peace/}
-ONLY_FOR_PLATFORM= NetBSD-[2-9]*-i386
+# This version doesn't work on NetBSD-5.x because of /emul/pecoff removal.
+ONLY_FOR_PLATFORM= NetBSD-[34].*-i386
DEPENDS+= icu>=2.4nb1:../../textproc/icu
DEPENDS+= freetype2>=2.2.1:../../graphics/freetype2
# bin/showstack requires perl5 and cross-i386-netbsdpe
diff --git a/emulators/peace/distinfo b/emulators/peace/distinfo
index 0dea70a9aef..b3de97c5a49 100644
--- a/emulators/peace/distinfo
+++ b/emulators/peace/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.14 2006/07/03 04:38:43 kent Exp $
+$NetBSD: distinfo,v 1.15 2008/12/07 16:23:45 kent Exp $
SHA1 (peace-0.0.20060701.tar.gz) = 0307592fc773dec131d75408cf31898f91952f81
RMD160 (peace-0.0.20060701.tar.gz) = 3a0de978b3979b21fe3813e1267f4edd75802f54
Size (peace-0.0.20060701.tar.gz) = 1685054 bytes
+SHA1 (patch-aa) = 74f91d96da3a216b8acb2192074c390377eae42a
diff --git a/emulators/peace/patches/patch-aa b/emulators/peace/patches/patch-aa
new file mode 100644
index 00000000000..8dcedb60b90
--- /dev/null
+++ b/emulators/peace/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.3 2008/12/07 16:23:45 kent Exp $
+
+--- dll/ui.so/X11.cc.orig 2008-12-08 01:09:48.000000000 +0900
++++ dll/ui.so/X11.cc
+@@ -41,6 +41,9 @@
+ #include <sys/param.h>
+ #include <sys/shm.h>
+ #include <sys/sysctl.h>
++#ifndef KERN_SYSVSHM
++#define KERN_SYSVSHM KERN_OLDSYSVSHM
++#endif
+
+ #include "X11.h"
+ #include "WindowObject.h"