[Midnightbsd-cvs] mports: misc/chmlib: Added chmlib-0.39

ctriv at midnightbsd.org ctriv at midnightbsd.org
Fri Jan 2 21:23:14 EST 2009


Log Message:
-----------
Added chmlib-0.39

Added Files:
-----------
    mports/misc/chmlib:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/misc/chmlib/files:
        patch-chm_lib.c (r1.1)
        patch-chm_lib.h (r1.1)
        patch-ltmain.sh (r1.1)

-------------- next part --------------
--- /dev/null
+++ misc/chmlib/pkg-descr
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://morte.jedrea.com/~jedwin/projects/chmlib/
--- /dev/null
+++ misc/chmlib/pkg-plist
@@ -0,0 +1,9 @@
+bin/chm_http
+bin/enum_chmLib
+bin/enumdir_chmLib
+bin/extract_chmLib
+bin/test_chmLib
+include/chm_lib.h
+include/lzx.h
+lib/libchm.so
+lib/libchm.so.0
--- /dev/null
+++ misc/chmlib/Makefile
@@ -0,0 +1,24 @@
+# ex:ts=8
+#
+# $MidnightBSD: mports/misc/chmlib/Makefile,v 1.1 2009/01/03 02:23:12 ctriv Exp $
+#
+
+PORTNAME=	chmlib
+PORTVERSION=	0.39
+CATEGORIES=	misc
+MASTER_SITES=	http://www.jedrea.com/chmlib/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A library for dealing with Microsoft ITSS/CHM format files
+LICENSE=	lgpl
+
+USE_BZIP2=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-io64 --disable-pread --exec-prefix=${PREFIX} --disable-static --enable-examples
+USE_GMAKE=	yes
+USE_LDCONFIG=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," ${WRKSRC}/configure
+
+.include <bsd.port.mk>
--- /dev/null
+++ misc/chmlib/distinfo
@@ -0,0 +1,3 @@
+MD5 (chmlib-0.39.tar.bz2) = debed1a0bdded7a12d3d967e497cea9c
+SHA256 (chmlib-0.39.tar.bz2) = d2305d449eb5a2922ed3e61714074b09aae2491aa0cdbb783ab33a1744e0ff41
+SIZE (chmlib-0.39.tar.bz2) = 263013
--- /dev/null
+++ misc/chmlib/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig	Mon Jun 19 09:26:24 2006
++++ ltmain.sh	Mon Jun 19 09:26:40 2006
+@@ -6003,10 +6003,12 @@
+ 	fi
+ 
+ 	# Install the pseudo-library for information purposes.
++	if /usr/bin/false ; then
+ 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ 	instname="$dir/$name"i
+ 	$show "$install_prog $instname $destdir/$name"
+ 	$run eval "$install_prog $instname $destdir/$name" || exit $?
++	fi
+ 
+ 	# Maybe install the static library, too.
+ 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
--- /dev/null
+++ misc/chmlib/files/patch-chm_lib.h
@@ -0,0 +1,25 @@
+--- src/chm_lib.h.orig	Fri Feb 25 21:26:09 2005
++++ src/chm_lib.h	Fri Feb 25 21:26:57 2005
+@@ -78,6 +78,12 @@
+     char               path[CHM_MAX_PATHLEN+1];
+ };
+ 
++typedef struct chmUnitInfo chmUnitInfo;
++typedef struct chm_dir {
++  int nentries;
++  char **info;
++} chm_dir;
++
+ /* open an ITS archive */
+ #ifdef PPC_BSTR
+ /* RWE 6/12/2003 */
+@@ -133,6 +139,7 @@
+                       CHM_ENUMERATOR e,
+                       void *context);
+ 
++chm_dir get_names(struct chmFile *h);
+ #ifdef __cplusplus
+ }
+ #endif
+
+
--- /dev/null
+++ misc/chmlib/files/patch-chm_lib.c
@@ -0,0 +1,20 @@
+--- src/chm_lib.c.orig	Tue Apr  8 10:33:30 2003
++++ src/chm_lib.c	Tue Apr  8 10:40:56 2003
+@@ -156,6 +156,17 @@
+ typedef __int64                 Int64;
+ typedef unsigned __int64        UInt64;
+ 
++/* FreeBSD */
++#elif __FreeBSD__
++#include <inttypes.h>
++typedef unsigned char           UChar;
++typedef int16_t                 Int16;
++typedef uint16_t                UInt16;
++typedef int32_t                 Int32;
++typedef uint32_t                UInt32;
++typedef int64_t                 Int64;
++typedef uint64_t                UInt64;
++
+ /* I386, 32-bit, non-Windows */
+ /* Sparc        */
+ /* MIPS         */


More information about the Midnightbsd-cvs mailing list