Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_F3 / chmlib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               chmlib
4 VERSION=                0.40
5 REVISION=               1
6 KEYWORDS=               misc
7 VARIANTS=               standard
8 SDESC[standard]=        Library for reading Microsoft ITSS/CHM formats
9 HOMEPAGE=               http://www.jedrea.com/chmlib/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            http://www.jedrea.com/chmlib/
14 DISTFILE[1]=            chmlib-0.40.tar.bz2:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         dev
19                         tools
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 USES=                   gmake libtool fbsd10fix mbsdfix
25
26 LICENSE=                LGPL21+:primary
27 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
28 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
29 LICENSE_AWK=            TERMS:"INCLUDED_CHMLIB_H"
30 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/chm_lib.h
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         misc/chmlib
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ARGS=         --disable-io64
37                         --disable-pread
38                         --disable-static
39                         --enable-examples
40
41 INSTALL_TARGET=         install-strip
42 SOVERSION=              0.0.0
43
44 [FILE:357:descriptions/desc.primary]
45 CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
46 Right now, it is a very simple library, but sufficient for dealing with all
47 of the .chm files I've come across. Due to the fairly well-designed
48 indexing built into this particular file format, even a small library is
49 able to gain reasonably good performance indexing into ITSS archives.
50
51
52 [FILE:54:descriptions/desc.tools]
53 This package contains tools based on the CHM library.
54
55
56 [FILE:98:distinfo]
57 3449d64b0cf71578b2c7e3ddc048d4af3661f44a83941ea074a7813f3a59ffa3       252036 chmlib-0.40.tar.bz2
58
59
60 [FILE:53:manifests/plist.primary]
61 lib/
62  libchm.so.%%SOMAJOR%%
63  libchm.so.%%SOVERSION%%
64
65
66 [FILE:41:manifests/plist.dev]
67 include/
68  chm_lib.h
69  lzx.h
70 lib/libchm.so
71
72
73 [FILE:73:manifests/plist.tools]
74 bin/
75  chm_http
76  enum_chmLib
77  enumdir_chmLib
78  extract_chmLib
79  test_chmLib
80
81
82 [FILE:661:patches/patch-chm_lib.c]
83 --- src/chm_lib.c.orig  2009-05-23 14:43:31 UTC
84 +++ src/chm_lib.c
85 @@ -149,6 +149,17 @@ typedef unsigned __int32        UInt32;
86  typedef __int64                 Int64;
87  typedef unsigned __int64        UInt64;
88  
89 +/* FreeBSD */
90 +#elif defined (__FreeBSD__) || defined (__DragonFly__)
91 +#include <inttypes.h>
92 +typedef unsigned char           UChar;
93 +typedef int16_t                 Int16;
94 +typedef uint16_t                UInt16;
95 +typedef int32_t                 Int32;
96 +typedef uint32_t                UInt32;
97 +typedef int64_t                 Int64;
98 +typedef uint64_t                UInt64;
99 +
100  /* I386, 32-bit, non-Windows */
101  /* Sparc        */
102  /* MIPS         */
103
104
105 [FILE:550:patches/patch-chm_lib.h]
106 --- src/chm_lib.h.orig  2009-05-23 14:43:31 UTC
107 +++ src/chm_lib.h
108 @@ -82,6 +82,12 @@ struct chmUnitInfo
109      char               path[CHM_MAX_PATHLEN+1];
110  };
111  
112 +typedef struct chmUnitInfo chmUnitInfo;
113 +typedef struct chm_dir {
114 +  int nentries;
115 +  char **info;
116 +} chm_dir;
117 +
118  /* open an ITS archive */
119  #ifdef PPC_BSTR
120  /* RWE 6/12/2003 */
121 @@ -137,6 +143,7 @@ int chm_enumerate_dir(struct chmFile *h,
122                        CHM_ENUMERATOR e,
123                        void *context);
124  
125 +chm_dir get_names(struct chmFile *h);
126  #ifdef __cplusplus
127  }
128  #endif
129
130
131 [FILE:293:patches/patch-configure]
132 fix "shift: can't shift that many"
133
134 --- configure.orig      2009-05-23 15:12:23 UTC
135 +++ configure
136 @@ -13547,7 +13547,7 @@ case $CONFIG_FILES in
137  *\'*) eval set x "$CONFIG_FILES" ;;
138  *)   set x $CONFIG_FILES ;;
139  esac
140 -shift
141 +# shift
142  for mf
143  do
144    # Strip MF so we end up with the name of the file.
145