summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorkamil <kamil>2017-01-08 02:26:47 +0000
committerkamil <kamil>2017-01-08 02:26:47 +0000
commit8a53d750c56a1aec0592a497e48d33d6b779e1e7 (patch)
tree95c4e8a8e7e989ba1d7a251c1e04672059d298b9 /emulators
parent08e169198e73a84dc9af495c488f56466ec976a0 (diff)
downloadpkgsrc-8a53d750c56a1aec0592a497e48d33d6b779e1e7.tar.gz
Add support in qemu for native NetBSD curses(3)
curses_version() is ncurses specific function available only in ncurses and used just in configure. Bump revision to 1
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/Makefile7
-rw-r--r--emulators/qemu/distinfo4
-rw-r--r--emulators/qemu/patches/patch-configure26
3 files changed, 27 insertions, 10 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index be4a3391f6f..3c50005a0be 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.161 2017/01/01 14:43:38 wiz Exp $
+# $NetBSD: Makefile,v 1.162 2017/01/08 02:26:47 kamil Exp $
DISTNAME= qemu-2.8.0
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://wiki.qemu.org/download/
EXTRACT_SUFX= .tar.bz2
@@ -16,7 +17,7 @@ NOT_FOR_PLATFORM+= NetBSD-1.[0-6]*-*
NOT_FOR_PLATFORM+= NetBSD-5*-*
USE_TOOLS+= bison gmake makeinfo perl:build pkg-config
-USE_NCURSES= yes # requires resize_term()
+FAKE_NCURSES= yes
UNLIMIT_RESOURCES= datasize
HAS_CONFIGURE= yes
@@ -135,10 +136,10 @@ post-install:
.include "../../mk/oss.buildlink3.mk"
.endif
.include "../../devel/glib2/buildlink3.mk"
-.include "../../devel/ncursesw/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../x11/pixman/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index 6494f49643f..0fc01fb4608 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.119 2016/12/30 10:00:16 ryoon Exp $
+$NetBSD: distinfo,v 1.120 2017/01/08 02:26:47 kamil Exp $
SHA1 (qemu-2.8.0.tar.bz2) = a5602f2ddb51d61b4c0e618b779fdb0dbdc9cc1f
RMD160 (qemu-2.8.0.tar.bz2) = da1e640443a15f36a242fe803c65a39f85b06fcc
SHA512 (qemu-2.8.0.tar.bz2) = 50f2988d822388ba9fd1bf5dbe68359033ed7432d7f0f9790299f32f63faa6dc72979256b5632ba572d47ee3e74ed40e3e8e331dc6303ec1599f1b4367cb78c2
Size (qemu-2.8.0.tar.bz2) = 28368517 bytes
SHA1 (patch-Makefile.objs) = f40deeed5482a24369e898411bb611be418dc3ca
-SHA1 (patch-configure) = dba5399fb674f0848111c3fecb65462a6829444a
+SHA1 (patch-configure) = 5c2911c1375a2f8916f84f68d4ba9a799b7624cb
SHA1 (patch-default-configs_pci.mak) = 2162550a68de514c8fe9e255df88f8a0a07ee6c7
SHA1 (patch-ef) = 98a1de2fd48638886b5d16f6a61dc72910e98b41
SHA1 (patch-et) = e9b850ac5985cbe934b541acbfdb330cce421d50
diff --git a/emulators/qemu/patches/patch-configure b/emulators/qemu/patches/patch-configure
index 1212f1ed4f0..98de471f7a8 100644
--- a/emulators/qemu/patches/patch-configure
+++ b/emulators/qemu/patches/patch-configure
@@ -1,4 +1,4 @@
-$NetBSD: patch-configure,v 1.15 2016/12/30 10:00:16 ryoon Exp $
+$NetBSD: patch-configure,v 1.16 2017/01/08 02:26:47 kamil Exp $
Don't use gld on SunOS
add check for shm_open
@@ -25,7 +25,23 @@ avoid bad substitution
fi
curses_found=no
cat > $TMPC << EOF
-@@ -3762,6 +3761,27 @@ if compile_prog "" "" ; then
+@@ -2937,14 +2936,13 @@ if test "$curses" != "no" ; then
+ #include <curses.h>
+ #include <wchar.h>
+ int main(void) {
+- const char *s = curses_version();
+ wchar_t wch = L'w';
+ setlocale(LC_ALL, "");
+ resize_term(0, 0);
+ addwstr(L"wide chars\n");
+ addnwstr(&wch, 1);
+ add_wch(WACS_DEGREE);
+- return s != 0;
++ return 0;
+ }
+ EOF
+ IFS=:
+@@ -3762,6 +3760,27 @@ if compile_prog "" "" ; then
fallocate_zero_range=yes
fi
@@ -53,7 +69,7 @@ avoid bad substitution
# check for posix_fallocate
posix_fallocate=no
cat > $TMPC << EOF
-@@ -4041,8 +4061,13 @@ fi
+@@ -4041,8 +4060,13 @@ fi
cat > $TMPC <<EOF
#include <signal.h>
#include <time.h>
@@ -67,7 +83,7 @@ avoid bad substitution
return clock_gettime(CLOCK_REALTIME, NULL);
}
EOF
-@@ -4797,7 +4822,9 @@ if test "$want_tools" = "yes" ; then
+@@ -4797,7 +4821,9 @@ if test "$want_tools" = "yes" ; then
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) $tools"
@@ -78,7 +94,7 @@ avoid bad substitution
fi
fi
if test "$softmmu" = yes ; then
-@@ -5303,6 +5330,9 @@ fi
+@@ -5303,6 +5329,9 @@ fi
if test "$fallocate_zero_range" = "yes" ; then
echo "CONFIG_FALLOCATE_ZERO_RANGE=y" >> $config_host_mak
fi