diff options
author | wiz <wiz> | 2009-04-06 10:17:32 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-04-06 10:17:32 +0000 |
commit | 00038c68cc397fb05c61c38ce2c96817461e2be8 (patch) | |
tree | 2af1e8a2d61265e1b70b110673962af115463df7 | |
parent | d59cdf96f6b1597b6eb56af1db42aeaf638b6139 (diff) | |
download | pkgsrc-00038c68cc397fb05c61c38ce2c96817461e2be8.tar.gz |
Initial import of gtk-vnc-0.3.8nb1 from pkgsrc-wip:
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded. It provides a core C library, and bindings for Python
(PyGTK).
-rw-r--r-- | net/gtk-vnc/DESCR | 4 | ||||
-rw-r--r-- | net/gtk-vnc/Makefile | 36 | ||||
-rw-r--r-- | net/gtk-vnc/PLIST | 7 | ||||
-rw-r--r-- | net/gtk-vnc/buildlink3.mk | 18 | ||||
-rw-r--r-- | net/gtk-vnc/distinfo | 8 | ||||
-rw-r--r-- | net/gtk-vnc/options.mk | 24 | ||||
-rw-r--r-- | net/gtk-vnc/patches/patch-aa | 15 | ||||
-rw-r--r-- | net/gtk-vnc/patches/patch-ab | 15 | ||||
-rw-r--r-- | net/gtk-vnc/patches/patch-ac | 13 |
9 files changed, 140 insertions, 0 deletions
diff --git a/net/gtk-vnc/DESCR b/net/gtk-vnc/DESCR new file mode 100644 index 00000000000..9d159f54ebc --- /dev/null +++ b/net/gtk-vnc/DESCR @@ -0,0 +1,4 @@ +gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines +allowing it to be completely asynchronous while remaining single +threaded. It provides a core C library, and bindings for Python +(PyGTK). diff --git a/net/gtk-vnc/Makefile b/net/gtk-vnc/Makefile new file mode 100644 index 00000000000..f9c4eebdfd8 --- /dev/null +++ b/net/gtk-vnc/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ +# + +DISTNAME= gtk-vnc-0.3.8 +PKGREVISION= 1 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtk-vnc/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://gtk-vnc.sourceforge.net/ +COMMENT= VNC viewer widget for GTK + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= gtk-vnc-1.0.pc.in +PY_PATCHPLIST= yes + +CONFIGURE_ARGS+= --with-coroutine=gthread + +.include "options.mk" + +#VIEW_REQUIRED=0.6.0 +#libview + +.include "../../devel/glib2/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/gtkglext/buildlink3.mk" +BUILDLINK_API_DEPENDS.gnutls+= gnutls>=1.4.0 +.include "../../security/gnutls/buildlink3.mk" +BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.10.0 +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/gtk-vnc/PLIST b/net/gtk-vnc/PLIST new file mode 100644 index 00000000000..3f6f8ae3286 --- /dev/null +++ b/net/gtk-vnc/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ +include/gtk-vnc-1.0/vncdisplay.h +${PLIST.firefox}lib/firefox/plugins/gtk-vnc-plugin.so +lib/libgtk-vnc-1.0.la +lib/pkgconfig/gtk-vnc-1.0.pc +${PLIST.python}${PYSITELIB}/gtkvnc.la +@dirrm include/gtk-vnc-1.0 diff --git a/net/gtk-vnc/buildlink3.mk b/net/gtk-vnc/buildlink3.mk new file mode 100644 index 00000000000..638b07fc79f --- /dev/null +++ b/net/gtk-vnc/buildlink3.mk @@ -0,0 +1,18 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +BUILDLINK_TREE+= gtk-vnc + +.if !defined(GTK_VNC_BUILDLINK3_MK) +GTK_VNC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.gtk-vnc+= gtk-vnc>=0.3.7 +BUILDLINK_PKGSRCDIR.gtk-vnc?= ../../wip/gtk-vnc + +.include "../../devel/glib2/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/gtkglext/buildlink3.mk" +.include "../../security/gnutls/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.endif # GTK_VNC_BUILDLINK3_MK + +BUILDLINK_TREE+= -gtk-vnc diff --git a/net/gtk-vnc/distinfo b/net/gtk-vnc/distinfo new file mode 100644 index 00000000000..f064d9efdc8 --- /dev/null +++ b/net/gtk-vnc/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +SHA1 (gtk-vnc-0.3.8.tar.gz) = 58b729504df8ce8a043bfbf6351d751e8c8b8a09 +RMD160 (gtk-vnc-0.3.8.tar.gz) = d0fe46cf6fba4e68165e91a54f9373eff3d77932 +Size (gtk-vnc-0.3.8.tar.gz) = 610526 bytes +SHA1 (patch-aa) = e59cd2080d9d88d4d689f10ed15738aa3309dcf3 +SHA1 (patch-ab) = e4e34a1f664de13a1c27c3c53eeed5b62d9f988c +SHA1 (patch-ac) = fe2e85bcbe8df464ab50cdb17afc80ba74ab999b diff --git a/net/gtk-vnc/options.mk b/net/gtk-vnc/options.mk new file mode 100644 index 00000000000..64530befc4c --- /dev/null +++ b/net/gtk-vnc/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.gtk-vnc +PKG_SUPPORTED_OPTIONS= python firefox + +.include "../../mk/bsd.options.mk" + +PLIST_VARS= python +.if !empty(PKG_OPTIONS:Mpython) +.include "../../lang/python/extension.mk" +.include "../../x11/py-gtk2/buildlink3.mk" +USE_TOOLS+= gmake +PLIST.python= yes +.else +CONFIGURE_ARGS+= --with-python=no +.endif + +PLIST_VARS+= firefox +.if !empty(PKG_OPTIONS:Mfirefox) +.include "../../devel/nspr/buildlink3.mk" +.include "../../www/firefox/buildlink3.mk" +CONFIGURE_ARGS+= --enable-plugin=yes +PLIST.firefox= yes +.endif diff --git a/net/gtk-vnc/patches/patch-aa b/net/gtk-vnc/patches/patch-aa new file mode 100644 index 00000000000..a80d346c10e --- /dev/null +++ b/net/gtk-vnc/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +--- src/gvnc.c.orig 2008-12-07 20:35:14.000000000 +0100 ++++ src/gvnc.c +@@ -59,6 +59,10 @@ + #endif + + ++#ifndef AI_ADDRCONFIG ++#define AI_ADDRCONFIG 0 ++#endif ++ + struct wait_queue + { + gboolean waiting; diff --git a/net/gtk-vnc/patches/patch-ab b/net/gtk-vnc/patches/patch-ab new file mode 100644 index 00000000000..e58527f832d --- /dev/null +++ b/net/gtk-vnc/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +--- src/coroutine_ucontext.c.orig 2008-09-05 12:32:16.000000000 +0000 ++++ src/coroutine_ucontext.c +@@ -14,6 +14,10 @@ + #include <stdlib.h> + #include "coroutine.h" + ++#ifndef MAP_ANONYMOUS ++#define MAP_ANONYMOUS MAP_ANON ++#endif ++ + int coroutine_release(struct coroutine *co) + { + return cc_release(&co->cc); diff --git a/net/gtk-vnc/patches/patch-ac b/net/gtk-vnc/patches/patch-ac new file mode 100644 index 00000000000..4a5ac75a1e8 --- /dev/null +++ b/net/gtk-vnc/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2009/04/06 10:17:32 wiz Exp $ + +--- plugin/Makefile.in.orig 2008-09-05 12:32:30.000000000 +0000 ++++ plugin/Makefile.in +@@ -230,7 +230,7 @@ target_os = @target_os@ + target_vendor = @target_vendor@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-@ENABLE_PLUGIN_TRUE@plugindir = $(libdir)/mozilla/plugins ++@ENABLE_PLUGIN_TRUE@plugindir = $(libdir)/firefox/plugins + @ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = gtk-vnc-plugin.la + @ENABLE_PLUGIN_TRUE@gtk_vnc_plugin_la_SOURCES = \ + @ENABLE_PLUGIN_TRUE@ gtk-vnc-plugin.c gtk-vnc-plugin.h npshell.c npunix.c |