summaryrefslogtreecommitdiffstats
path: root/graphics/pornview
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-07-30 05:45:04 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-07-30 05:45:04 +0800
commit90ae460e90234ab656ca8c83b788aa6d3bfba9ec (patch)
treef5d48a5c5b279922383c8496e5cde0f9736d9000 /graphics/pornview
parent7ebb2ad33127efd5f766d34b1b8ac9e27671f076 (diff)
downloadmarcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar.gz
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar.bz2
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar.lz
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar.xz
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.tar.zst
marcuscom-ports-90ae460e90234ab656ca8c83b788aa6d3bfba9ec.zip
share/gnome/ -> share/. Umm... Cool name...
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9260 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/pornview')
-rw-r--r--graphics/pornview/Makefile47
-rw-r--r--graphics/pornview/distinfo3
-rw-r--r--graphics/pornview/files/patch-debian53
-rw-r--r--graphics/pornview/files/patch-src::support::widgets::gtkmplayer.c74
-rw-r--r--graphics/pornview/files/patch-src::support::widgets::gtkxine.h10
-rw-r--r--graphics/pornview/pkg-descr10
-rw-r--r--graphics/pornview/pkg-plist8
7 files changed, 205 insertions, 0 deletions
diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile
new file mode 100644
index 000000000..67e01cf6e
--- /dev/null
+++ b/graphics/pornview/Makefile
@@ -0,0 +1,47 @@
+# New ports collection Makefile for: pornview
+# Date created: 24 Nov 2002
+# Whom: Tilman Linneweh <arved@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pornview
+PORTVERSION= 0.2.0.p.1
+PORTREVISION= 13
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p./pre/}
+
+MAINTAINER= dinoex@FreeBSD.org
+COMMENT= PornView is an image viewer/manager
+
+LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif
+
+USE_XLIB= yes
+USE_GNOME= gdkpixbuf gnomehack gnomeprefix
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if defined(WITH_LIBXINE)
+LIB_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine
+CONFIGURE_ARGS+= --enable-xine
+.elif defined(WITH_MPLAYER)
+RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
+CONFIGURE_ARGS+= --enable-mplayer
+.endif
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= WITH_NLS="@comment "
+.else
+PLIST_SUB+= WITH_NLS=""
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \
+ s|\\[$$][{]top_builddir[}]/intl/libintl.a|-lintl|g' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/graphics/pornview/distinfo b/graphics/pornview/distinfo
new file mode 100644
index 000000000..83629cbb5
--- /dev/null
+++ b/graphics/pornview/distinfo
@@ -0,0 +1,3 @@
+MD5 (pornview-0.2.0pre1.tar.gz) = 339fde6d7ff0cc1053abe951601373e6
+SHA256 (pornview-0.2.0pre1.tar.gz) = 66502f936f743489dcff14e429a80e4670a60221187c34f58f87530229874fb9
+SIZE (pornview-0.2.0pre1.tar.gz) = 608864
diff --git a/graphics/pornview/files/patch-debian b/graphics/pornview/files/patch-debian
new file mode 100644
index 000000000..ee888b989
--- /dev/null
+++ b/graphics/pornview/files/patch-debian
@@ -0,0 +1,53 @@
+--- pornview-0.2pre1.orig/src/support/image_loader.c
++++ src/support/image_loader.c
+@@ -81,7 +81,7 @@
+ image_loader_stop (ImageLoader * il)
+ {
+ #ifdef USE_GTK2
+- GError *err;
++ GError *err = NULL;
+ #endif
+
+ if (!il)
+@@ -174,7 +174,7 @@
+ gint c;
+
+ #ifdef USE_GTK2
+- GError *err;
++ GError *err = NULL;
+ #endif
+
+ if (!il)
+@@ -241,7 +241,7 @@
+ int b;
+
+ #ifdef USE_GTK2
+- GError *err;
++ GError *err = NULL;
+ #endif
+
+ if (!il->loader || il->pixbuf)
+--- pornview-0.2pre1.orig/src/support/widgets/gtkxine.c
++++ src/support/widgets/gtkxine.c
+@@ -632,7 +632,7 @@
+ */
+ 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);
+
+ /*
+--- pornview-0.2pre1.orig/src/support/widgets/zlist.c
++++ src/support/widgets/zlist.c
+@@ -634,7 +634,8 @@
+ 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/files/patch-src::support::widgets::gtkmplayer.c b/graphics/pornview/files/patch-src::support::widgets::gtkmplayer.c
new file mode 100644
index 000000000..ddba125a5
--- /dev/null
+++ b/graphics/pornview/files/patch-src::support::widgets::gtkmplayer.c
@@ -0,0 +1,74 @@
+--- src/support/widgets/gtkmplayer.c.orig Fri Dec 13 12:15:21 2002
++++ src/support/widgets/gtkmplayer.c Sat May 17 15:04:45 2003
+@@ -30,6 +30,7 @@
+ #include <errno.h>
+ #include <ctype.h>
+ #include <math.h>
++#include <signal.h>
+
+ #include <gtk/gtk.h>
+ #include <gdk/gdkx.h>
+@@ -72,9 +73,9 @@
+ 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 @@
+ 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 @@
+
+ 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 @@
+ 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 @@
+
+ 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 @@
+ 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/files/patch-src::support::widgets::gtkxine.h b/graphics/pornview/files/patch-src::support::widgets::gtkxine.h
new file mode 100644
index 000000000..f0ef13001
--- /dev/null
+++ b/graphics/pornview/files/patch-src::support::widgets::gtkxine.h
@@ -0,0 +1,10 @@
+--- src/support/widgets/gtkxine.h.orig Sat Nov 23 22:56:41 2002
++++ src/support/widgets/gtkxine.h Sat Dec 7 15:09:28 2002
+@@ -12,6 +12,7 @@
+
+ #ifdef ENABLE_XINE
+
++#include <pthread.h>
+ #include <X11/X.h>
+ #include <X11/Xlib.h>
+ #include <X11/extensions/XShm.h>
diff --git a/graphics/pornview/pkg-descr b/graphics/pornview/pkg-descr
new file mode 100644
index 000000000..c46fe3629
--- /dev/null
+++ b/graphics/pornview/pkg-descr
@@ -0,0 +1,10 @@
+PornView is an image viewer/manager
+
+Features:
+- Thumbnail list display.
+- Thumbnails can be cached to disk for faster subsequent loads.
+- Zoom in, out, and fit to window.
+- Slideshow.
+- Full screen viewing.
+
+WWW: http://pornview.sourceforge.net
diff --git a/graphics/pornview/pkg-plist b/graphics/pornview/pkg-plist
new file mode 100644
index 000000000..6a1a09a9d
--- /dev/null
+++ b/graphics/pornview/pkg-plist
@@ -0,0 +1,8 @@
+bin/pornview
+share/apps/Graphics/pornview.desktop
+share/pixmaps/pornview.png
+%%WITH_NLS%%share/locale/fr/LC_MESSAGES/pornview.mo
+%%WITH_NLS%%share/locale/pl/LC_MESSAGES/pornview.mo
+share/pornview/scripts/helloworld
+@dirrm share/pornview/scripts
+@dirrm share/pornview