1SUMMARY="A library for dealing with Microsoft ITSS/CHM format files"
2DESCRIPTION="chmlib is a small library designed for accessing MS ITSS files. \
3The ITSS file format is used for Microsoft Html Help files (.chm), which have \
4been the predominant medium for software documentation from Microsoft during \
5the past several years, having superceded the previously used .hlp file format.
6Note that this is NOT the same as the OLE structured storage file format used \
7by MS Excel, Word, and so on.  Instead, it is a different file format which \
8fulfills a similar purpose.  Both file formats may be accessed via instances \
9of the IStorage COM interface, which is essentially an \"acts like a \
10filesystem\" interface."
11HOMEPAGE="http://www.jedrea.com/chmlib/"
12COPYRIGHT="
13	2003 Jed Wing
14	"
15LICENSE="GNU LGPL v2.1"
16REVISION="5"
17SOURCE_URI="http://www.jedrea.com/chmlib/chmlib-0.40.tar.gz"
18CHECKSUM_SHA256="512148ed1ca86dea051ebcf62e6debbb00edfdd9720cde28f6ed98071d3a9617"
19
20ARCHITECTURES="all"
21SECONDARY_ARCHITECTURES="x86_gcc2 x86"
22
23PROVIDES="
24	chmlib$secondaryArchSuffix = $portVersion compat >= 0
25	lib:libchm$secondaryArchSuffix = 0.0.0 compat >= 0
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	"
30
31PROVIDES_devel="
32	chmlib${secondaryArchSuffix}_devel = $portVersion
33	devel:libchm${secondaryArchSuffix} = 0.0.0 compat >= 0
34	"
35REQUIRES_devel="
36	chmlib${secondaryArchSuffix} == $portVersion base
37	"
38
39BUILD_REQUIRES="
40	haiku${secondaryArchSuffix}_devel
41	"
42BUILD_PREREQUIRES="
43	cmd:aclocal
44	cmd:autoreconf
45	cmd:gawk
46	cmd:gcc$secondaryArchSuffix
47	cmd:grep
48	cmd:ld$secondaryArchSuffix
49	cmd:libtoolize$secondaryArchSuffix
50	cmd:make
51	cmd:sed
52	"
53
54BUILD()
55{
56	autoreconf -fi
57	runConfigure ./configure --disable-static
58	make $jobArgs
59}
60
61INSTALL()
62{
63	make install
64
65	rm $libDir/libchm.la
66
67	prepareInstalledDevelLibs libchm
68
69	# devel package
70	packageEntries devel \
71		$developDir
72}
73