summaryrefslogtreecommitdiff
path: root/devel/chmlib
diff options
context:
space:
mode:
authorwiz <wiz>2004-01-06 15:34:01 +0000
committerwiz <wiz>2004-01-06 15:34:01 +0000
commitae83fe6f3ccbbfa70a7033c9af9ddcf87b34473c (patch)
tree8ccfdfb9fe254ef779a2e11792a32f6776af9d3d /devel/chmlib
parent6b4678f36402ec16430e20a1c1d1a71a48099566 (diff)
downloadpkgsrc-ae83fe6f3ccbbfa70a7033c9af9ddcf87b34473c.tar.gz
Initial import of chmlib, a library dealing with .chm files,
from pkgsrc-wip (by xtraeme@). CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. Right now, it is a very simple library, but sufficient for dealing with all of the .chm files I've come across. Due to the fairly well-designed indexing built into this particular file format, even a small library is able to gain reasonably good performance indexing into ITSS archives. Since the last version there have been major bugfixes, portability improvements, and minor feature additions.
Diffstat (limited to 'devel/chmlib')
-rw-r--r--devel/chmlib/DESCR8
-rw-r--r--devel/chmlib/Makefile20
-rw-r--r--devel/chmlib/PLIST7
-rw-r--r--devel/chmlib/buildlink2.mk24
-rw-r--r--devel/chmlib/distinfo5
-rw-r--r--devel/chmlib/patches/patch-aa20
6 files changed, 84 insertions, 0 deletions
diff --git a/devel/chmlib/DESCR b/devel/chmlib/DESCR
new file mode 100644
index 00000000000..defa769dd62
--- /dev/null
+++ b/devel/chmlib/DESCR
@@ -0,0 +1,8 @@
+CHMLIB is a library for dealing with Microsoft ITSS/CHM format
+files. Right now, it is a very simple library, but sufficient for
+dealing with all of the .chm files I've come across. Due to the
+fairly well-designed indexing built into this particular file
+format, even a small library is able to gain reasonably good
+performance indexing into ITSS archives. Since the last version
+there have been major bugfixes, portability improvements, and minor
+feature additions.
diff --git a/devel/chmlib/Makefile b/devel/chmlib/Makefile
new file mode 100644
index 00000000000..ffde0d685c6
--- /dev/null
+++ b/devel/chmlib/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/06 15:34:01 wiz Exp $
+#
+
+DISTNAME= chmlib-0.31
+CATEGORIES= devel
+MASTER_SITES= http://66.93.236.84/%7Ejedwin/projects/chmlib/
+EXTRACT_SUFX= .tbz
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://66.93.236.84/%7Ejedwin/projects/chmlib/
+COMMENT= Library for dealing with Microsoft ITSS/CHM format files
+
+USE_BUILDLINK2= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+
+PTHREAD_OPTS= require
+
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/chmlib/PLIST b/devel/chmlib/PLIST
new file mode 100644
index 00000000000..7d2568ece71
--- /dev/null
+++ b/devel/chmlib/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/06 15:34:01 wiz Exp $
+include/chm_lib.h
+lib/libchm.a
+lib/libchm.la
+lib/libchm.so
+lib/libchm.so.0
+lib/libchm.so.0.0
diff --git a/devel/chmlib/buildlink2.mk b/devel/chmlib/buildlink2.mk
new file mode 100644
index 00000000000..2e078d4d38a
--- /dev/null
+++ b/devel/chmlib/buildlink2.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2004/01/06 15:34:02 wiz Exp $
+#
+# This Makefile fragment is included by packages that use chmlib.
+#
+# This file was created automatically using createbuildlink 2.6.
+#
+
+.if !defined(CHMLIB_BUILDLINK2_MK)
+CHMLIB_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= chmlib
+BUILDLINK_DEPENDS.chmlib?= chmlib>=0.31
+BUILDLINK_PKGSRCDIR.chmlib?= ../../devel/chmlib
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.chmlib=chmlib
+BUILDLINK_PREFIX.chmlib_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.chmlib+= include/chm_lib.h
+BUILDLINK_FILES.chmlib+= lib/libchm.*
+
+BUILDLINK_TARGETS+= chmlib-buildlink
+
+chmlib-buildlink: _BUILDLINK_USE
+
+.endif # CHMLIB_BUILDLINK2_MK
diff --git a/devel/chmlib/distinfo b/devel/chmlib/distinfo
new file mode 100644
index 00000000000..55156c06334
--- /dev/null
+++ b/devel/chmlib/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/06 15:34:01 wiz Exp $
+
+SHA1 (chmlib-0.31.tbz) = 4d6be22cb408695c7e8ef6933b46e5cd46d13048
+Size (chmlib-0.31.tbz) = 40810 bytes
+SHA1 (patch-aa) = fd9195cb5fc879e7c295746dde5c81a0abc6e187
diff --git a/devel/chmlib/patches/patch-aa b/devel/chmlib/patches/patch-aa
new file mode 100644
index 00000000000..5c9bf88a7fb
--- /dev/null
+++ b/devel/chmlib/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/06 15:34:02 wiz Exp $
+
+--- Makefile.orig Wed Oct 9 23:25:54 2002
++++ Makefile
+@@ -7,11 +7,10 @@
+ # Note: LDFLAGS must contain -lpthread if you are using -DCHM_MT.
+ #
+ #CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64
+-CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -g -DDMALLOC_DISABLE
+-LDFLAGS=-lpthread
+-INSTALLPREFIX=/usr/local/
+-CC=gcc-3.2
+-LD=gcc-3.2
++CFLAGS+=-DCHM_MT -DDMALLOC_DISABLE
++LDFLAGS+=-lpthread
++INSTALLPREFIX=${PREFIX}
++LD=${CC}
+ LIBTOOL=libtool
+ CP=/bin/cp
+ EXAMPLES=test_chmLib enum_chmLib enumdir_chmLib chm_http extract_chmLib