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

8
sysutils/xnc/DESCR Normal file
View File

@@ -0,0 +1,8 @@
X Northern Captain is a X Window file manager that allows to create, copy,
move, rename, delete, view and edit files in a Virtual File System (VFS).
VFS consists from a normal disk space and a Archive File System (AFS).
All file operations in AFS can be done exactly as in normal file system.
The IVES - file viewer and editor for X Window included, provides a
comprehensive way to view and edit images in many different formats: GIF,
JPEG, PCX, BMP, XBM, XPM, TIFF, TGA, PCD, PNG.

7
sysutils/xnc/MESSAGE Normal file
View File

@@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2002/09/24 12:30:38 wiz Exp $
Each user who wants to use xnc should first execute xncsetup
from X11 to configure his/her own profile.
===========================================================================

32
sysutils/xnc/Makefile Normal file
View File

@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.40 2013/02/16 11:24:37 wiz Exp $
DISTNAME= xnc-5.0.4.src
PKGNAME= xnc-5.0.4
PKGREVISION= 12
CATEGORIES= sysutils x11
MASTER_SITES= http://www.xnc.dubna.su/src-5/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xnc.dubna.su/
COMMENT= File manager for X Window
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

49
sysutils/xnc/PLIST Normal file
View File

@@ -0,0 +1,49 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:16:23 joerg Exp $
bin/bzip.xnc
bin/groups.xnc
bin/gzip.xnc
bin/ives
bin/iedit
bin/iview
bin/rpm.xnc
bin/users.xnc
bin/view.xnc
bin/xjpegroot
bin/xnc
bin/xnc-en
bin/xncsetup-en
bin/xncloader
bin/xncsetup
bin/xnlaunch
bin/zips.xnc
lib/xnc/libxncaqua.so
lib/xnc/libxncfive.so
man/man1/iedit.1
man/man1/ives.1
man/man1/iview.1
man/man1/xjpegroot.1
man/man1/xnc.1
man/man1/xnlaunch.1
share/doc/xnc-5.0.4/doc1.html
share/doc/xnc-5.0.4/doc2.html
share/doc/xnc-5.0.4/doc3.html
share/doc/xnc-5.0.4/doc4.html
share/doc/xnc-5.0.4/doc5.html
share/doc/xnc-5.0.4/doc6.html
share/doc/xnc-5.0.4/doc7.html
share/doc/xnc-5.0.4/doc8.html
share/doc/xnc-5.0.4/index.html
share/locale/cs/LC_MESSAGES/xnc.mo
share/locale/es/LC_MESSAGES/xnc.mo
share/locale/fr/LC_MESSAGES/xnc.mo
share/locale/hu/LC_MESSAGES/xnc.mo
share/locale/it/LC_MESSAGES/xnc.mo
share/locale/nl/LC_MESSAGES/xnc.mo
share/locale/pl/LC_MESSAGES/xnc.mo
share/locale/pt/LC_MESSAGES/xnc.mo
share/locale/ro/LC_MESSAGES/xnc.mo
share/locale/ru/LC_MESSAGES/xnc.mo
share/locale/sp/LC_MESSAGES/xnc.mo
share/locale/sr/LC_MESSAGES/xnc.mo
share/pixmaps/xnc.xpm
share/pixmaps/xnc.png

