Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
graphics/gtksee/DESCR Normal file
View File

@@ -0,0 +1,3 @@
GTKsee is an image viewer/browser. The browser shows thumbnails, you
can quickly watch a picture in large or fullscreen by simply tapping
on return. Also has slideshow capabilities.

30
graphics/gtksee/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.28 2013/02/16 11:22:06 wiz Exp $
#
DISTNAME= gtksee-0.5.6
PKGREVISION= 11
CATEGORIES= graphics x11
MASTER_SITES= http://download.berlios.de/gtksee/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://developer.berlios.de/projects/gtksee/
COMMENT= Gtk-based image viewing and cataloging program
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
USE_TOOLS+= gmake msgfmt
USE_PKGLOCALEDIR= YES
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 share/doc/gtksee
post-install:
${INSTALL_MAN} ${WRKSRC}/man/gtksee.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtksee.1
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/gtksee
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/gtksee
${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/gtksee
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

13
graphics/gtksee/PLIST Normal file
View File

@@ -0,0 +1,13 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:59:17 joerg Exp $
bin/gtksee
man/man1/gtksee.1
share/doc/gtksee/COPYING
share/doc/gtksee/README
share/doc/gtksee/TODO
share/locale/de/LC_MESSAGES/gtksee.mo
share/locale/es/LC_MESSAGES/gtksee.mo
share/locale/fr/LC_MESSAGES/gtksee.mo
share/locale/pl/LC_MESSAGES/gtksee.mo
share/locale/ru/LC_MESSAGES/gtksee.mo
share/locale/ru_UA/LC_MESSAGES/gtksee.mo
share/locale/zh_CN.EUC/LC_MESSAGES/gtksee.mo

9
graphics/gtksee/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.6 2011/02/14 19:16:14 wiz Exp $
SHA1 (gtksee-0.5.6.tar.gz) = 7e1050d26b8fea0403e2e9124956478828e58e0f
RMD160 (gtksee-0.5.6.tar.gz) = 0df689de66212445bfdcdfaa9dbb65792e1c3efd
Size (gtksee-0.5.6.tar.gz) = 322313 bytes
SHA1 (patch-aa) = 0fd5b2367f5ee00d2a8a6b3d9c02725e5761f564
SHA1 (patch-src_detect.c) = 0850e6f5ac15a697aa9e584331d94411626b1e62
SHA1 (patch-src_im__png.c) = 9cae1ec6915332ef5cd4d8f64357099121717322
SHA1 (patch-src_im__png.h) = 0618416592f01e28a91597b02597ebf610868b20

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-aa,v 1.3 2010/02/03 23:03:26 joerg Exp $
--- po/Makefile.in.in.orig 2010-02-03 23:01:02.000000000 +0000
+++ po/Makefile.in.in
@@ -111,16 +111,16 @@ install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r "$(MKINSTALLDIRS)"; then \
- $(MKINSTALLDIRS) $(datadir); \
+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
else \
- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
+ $(SHELL) $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
- *.gmo) destdir=$(gnulocaledir);; \
- *) destdir=$(localedir);; \
+ *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \
+ *) destdir=${DESTDIR}$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-src_detect.c,v 1.2 2011/02/14 19:16:14 wiz Exp $
Fix build with png-1.5.
http://developer.berlios.de/patch/?func=detailpatch&patch_id=3131&group_id=735
--- src/detect.c.orig 2004-02-14 15:16:33.000000000 +0000
+++ src/detect.c
@@ -119,14 +119,16 @@ static gboolean
detect_png(guchar *filename, ImageInfo *info)
{
#ifdef HAVE_LIBPNG
- png_info pnginfo;
+ gint width;
+ gint height;
+ png_byte color_type;
- if (png_get_header(filename, &pnginfo))
+ if (png_get_header(filename, &width, &height, &color_type))
{
info->type = PNG;
- info->width = pnginfo.width;
- info->height = pnginfo.height;
- switch (pnginfo.color_type)
+ info->width = width;
+ info->height = height;
+ switch (color_type)
{
case PNG_COLOR_TYPE_RGB :
info->ncolors = 24;

View File

@@ -0,0 +1,103 @@
$NetBSD: patch-src_im__png.c,v 1.2 2011/02/14 19:16:14 wiz Exp $
Fix build with png-1.5.
http://developer.berlios.de/patch/?func=detailpatch&patch_id=3131&group_id=735
--- src/im_png.c.orig 2004-02-14 15:16:33.000000000 +0000
+++ src/im_png.c
@@ -55,7 +55,7 @@ my_error_exit(png_struct *pp, guchar *w)
*/
gboolean
-png_get_header(gchar *filename, png_info *info)
+png_get_header(gchar *filename, gint *width, gint *height, png_bytep color_type)
{
png_struct *pp;
png_info *linfo;
@@ -99,10 +99,9 @@ png_get_header(gchar *filename, png_info
png_init_io(pp, fp);
png_read_info(pp, linfo);
- info->width = linfo->width;
- info->height = linfo->height;
- info->valid = linfo->valid;
- info->color_type = linfo->color_type;
+ *width = png_get_image_width(pp, linfo);
+ *height = png_get_image_height(pp, linfo);
+ *color_type = png_get_color_type(pp, linfo);
g_free(linfo);
g_free(pp);
@@ -161,26 +160,30 @@ png_load(gchar *filename, PngLoadFunc fu
png_init_io(pp, fp);
png_read_info(pp, info);
- if (info->bit_depth < 8)
+ if (png_get_bit_depth(pp, info) < 8)
{
png_set_packing(pp);
png_set_expand(pp);
- if (info->valid & PNG_INFO_sBIT)
- png_set_shift(pp, &(info->sig_bit));
+ if (png_get_valid(pp, info, PNG_INFO_sBIT)) {
+ png_color_8p sig_bit;
+ png_get_sBIT(pp, info, &sig_bit);
+
+ png_set_shift(pp, sig_bit);
+ }
} else
- if (info->bit_depth == 16)
+ if (png_get_bit_depth(pp, info) == 16)
png_set_strip_16(pp);
/*
* Turn on interlace handling...
*/
- if (info->interlace_type)
+ if (png_get_interlace_type(pp, info))
num_passes = png_set_interlace_handling(pp);
else
num_passes = 1;
- switch (info->color_type)
+ switch (png_get_color_type(pp, info))
{
case PNG_COLOR_TYPE_RGB : /* RGB */
bpp = 3;
@@ -195,22 +198,30 @@ png_load(gchar *filename, PngLoadFunc fu
bpp = 2;
break;
case PNG_COLOR_TYPE_PALETTE : /* Indexed */
- bpp = info->num_trans ? 4:3;
+ {
+ png_bytep trans_alpha;
+ int num_trans;
+ png_color_16p trans_color;
+
+ png_get_tRNS(pp, info, &trans_alpha, &num_trans, &trans_color);
+
+ bpp = num_trans ? 4:3;
+ }
break;
};
- pixel = g_malloc(sizeof(guchar) * info->width * bpp);
+ pixel = g_malloc(sizeof(guchar) * png_get_image_width(pp, info) * bpp);
for (pass = 0; pass < num_passes; pass++)
{
- for (scanline = 0; scanline < info->height; scanline++)
+ for (scanline = 0; scanline < png_get_image_height(pp, info); scanline++)
{
- if (info->color_type == PNG_COLOR_TYPE_PALETTE)
+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE)
png_set_expand(pp);
png_read_row(pp, pixel, NULL);
- if ((*func) (pixel, info->width, 0, scanline, bpp, -1, 0)) goto png_read_cancelled;
+ if ((*func) (pixel, png_get_image_width(pp, info), 0, scanline, bpp, -1, 0)) goto png_read_cancelled;
};
};

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-src_im__png.h,v 1.2 2011/02/14 19:16:14 wiz Exp $
Fix build with png-1.5.
http://developer.berlios.de/patch/?func=detailpatch&patch_id=3131&group_id=735
--- src/im_png.h.orig 2004-02-14 15:16:33.000000000 +0000
+++ src/im_png.h
@@ -31,7 +31,7 @@
typedef gboolean (*PngLoadFunc) (guchar *buffer, gint width, gint left, gint scanline, gint components, gint pass, gint mode);
-gboolean png_get_header (gchar *filename, png_info *info);
+gboolean png_get_header (gchar *filename, gint *, gint *, png_bytep);
gboolean png_load (gchar *filename, PngLoadFunc func);
#endif /* HAVE_LIBPNG */