From ceaf221616360ad4a486433f7f549d00a50bae07 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 11 Feb 2006 13:06:43 +0000 Subject: Imported pornview from pkgsrc-wip. PornView is an image and movie viewer/manager with thumbnail previews. Additional features includes thumbnail caching, directory tree views, adjustable zoom, fullscreen view, and slideshow mode. PornView contains no objectionable content. This package is built with GTK+ 1.0 support. Packaged by David Howland. --- graphics/pornview/DESCR | 7 ++++ graphics/pornview/Makefile | 12 ++++++ graphics/pornview/Makefile.common | 30 +++++++++++++++ graphics/pornview/PLIST | 12 ++++++ graphics/pornview/TODO | 2 + graphics/pornview/distinfo | 10 +++++ graphics/pornview/options.mk | 23 ++++++++++++ graphics/pornview/patches/patch-aa | 31 ++++++++++++++++ graphics/pornview/patches/patch-ab | 13 +++++++ graphics/pornview/patches/patch-ac | 14 +++++++ graphics/pornview/patches/patch-ad | 76 ++++++++++++++++++++++++++++++++++++++ graphics/pornview/patches/patch-ae | 12 ++++++ 12 files changed, 242 insertions(+) create mode 100644 graphics/pornview/DESCR create mode 100644 graphics/pornview/Makefile create mode 100644 graphics/pornview/Makefile.common create mode 100644 graphics/pornview/PLIST create mode 100644 graphics/pornview/TODO create mode 100644 graphics/pornview/distinfo create mode 100644 graphics/pornview/options.mk create mode 100644 graphics/pornview/patches/patch-aa create mode 100644 graphics/pornview/patches/patch-ab create mode 100644 graphics/pornview/patches/patch-ac create mode 100644 graphics/pornview/patches/patch-ad create mode 100644 graphics/pornview/patches/patch-ae (limited to 'graphics/pornview') diff --git a/graphics/pornview/DESCR b/graphics/pornview/DESCR new file mode 100644 index 00000000000..9211ac30c27 --- /dev/null +++ b/graphics/pornview/DESCR @@ -0,0 +1,7 @@ +PornView is an image and movie viewer/manager with thumbnail previews. +Additional features includes thumbnail caching, directory tree views, +adjustable zoom, fullscreen view, and slideshow mode. + +PornView contains no objectionable content. + +This package is built with GTK+ 1.0 support. diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile new file mode 100644 index 00000000000..8337d6393ff --- /dev/null +++ b/graphics/pornview/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ +# + +.include "Makefile.common" + +COMMENT+= (GTK+ 1.0 interface) + +CONFLICTS= pornview-gtk2-[0-9]* + +.include "../../graphics/gdk-pixbuf/buildlink3.mk" +.include "../../x11/gtk/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/pornview/Makefile.common b/graphics/pornview/Makefile.common new file mode 100644 index 00000000000..7702585d948 --- /dev/null +++ b/graphics/pornview/Makefile.common @@ -0,0 +1,30 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ +# + +PKGNAME= pornview-0.2.0pre1 +DISTNAME= pornview_0.2pre1.orig +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/p/pornview/} + +MAINTAINER= dhowland@users.sourceforge.net +HOMEPAGE= http://pornview.sourceforge.net/ +COMMENT= GTK+ image viewer + +WRKSRC= ${WRKDIR}/pornview-0.2.0pre1 + +BUILD_USES_MSGFMT= yes + +DISTINFO_FILE= ${.CURDIR}/../../graphics/pornview/distinfo +PATCHDIR= ${.CURDIR}/../../graphics/pornview/patches +PLIST_SRC= ${.CURDIR}/../../graphics/pornview/PLIST + +GNU_CONFIGURE= yes +USE_DIRS+= gnome2-1.5 +USE_LIBTOOL= yes +USE_PKGLOCALEDIR= yes + +.include "../../graphics/pornview/options.mk" + +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../textproc/intltool/buildlink3.mk" diff --git a/graphics/pornview/PLIST b/graphics/pornview/PLIST new file mode 100644 index 00000000000..8d4c1fa78fb --- /dev/null +++ b/graphics/pornview/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ +bin/pornview +share/gnome/apps/Graphics/pornview.desktop +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/pornview.mo +${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/pornview.mo +share/pixmaps/pornview.png +share/pornview/scripts/helloworld +@dirrm share/pornview/scripts +@dirrm share/pornview +@comment in xdg-dirs: @dirrm share/pixmaps +@comment in gnome2-dirs: @dirrm share/gnome/apps/Graphics +@comment in gnome2-dirs: @dirrm share/gnome/apps diff --git a/graphics/pornview/TODO b/graphics/pornview/TODO new file mode 100644 index 00000000000..5158a0b14fe --- /dev/null +++ b/graphics/pornview/TODO @@ -0,0 +1,2 @@ +Dumps core when compiled with xine support (NetBSD 2.1.0/i386). +Patch it to use pkgsrc's libexif? diff --git a/graphics/pornview/distinfo b/graphics/pornview/distinfo new file mode 100644 index 00000000000..67aadf638dc --- /dev/null +++ b/graphics/pornview/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +SHA1 (pornview_0.2pre1.orig.tar.gz) = 3a26412affac6e211da928cc471a4b1bbc55b2a0 +RMD160 (pornview_0.2pre1.orig.tar.gz) = 03a9d01235fafbfb9825da43e79fbfb66a2ecbfa +Size (pornview_0.2pre1.orig.tar.gz) = 608864 bytes +SHA1 (patch-aa) = c9a6092bb57619250433b3a80923431d96cfdc19 +SHA1 (patch-ab) = b0c59a238eced5a2480d7c10c06f5c800e087f39 +SHA1 (patch-ac) = a0fc989c301f92e28910251397a73d621a25f4f5 +SHA1 (patch-ad) = 7ba8d060156213552bf1e86143547c692ce4705f +SHA1 (patch-ae) = 4f87f6357642d5c37baf5124668aeb46e4c2825d diff --git a/graphics/pornview/options.mk b/graphics/pornview/options.mk new file mode 100644 index 00000000000..edc373ffade --- /dev/null +++ b/graphics/pornview/options.mk @@ -0,0 +1,23 @@ +# $NetBSD: options.mk,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.pornview +PKG_SUPPORTED_OPTIONS= exif +PKG_OPTIONS_OPTIONAL_GROUPS= movie +PKG_OPTIONS_GROUP.movie= mplayer xine +PKG_SUGGESTED_OPTIONS= exif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mexif) +CONFIGURE_ARGS+= --enable-exif +.else +CONFIGURE_ARGS+= --disable-exif +.endif + +.if !empty(PKG_OPTIONS:Mmplayer) +DEPENDS+= mplayer>=1.0rc3:../../multimedia/mplayer +CONFIGURE_ARGS+= --enable-mplayer +.elif !empty(PKG_OPTIONS:Mxine) +. include "../../multimedia/xine-lib/buildlink3.mk" +CONFIGURE_ARGS+= --enable-xine +.endif diff --git a/graphics/pornview/patches/patch-aa b/graphics/pornview/patches/patch-aa new file mode 100644 index 00000000000..47fddda13f4 --- /dev/null +++ b/graphics/pornview/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/image_loader.c.orig 2002-12-16 17:45:36.000000000 +0000 ++++ src/support/image_loader.c +@@ -81,7 +81,7 @@ static void + image_loader_stop (ImageLoader * il) + { + #ifdef USE_GTK2 +- GError *err; ++ GError *err = NULL; + #endif + + if (!il) +@@ -174,7 +174,7 @@ cb_image_loader_idle (gpointer data) + gint c; + + #ifdef USE_GTK2 +- GError *err; ++ GError *err = NULL; + #endif + + if (!il) +@@ -241,7 +241,7 @@ image_loader_begin (ImageLoader * il) + int b; + + #ifdef USE_GTK2 +- GError *err; ++ GError *err = NULL; + #endif + + if (!il->loader || il->pixbuf) diff --git a/graphics/pornview/patches/patch-ab b/graphics/pornview/patches/patch-ab new file mode 100644 index 00000000000..2efc13ed4b4 --- /dev/null +++ b/graphics/pornview/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/widgets/gtkxine.c.orig 2003-01-03 22:48:21.000000000 +0000 ++++ src/support/widgets/gtkxine.c +@@ -632,7 +632,7 @@ gtk_xine_unrealize (GtkWidget * widget) + */ + if (this->vo_driver != NULL) + xine_close_video_driver (this->xine, this->vo_driver); +- if (this->vo_driver != NULL) ++ if (this->ao_driver != NULL) + xine_close_audio_driver (this->xine, this->ao_driver); + + /* diff --git a/graphics/pornview/patches/patch-ac b/graphics/pornview/patches/patch-ac new file mode 100644 index 00000000000..93a426a0531 --- /dev/null +++ b/graphics/pornview/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/widgets/zlist.c.orig 2002-12-13 10:52:56.000000000 +0000 ++++ src/support/widgets/zlist.c +@@ -634,7 +634,8 @@ zlist_draw (GtkWidget * widget, GdkRecta + CELL_X_FROM_COL (list, j), area->y, + list->cell_x_pad, area->height); + +- cell = ZLIST_CELL_FROM_INDEX (list, idx); ++ if (idx < list->cell_count) ++ cell = ZLIST_CELL_FROM_INDEX (list, idx); + + cell_area.x = CELL_X_FROM_COL (list, j) + list->cell_x_pad; + cell_area.y = CELL_Y_FROM_ROW (list, i) + list->cell_y_pad; diff --git a/graphics/pornview/patches/patch-ad b/graphics/pornview/patches/patch-ad new file mode 100644 index 00000000000..5a9b1d24014 --- /dev/null +++ b/graphics/pornview/patches/patch-ad @@ -0,0 +1,76 @@ +$NetBSD: patch-ad,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/widgets/gtkmplayer.c.orig 2002-12-13 11:15:21.000000000 +0000 ++++ src/support/widgets/gtkmplayer.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -72,9 +73,9 @@ struct ChildContext_Tag + int stderr_fd; + int stdin_fd; + +- gchar stdout[GTK_MPLAYER_BUF_SIZE]; ++ gchar stdoutb[GTK_MPLAYER_BUF_SIZE]; + gint stdout_size; +- gchar stderr[GTK_MPLAYER_BUF_SIZE]; ++ gchar stderrb[GTK_MPLAYER_BUF_SIZE]; + gint stderr_size; + + ProcessLineFunc process_line_fn; +@@ -1049,13 +1050,13 @@ start_command (GtkMPlayer * player, GLis + context->stdout_fd = out_fd[0]; + fcntl (context->stdout_fd, F_SETFL, O_NONBLOCK); + close (out_fd[1]); +- context->stdout[0] = '\0'; ++ context->stdoutb[0] = '\0'; + context->stdout_size = 0; + + context->stderr_fd = err_fd[0]; + fcntl (context->stderr_fd, F_SETFL, O_NONBLOCK); + close (err_fd[1]); +- context->stderr[0] = '\0'; ++ context->stderrb[0] = '\0'; + context->stderr_size = 0; + + context->stdin_fd = in_fd[1]; +@@ -1193,7 +1194,7 @@ process_output (ChildContext * context) + + if (size > 0 && size < GTK_MPLAYER_BUF_SIZE) + { +- memcpy (buf, context->stderr, size); ++ memcpy (buf, context->stderrb, size); + next = buf + size; + } + else +@@ -1211,7 +1212,7 @@ process_output (ChildContext * context) + size += MIN (GTK_MPLAYER_BUF_SIZE - 1, n); + + process_lines (context, buf, size, +- context->stderr, &context->stderr_size, TRUE); ++ context->stderrb, &context->stderr_size, TRUE); + } + + /* +@@ -1221,7 +1222,7 @@ process_output (ChildContext * context) + + if (size > 0 && size < GTK_MPLAYER_BUF_SIZE) + { +- memcpy (buf, context->stdout, size); ++ memcpy (buf, context->stdoutb, size); + next = buf + size; + } + else +@@ -1240,7 +1241,7 @@ process_output (ChildContext * context) + pos = context->player->pos; + + process_lines (context, buf, size, +- context->stdout, &context->stdout_size, FALSE); ++ context->stdoutb, &context->stdout_size, FALSE); + + if (fabs (context->player->pos - pos) > 0.1) + gtk_signal_emit (GTK_OBJECT (context->player), diff --git a/graphics/pornview/patches/patch-ae b/graphics/pornview/patches/patch-ae new file mode 100644 index 00000000000..38a8cb43797 --- /dev/null +++ b/graphics/pornview/patches/patch-ae @@ -0,0 +1,12 @@ +$NetBSD: patch-ae,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/widgets/gtkxine.h.orig 2002-12-29 20:29:13.000000000 +0000 ++++ src/support/widgets/gtkxine.h +@@ -20,6 +20,7 @@ + + #ifdef ENABLE_XINE + ++#include + #include + #include + #include -- cgit v1.2.3