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
+2
View File
@@ -0,0 +1,2 @@
XMill is a special-purpose compressor for XML data that typically achieves
twice the compression rate over existing compressors, such as gzip.
+48
View File
@@ -0,0 +1,48 @@
# $NetBSD: Makefile,v 1.27 2012/09/11 19:47:03 asau Exp $
DISTNAME= xmill-0.9.1
PKGREVISION= 3
CATEGORIES= archivers
MASTER_SITES= http://www.cs.washington.edu/homes/suciu/XMILL/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ${MASTER_SITES}
COMMENT= Specialized compressor for XML
LICENSE= xmill-license
RESTRICTED= Redistribution not permitted
# It is not entirely clear that noncommercial redistribution is
# permitted, but it's too hard to read the license, so it's marked as
# non-redistributable to err on the side of caution.
NO_SRC_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= gmake
MAKE_FILE= makefile
USE_LANGUAGES= c c++
INSTALLATION_DIRS= bin
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/xmill
${INSTALL_DATA} ${WRKSRC}/documentation/COPYRIGHT.txt \
${WRKSRC}/documentation/LICENSE.txt \
${WRKSRC}/documentation/MANUAL.txt \
${WRKSRC}/documentation/README.txt \
${WRKSRC}/documentation/xmill.ps.gz \
${WRKSRC}/documentation/xmill-09-doc.txt \
${DESTDIR}${PREFIX}/share/doc/xmill
${INSTALL_PROGRAM} ${WRKSRC}/unix/xcmill \
${WRKSRC}/unix/xdemill \
${WRKSRC}/unix/xmillexample \
${WRKSRC}/unix/xmillinspect \
${WRKSRC}/unix/xmilltest \
${DESTDIR}${PREFIX}/bin
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+12
View File
@@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:28:18 joerg Exp $
bin/xcmill
bin/xdemill
bin/xmillexample
bin/xmillinspect
bin/xmilltest
share/doc/xmill/COPYRIGHT.txt
share/doc/xmill/LICENSE.txt
share/doc/xmill/MANUAL.txt
share/doc/xmill/README.txt
share/doc/xmill/xmill-09-doc.txt
share/doc/xmill/xmill.ps.gz
+10
View File
@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.8 2012/12/20 12:39:08 ryoon Exp $
SHA1 (xmill-0.9.1.tar.gz) = 491e44ea9a66293af6837db4dc54ed63065c0d67
RMD160 (xmill-0.9.1.tar.gz) = 7ca0e60b16e609997010a94f2bffd3a5c2ab60ff
Size (xmill-0.9.1.tar.gz) = 1021363 bytes
SHA1 (patch-XMill_BaseXNumCompressor.cpp) = 25f7a973c241f5aa7061cdae2dd865bc0cd428d7
SHA1 (patch-aa) = b4f10f11906bdcc927214823f93ef597c0d4b750
SHA1 (patch-ab) = 1d615fa8446139215d7f53cb2d2c91915786aa9f
SHA1 (patch-ac) = f105a84458fdb2527341d05ce612b73450077894
SHA1 (patch-ad) = 0001395677ed27329de2c3b63e55618529a4efc1
@@ -0,0 +1,24 @@
$NetBSD: patch-XMill_BaseXNumCompressor.cpp,v 1.1 2012/12/20 12:39:08 ryoon Exp $
* Fix build on SmartOS
--- XMill/BaseXNumCompressor.cpp.orig 2003-01-04 23:09:36.000000000 +0000
+++ XMill/BaseXNumCompressor.cpp
@@ -76,7 +76,7 @@ void BaseXNumCompressor::Init(
maxdigits = 4;
} else {
/* a hack to get 1<<32 without overflow.. */
- maxdigits = log(65536.0*65536.0) / log(base);
+ maxdigits = log(65536.0*65536.0) / log((float) base);
}
}
@@ -258,7 +258,7 @@ void BaseXNumUncompressor::Init(
maxdigits = 4;
} else {
/* a hack to get 1<<32 without overflow.. */
- maxdigits = log(65536.0*65536.0) / log(base);
+ maxdigits = log(65536.0*65536.0) / log((float) base);
startdiv = 1;
for (int i=1; i<maxdigits; i++)
startdiv *= base;
+29
View File
@@ -0,0 +1,29 @@
$NetBSD: patch-aa,v 1.3 2004/06/15 04:11:15 minskim Exp $
--- makefile.orig 2004-03-15 18:17:57.000000000 -0600
+++ makefile
@@ -43,11 +43,11 @@ INSPECTSRC = ./xmillinspect
PPMZIPSRC = ./ppmzip
PPMSRC = ./ppmdi
-CPP = g++
-CC = gcc
-LINK = g++
+CPP = ${CXX}
+#CC = gcc
+LINK = ${CXX}
-CFLAGS = -c
+CFLAGS += -c
# To use MSXML. Does not work with GCC on Windows (mingw)
#CFLAGS = -c -DHAVE_MSXML
@@ -84,7 +84,7 @@ CPPFLAGS_XDEMILL = $(CFLAGS) ${CPPFLAGS_
CPPFLAGS_XMILLTEST = $(CFLAGS) -IXMill
CPPFLAGS_PPMZIP = $(CFLAGS) -Ippmdi
-LDLIBS=${ZLIB_LDFLAGS} ${BZLIB_LDFLAGS}
+LDLIBS=${LDFLAGS} ${ZLIB_LDFLAGS} ${BZLIB_LDFLAGS}
# LINK_FLAGS = -L.
XMILLLIB_MISC = \
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ab,v 1.3 2005/10/03 11:31:57 joerg Exp $
--- XMill/File.cpp.orig 2005-07-22 15:15:14.000000000 +0000
+++ XMill/File.cpp
@@ -32,9 +32,6 @@ History:
#include "stdafx.h"
-/* external imports */
-extern int errno;
-
/* class CFile implementation */
CFile::CFile()
{
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.3 2008/05/24 23:00:18 tnn Exp $
--- XMill/CompressMan.cpp.orig 2003-01-05 00:40:42.000000000 +0100
+++ XMill/CompressMan.cpp
@@ -423,7 +423,7 @@ void BothCompressMan::DebugPrint()
UserCompressorFactory *compressor=compressorlist;
while(compressor!=NULL)
{
- printf("%lu =>",(unsigned int)compressor);
+ printf("%lu =>",(unsigned long)compressor);
printf("%s\n",compressor->GetName());
compressor=compressor->next;
}
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.4 2008/05/24 23:00:18 tnn Exp $
--- XMill/PPMDI.cpp.orig 2003-03-20 03:12:58.000000000 +0100
+++ XMill/PPMDI.cpp
@@ -245,7 +245,7 @@ int PPMDI::uncompress(unsigned char *dst
cleanup:
*outused = j;
- *inused = inlen - (int)endptr + (int)src;
+ *inused = inlen - (int)(src - endptr);
return ret;
}