10
sysutils/xnc/distinfo Normal file
View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.8 2011/04/05 11:56:30 wiz Exp $
SHA1 (xnc-5.0.4.src.tar.gz) = 4673ba128f4df88342bfd4968a2427e894f6f3cb
RMD160 (xnc-5.0.4.src.tar.gz) = 46366a75eca41f10f68ae7d4ad95b76ed4d576e2
Size (xnc-5.0.4.src.tar.gz) = 2130633 bytes
SHA1 (patch-aa) = 2da27a17e9b5c114b9ff930c38f8ec04b7221abc
SHA1 (patch-ab) = 2ec2bbbc1eb542527c5e45756a10e91337b7719d
SHA1 (patch-ak) = 8174f9791016fbaa179efbefa4971423677f7652
SHA1 (patch-am) = 5522a4a41bf5e0512f38017c28300cc9529c9c23
SHA1 (patch-src_lib_image2_sdl__image_IMG__png.c) = 63b12a13d81a608c141f9383a4f745d14beaed1e

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.2 2004/02/22 22:29:22 jschauma Exp $
--- src/lib/filedir/makefile.in.orig 2002-09-19 10:36:35.000000000 -0400
+++ src/lib/filedir/makefile.in 2004-02-22 16:28:11.000000000 -0500
@@ -33,7 +33,7 @@
PROGRAM = $(MYLIBDIR)/libxncfiledir.a
VERSION = 3.20.1
-MAGIC = /usr/share/magic
+MAGIC = /usr/share/misc/magic
CINCLUDES=-DMAGIC='"$(MAGIC)"' -DMAGIC_FOR_XNC $(DEFS) $(DEB) $(STRIPPING)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.4 2006/06/08 15:20:20 joerg Exp $
--- src/lib/filedir/file.h.orig 2006-06-08 14:58:59.000000000 +0000
+++ src/lib/filedir/file.h
@@ -106,8 +106,6 @@ extern unsigned long signextend _
-extern int errno; /* Some unixes don't define this.. */
-
extern char *progname; /* the program name */
extern char *magicfile; /* name of the magic file */
extern int lineno; /* current line number in magic file */

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ak,v 1.2 2004/02/22 22:29:22 jschauma Exp $
--- Make.common.in.orig 2002-12-30 06:25:55.000000000 -0500
+++ Make.common.in 2004-02-22 16:43:56.000000000 -0500
@@ -38,6 +38,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL@ -m 755
INSTALL_DATA = @INSTALL@ -m 644
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DIR=@INSTALL@ -d -m 755
MKINSTALLDIRS=$(srcdir)/mkinstalldirs

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-am,v 1.1 2004/02/22 22:29:22 jschauma Exp $
--- Makefile.in.orig 2004-02-22 17:15:26.000000000 -0500
+++ Makefile.in 2004-02-22 17:16:07.000000000 -0500
@@ -74,9 +74,6 @@
$(INSTALL_DATA) ./desktop/xnc.xpm $(DESTDIR)$(INSTICONDIR)
$(INSTALL_DATA) ./desktop/xnc.png $(DESTDIR)$(INSTICONDIR)
$(INSTALL_DATA) ./desktop/xnc.xpm $(DESTDIR)$(INSTICONDIR)
- $(INSTALL_DATA) ./desktop/xnc.desktop $(DESTDIR)$(INSTDESKDIR1)
- $(INSTALL_DATA) ./desktop/X_Northern_Captain.desktop $(DESTDIR)$(INSTDESKDIR2)
- $(INSTALL_DATA) ./desktop/xnc-gnome2.desktop $(DESTDIR)$(INSTDESKDIR3)
make install-$(PO_MAKE_DIR)
@echo "Don't foget run 'xncsetup' before starting XNC"
@echo "And add $(DESTDIR)$(INSTDIR) into your PATH environment variable"

View File

@@ -0,0 +1,66 @@
$NetBSD: patch-src_lib_image2_sdl__image_IMG__png.c,v 1.1 2011/04/05 11:56:30 wiz Exp $
Fix build with png-1.5.
--- src/lib/image2/sdl_image/IMG_png.c.orig 2002-08-05 10:43:09.000000000 +0000
+++ src/lib/image2/sdl_image/IMG_png.c
@@ -138,7 +138,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *s
* the normal method of doing things with libpng). REQUIRED unless you
* set up your own error handlers in png_create_read_struct() earlier.
*/
- if ( setjmp(png_ptr->jmpbuf) ) {
+ if ( setjmp(png_jmpbuf(png_ptr)) ) {
IMG_SetError("Error reading the PNG file.");
goto done;
}
@@ -207,9 +207,9 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *s
Rmask = 0x000000FF;
Gmask = 0x0000FF00;
Bmask = 0x00FF0000;
- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0;
+ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0;
} else {
- int s = (info_ptr->channels == 4) ? 0 : 8;
+ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8;
Rmask = 0xFF000000 >> s;
Gmask = 0x00FF0000 >> s;
Bmask = 0x0000FF00 >> s;
@@ -217,7 +217,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *s
}
}
surface = SDL_AllocSurface(SDL_SWSURFACE, width, height,
- bit_depth*info_ptr->channels, Rmask,Gmask,Bmask,Amask);
+ bit_depth*png_get_channels(png_ptr, info_ptr), Rmask,Gmask,Bmask,Amask);
if ( surface == NULL ) {
IMG_SetError("Out of memory");
goto done;
@@ -255,6 +255,10 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *s
/* Load the palette, if any */
palette = surface->format->palette;
if ( palette ) {
+ png_colorp pngpalette;
+ int pngnum_palette;
+
+ png_get_PLTE(png_ptr, info_ptr, &pngpalette, &pngnum_palette);
if(color_type == PNG_COLOR_TYPE_GRAY) {
palette->ncolors = 256;
for(i = 0; i < 256; i++) {
@@ -262,12 +266,12 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *s
palette->colors[i].g = i;
palette->colors[i].b = i;
}
- } else if (info_ptr->num_palette > 0 ) {
- palette->ncolors = info_ptr->num_palette;
- for( i=0; i<info_ptr->num_palette; ++i ) {
- palette->colors[i].b = info_ptr->palette[i].blue;
- palette->colors[i].g = info_ptr->palette[i].green;
- palette->colors[i].r = info_ptr->palette[i].red;
+ } else if (pngnum_palette > 0 ) {
+ palette->ncolors = pngnum_palette;
+ for( i=0; i<pngnum_palette; ++i ) {
+ palette->colors[i].b = pngpalette[i].blue;
+ palette->colors[i].g = pngpalette[i].green;
+ palette->colors[i].r = pngpalette[i].red;
}
}
}